Gigantamax Flag

This commit is contained in:
Eduardo Quezada 2023-10-10 17:37:18 -03:00
parent 070ce214af
commit 644fba2db1
3 changed files with 900 additions and 747 deletions

View file

@ -333,6 +333,7 @@ struct SpeciesInfo /*0x24*/
/* 0x1F */ u8 bodyColor : 7;
u8 noFlip : 1;
/* 0x20 */ u16 flags;
/* 0x22 */ u8 gigantamax:1;
};
struct BattleMove

View file

@ -150,8 +150,7 @@ bool32 CanDynamax(u16 battlerId)
// Returns whether a battler is transformed into a Gigantamax form.
bool32 IsGigantamaxed(u16 battlerId) {
// TODO: Incorporate Gigantamax factor.
if (gBattleMons[battlerId].species >= (SPECIES_VENUSAUR_GMAX)
&& gBattleMons[battlerId].species <= (SPECIES_URSHIFU_RAPID_STRIKE_STYLE_GMAX))
if ((gSpeciesInfo[gBattleMons[battlerId].species].gigantamax))
return TRUE;
return FALSE;
}

File diff suppressed because it is too large Load diff