mirror of
https://github.com/pret/pokeemerald.git
synced 2026-09-09 11:36:32 -05:00
Made ScriptGiveMonParameterized recognize the state of P_FLAG_FORCE_SHINY and P_FLAG_FORCE_NO_SHINY (#4256)
* Made ScriptGiveMonParameterized recognize the state of the P_FLAG_FORCE_SHINY * And made it respect P_FLAG_FORCE_NO_SHINY too
This commit is contained in:
@@ -313,6 +313,10 @@ u32 ScriptGiveMonParameterized(u16 species, u8 level, u16 item, u8 ball, u8 natu
|
||||
CreateMonWithNature(&mon, species, level, 32, nature);
|
||||
|
||||
// shininess
|
||||
if (P_FLAG_FORCE_SHINY != 0 && FlagGet(P_FLAG_FORCE_SHINY))
|
||||
isShiny = TRUE;
|
||||
else if (P_FLAG_FORCE_NO_SHINY != 0 && FlagGet(P_FLAG_FORCE_NO_SHINY))
|
||||
isShiny = FALSE;
|
||||
SetMonData(&mon, MON_DATA_IS_SHINY, &isShiny);
|
||||
|
||||
// gigantamax factor
|
||||
|
||||
Reference in New Issue
Block a user