Exemple #1
0
 internal void check_update_unit_move_range(Game_Unit unit)
 {
     if (!Updated_Move_Range_Units.Contains(unit.id))
     {
         unit.update_move_range();
     }
 }
 public void DebugMenuLevelUpUnit(Game_Unit unit)
 {
     if (unit.actor.can_promote() && unit.actor.promotion_level() &&
         unit.actor.level == unit.actor.level_cap())
     {
         Global.game_system.play_se(System_Sounds.Status_Page_Change);
         unit.actor.exp = 0;
         unit.actor.quick_promotion((int)unit.actor.promotes_to(false));
         unit.refresh_sprite();
         unit.update_move_range();
     }
     else if (unit.actor.exp_gain_possible() > 0)
     {
         Global.game_system.play_se(System_Sounds.Level_Up_Stat);
         unit.actor.instant_level = true;
         unit.actor.exp          += Global.ActorConfig.ExpToLvl;
     }
 }