protected override void set_images() { // Drop if (mode == 1) { return; } Game_Unit unit = get_unit(); Game_Unit target = Global.game_map.units[this.target]; Rescue_Icon.visible = false; switch (mode) { // Take case 2: target = Global.game_map.units[Global.game_map.units[this.target].rescuing]; Rescue_Icon.visible = true; Rescue_Icon.src_rect = new Rectangle((target.team - 1) * (Rescue_Icon.texture.Width / Constants.Team.NUM_TEAMS), 0, Rescue_Icon.texture.Width / Constants.Team.NUM_TEAMS, Rescue_Icon.texture.Height); break; // Give case 3: unit = target; target = Global.game_map.units[get_unit().rescuing]; Rescue_Icon.visible = true; Rescue_Icon.src_rect = new Rectangle((target.team - 1) * (Rescue_Icon.texture.Width / Constants.Team.NUM_TEAMS), 0, Rescue_Icon.texture.Width / Constants.Team.NUM_TEAMS, Rescue_Icon.texture.Height); break; // Protect case 5: Game_Unit temp = unit; unit = target; target = temp; break; } // Map Sprites // Unit_Sprite.texture = Scene_Map.get_team_map_sprite(unit.team, unit.map_sprite_name); if (Unit_Sprite.texture != null) { Unit_Sprite.offset = new Vector2( (Unit_Sprite.texture.Width / Unit_Sprite.frame_count) / 2, (Unit_Sprite.texture.Height / Unit_Sprite.facing_count) - 8); } Unit_Sprite.mirrored = unit.has_flipped_map_sprite; if (Rescue_Icon.visible) { Rescue_Icon.draw_offset = Target_Sprite.draw_offset - new Vector2(16, 24); } else { Target_Sprite.texture = Scene_Map.get_team_map_sprite(target.team, target.map_sprite_name); if (Target_Sprite.texture != null) { Target_Sprite.offset = new Vector2( (Target_Sprite.texture.Width / Target_Sprite.frame_count) / 2, (Target_Sprite.texture.Height / Target_Sprite.facing_count) - 8); } Target_Sprite.mirrored = target.has_flipped_map_sprite; } // Text Name1.text = unit.actor.name; Name2.text = target.actor.name; Aid_Value.text = unit.aid().ToString(); Con_Value.text = target.stat(Stat_Labels.Con).ToString(); refresh(); }