コード例 #1
0
        public static BaseAction Bite(Actor actor)
        {
            AttackAction action = new AttackAction(actor);

            action.TimeMultiplier = 0.2;
            action.AttackSpeed    = (int)(actor.Initiative * (action.TimeMultiplier / 2));
            action.AttackPattern  = AttackPatterns.Basic();
            action.Actor          = actor;
            action.Name           = "Bite";
            action.Tags.Add(ActionTag.Melee);
            action.Damage = actor.Strength;
            return(action);
        }
コード例 #2
0
        public static AttackAction Slash(Actor actor)
        {
            AttackAction action = new AttackAction(actor);

            action.TimeMultiplier = 0.3;
            action.AttackSpeed    = (int)(actor.Initiative * (action.TimeMultiplier / 2));
            action.AttackPattern  = AttackPatterns.Horizontal3();
            action.Actor          = actor;
            action.Name           = "Slash";
            action.Tags.Add(ActionTag.Melee);
            action.Damage = actor.Strength * 2;
            return(action);
        }