protected override void update_phase_1() { base_update_phase_1(); switch (Segment) { case 0: bool cont = false; while (!cont) { cont = true; if (!Attack_Active) { Active_Battler = 1; add_battle_action(Battle_Actions.New_Attack); } bool next_attack = attack(Battler_1, Battler_2, true); Battler_1.update_attack_graphics(); Battler_2.update_attack_graphics(); if (next_attack) { Timer = 0; Segment = 1; Can_Skip = false; refresh_stats(); } } break; case 1: switch (Timer) { case 20: Segment = 2; Timer = 0; break; default: Timer++; break; } break; case 2: Phase = 2; Segment = 0; break; } }
public override void initialize_action(int distance) { Battler_1 = Global.game_map.units[Global.game_state.dancer_id]; if (Global.game_state.dance_target_id != -1) { Battler_2 = Global.game_map.units[Global.game_state.dance_target_id]; } if (Battler_2 == null || Battler_2.same_team(Battler_1)) { Reverse = true; } else { Reverse = Battler_2.is_opposition; } Real_Distance = Distance = distance; initialize_weather_condition(); }
public override void initialize_action(int distance) { Battler_1 = Global.game_map.units[Global.game_system.Battler_1_Id]; Battler_2 = Global.game_map.units[Global.game_system.Battler_2_Id]; Battler_1.preload_animations(distance); Battler_2.preload_animations(distance); Combat.battle_setup(Battler_1.id, Battler_2.id, distance, 0); new_combat_data(distance); Reverse = Battler_2.is_opposition; Real_Distance = Distance = distance; //if (Global.data_weapons[Combat_Data.Weapon_1_Id].Max_Range <= 2 && Distance > 2) if (!Global.data_weapons[weapon_id(1)].Long_Range && Distance > 2) //Debug { Distance = 2; } if (Distance == 2) { Pan_Vector = Effects_Pan_Vector = new Vector2(16 * (Reverse ? -1 : 1), 0); } Can_Skip = false; }