Skip to content

Commit

Permalink
FlashEvent - Maniac Patch Parameters
Browse files Browse the repository at this point in the history
Supporting usage of variables when
game uses maniac patch
and parameters size is bigger than 7.

Update game_interpreter_map.cpp
  • Loading branch information
jetrotal committed Jan 8, 2025
1 parent 7976386 commit eeaeb81
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/game_interpreter_map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -712,11 +712,11 @@ bool Game_Interpreter_Map::CommandShowBattleAnimation(lcf::rpg::EventCommand con
}

bool Game_Interpreter_Map::CommandFlashSprite(lcf::rpg::EventCommand const& com) { // code 11320
int event_id = com.parameters[0];
int r = com.parameters[1];
int g = com.parameters[2];
int b = com.parameters[3];
int p = com.parameters[4];
int event_id = ValueOrVariableBitfield(com, 7, 0, 0);
int r = ValueOrVariableBitfield(com, 7, 1, 1);
int g = ValueOrVariableBitfield(com, 7, 2, 2);
int b = ValueOrVariableBitfield(com, 7, 3, 3);
int p = ValueOrVariableBitfield(com, 7, 4, 4);

int tenths = com.parameters[5];
bool wait = com.parameters[6] > 0;
Expand Down

0 comments on commit eeaeb81

Please sign in to comment.