Closed Ghabry closed 7 months ago
Pending final change that depends on #3141
if (com.parameters.size() >= 5) { cmd.string = Main_Data::game_strings->GetWithModeBitfield(com.string, com.parameters[0], 3, com.parameters[4]); } else { cmd.string = com.string; }
btw, such code will be also needed for other commands just with a different index:
if (Player::IsPatchManiac() && com.parameters.size() >= A) { cmd.string = Main_Data::game_strings->GetWithModeBitfield(com.string, com.parameters[0], B, com.parameters[A - 1]); } else { cmd.string = com.string; }
Could need a helper function 🤔
I added variable lookup to commands that support this with Maniac Patch. Please review carefully that I did not mess up the numbers.
Pending final change that depends on #3141
btw, such code will be also needed for other commands just with a different index:
Could need a helper function 🤔