Exemplo n.º 1
0
        // Shows the range of the skill given it's id
        public override void showSkillRange(string skillID, Unit unit, ref BattleMap map)
        {
            // Variables
            int[]	range=	((hasPassive("archer")) ? new int[]{2, 2} : new int[]{1, 1});

            switch(skillID)
            {
                case "basic_attack":
                case "arm_thrust":
                case "provoke":
                case "powerbreak":
                case "magicbreak":
                case "speedbreak":
                case "mega_swing":
                    if(hasPassive("pikeman"))
                        map.attackSearchStraightLine(unit.mapPos[0], unit.mapPos[1], 2);
                    else
                        map.attackSearch(unit.mapPos[0], unit.mapPos[1], range[0], range[1]);
                    break;
                case "headbutt":
                    map.attackSearch(unit.mapPos[0], unit.mapPos[1], 1, 1);
                    break;
                case "first_aid":
                    map.healSearch(unit.mapPos[0], unit.mapPos[1], 0, 1);
                    break;
                case "rally_force":
                    map.attackSearch(unit.mapPos[0], unit.mapPos[1], 0, 0);
                    break;
            }
        }
Exemplo n.º 2
0
 // Shows the range of the skill given it's id
 public override void showSkillRange(string skillID, Unit unit, ref BattleMap map)
 {
     switch(skillID)
     {
         case "enrage":
         case "stockpile_rage":
             map.attackSearch(unit.mapPos[0], unit.mapPos[1], 0, 0);
             break;
         case "basic_attack":
         case "furious_slash":
         case "intimidate":
         case "let_loose":
         case "suicidal_slash":
         case "fury_swipes":
         case "counter_swipe":
             map.attackSearch(unit.mapPos[0], unit.mapPos[1], 1, 1);
             break;
         case "piercing_jab":	map.attackSearchStraightLine(unit.mapPos[0], unit.mapPos[1], 2);	break;
         case "raging_battlecry":	map.attackSearch(unit.mapPos[0], unit.mapPos[1], 0, 1);	break;
     }
 }