| 697 | } |
| 698 | |
| 699 | bool Game_Interpreter_Map::CommandShowBattleAnimation(lcf::rpg::EventCommand const& com) { // code 11210 |
| 700 | int animation_id = com.parameters[0]; |
| 701 | int evt_id = com.parameters[1]; |
| 702 | bool waiting_battle_anim = com.parameters[2] > 0; |
| 703 | bool global = com.parameters[3] > 0; |
| 704 | |
| 705 | Game_Character* chara = GetCharacter(evt_id, "ShowBattleAnimation"); |
| 706 | if (chara == NULL) |
| 707 | return true; |
| 708 | |
| 709 | if (evt_id == Game_Character::CharThisEvent) |
| 710 | evt_id = GetThisEventId(); |
| 711 | |
| 712 | int frames = Main_Data::game_screen->ShowBattleAnimation(animation_id, evt_id, global); |
| 713 | |
| 714 | if (waiting_battle_anim) { |
| 715 | _state.wait_time = frames; |
| 716 | } |
| 717 | |
| 718 | return true; |
| 719 | } |
| 720 | |
| 721 | bool Game_Interpreter_Map::CommandFlashSprite(lcf::rpg::EventCommand const& com) { // code 11320 |
| 722 | int event_id = ValueOrVariableBitfield(com, 7, 0, 0); |
nothing calls this directly
no test coverage detected