mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-11-16 19:47:35 +01:00
Moved macro to the top of base_stats.h
This commit is contained in:
parent
c489bb88b7
commit
c120a446ad
@ -1,6 +1,37 @@
|
||||
// Maximum value for a female Pokémon is 254 (MON_FEMALE) which is 100% female.
|
||||
// 255 (MON_GENDERLESS) is reserved for genderless Pokémon.
|
||||
#define PERCENT_FEMALE(percent) min(254, ((percent * 255) / 100))
|
||||
#define OLD_UNOWN_BASE_STATS { \
|
||||
.baseHP = 50, \
|
||||
.baseAttack = 150, \
|
||||
.baseDefense = 50, \
|
||||
.baseSpAttack = 150, \
|
||||
.baseSpDefense = 50, \
|
||||
.baseSpeed = 150, \
|
||||
.type1 = TYPE_NORMAL, \
|
||||
.type2 = TYPE_NORMAL, \
|
||||
.catchRate = 3, \
|
||||
.expYield = 1, \
|
||||
.evYield_HP = 2, \
|
||||
.evYield_Attack = 2, \
|
||||
.evYield_Defense = 2, \
|
||||
.evYield_Speed = 2, \
|
||||
.evYield_SpAttack = 2, \
|
||||
.evYield_SpDefense = 2, \
|
||||
.item1 = ITEM_NONE, \
|
||||
.item2 = ITEM_NONE, \
|
||||
.genderRatio = MON_GENDERLESS, \
|
||||
.eggCycles = 120, \
|
||||
.friendship = 0, \
|
||||
.growthRate = GROWTH_MEDIUM_FAST, \
|
||||
.eggGroup1 = EGG_GROUP_UNDISCOVERED,\
|
||||
.eggGroup2 = EGG_GROUP_UNDISCOVERED,\
|
||||
.ability1 = ABILITY_NONE, \
|
||||
.ability2 = ABILITY_NONE, \
|
||||
.safariZoneFleeRate = 0, \
|
||||
.bodyColor = BODY_COLOR_BLACK, \
|
||||
.noFlip = FALSE, \
|
||||
},
|
||||
|
||||
const struct BaseStats gBaseStats[] =
|
||||
{
|
||||
@ -8289,38 +8320,6 @@ const struct BaseStats gBaseStats[] =
|
||||
.noFlip = FALSE,
|
||||
},
|
||||
|
||||
#define OLD_UNOWN_BASE_STATS { \
|
||||
.baseHP = 50, \
|
||||
.baseAttack = 150, \
|
||||
.baseDefense = 50, \
|
||||
.baseSpAttack = 150, \
|
||||
.baseSpDefense = 50, \
|
||||
.baseSpeed = 150, \
|
||||
.type1 = TYPE_NORMAL, \
|
||||
.type2 = TYPE_NORMAL, \
|
||||
.catchRate = 3, \
|
||||
.expYield = 1, \
|
||||
.evYield_HP = 2, \
|
||||
.evYield_Attack = 2, \
|
||||
.evYield_Defense = 2, \
|
||||
.evYield_Speed = 2, \
|
||||
.evYield_SpAttack = 2, \
|
||||
.evYield_SpDefense = 2, \
|
||||
.item1 = ITEM_NONE, \
|
||||
.item2 = ITEM_NONE, \
|
||||
.genderRatio = MON_GENDERLESS, \
|
||||
.eggCycles = 120, \
|
||||
.friendship = 0, \
|
||||
.growthRate = GROWTH_MEDIUM_FAST, \
|
||||
.eggGroup1 = EGG_GROUP_UNDISCOVERED,\
|
||||
.eggGroup2 = EGG_GROUP_UNDISCOVERED,\
|
||||
.ability1 = ABILITY_NONE, \
|
||||
.ability2 = ABILITY_NONE, \
|
||||
.safariZoneFleeRate = 0, \
|
||||
.bodyColor = BODY_COLOR_BLACK, \
|
||||
.noFlip = FALSE, \
|
||||
},
|
||||
|
||||
[SPECIES_OLD_UNOWN_B] = OLD_UNOWN_BASE_STATS
|
||||
|
||||
[SPECIES_OLD_UNOWN_C] = OLD_UNOWN_BASE_STATS
|
||||
|
Loading…
Reference in New Issue
Block a user