mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-01-26 13:31:03 +01:00
Gets rid of unnecesary casts in pokemon.c
This commit is contained in:
parent
af55029843
commit
81a11c4fc9
@ -3579,27 +3579,27 @@ u32 GetMonData(struct Pokemon *mon, s32 field, u8* data)
|
||||
ret = mon->maxHP;
|
||||
break;
|
||||
case MON_DATA_ATK:
|
||||
ret = (u16)GetDeoxysStat(mon, STAT_ATK);
|
||||
ret = GetDeoxysStat(mon, STAT_ATK);
|
||||
if (!ret)
|
||||
ret = mon->attack;
|
||||
break;
|
||||
case MON_DATA_DEF:
|
||||
ret = (u16)GetDeoxysStat(mon, STAT_DEF);
|
||||
ret = GetDeoxysStat(mon, STAT_DEF);
|
||||
if (!ret)
|
||||
ret = mon->defense;
|
||||
break;
|
||||
case MON_DATA_SPEED:
|
||||
ret = (u16)GetDeoxysStat(mon, STAT_SPEED);
|
||||
ret = GetDeoxysStat(mon, STAT_SPEED);
|
||||
if (!ret)
|
||||
ret = mon->speed;
|
||||
break;
|
||||
case MON_DATA_SPATK:
|
||||
ret = (u16)GetDeoxysStat(mon, STAT_SPATK);
|
||||
ret = GetDeoxysStat(mon, STAT_SPATK);
|
||||
if (!ret)
|
||||
ret = mon->spAttack;
|
||||
break;
|
||||
case MON_DATA_SPDEF:
|
||||
ret = (u16)GetDeoxysStat(mon, STAT_SPDEF);
|
||||
ret = GetDeoxysStat(mon, STAT_SPDEF);
|
||||
if (!ret)
|
||||
ret = mon->spDefense;
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user