mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-01-18 01:14:19 +01:00
AI_EFFECTIVENESS_xY are enums
This commit is contained in:
parent
e4bf99d777
commit
fac6f21ed0
@ -15,13 +15,13 @@
|
||||
#define AI_TYPE_MOVE 4
|
||||
|
||||
// type effectiveness
|
||||
#define AI_EFFECTIVENESS_x8 320
|
||||
#define AI_EFFECTIVENESS_x4 160
|
||||
#define AI_EFFECTIVENESS_x2 80
|
||||
#define AI_EFFECTIVENESS_x1 40
|
||||
#define AI_EFFECTIVENESS_x0_5 20
|
||||
#define AI_EFFECTIVENESS_x0_25 10
|
||||
#define AI_EFFECTIVENESS_x0_125 5
|
||||
#define AI_EFFECTIVENESS_x8 7
|
||||
#define AI_EFFECTIVENESS_x4 6
|
||||
#define AI_EFFECTIVENESS_x2 5
|
||||
#define AI_EFFECTIVENESS_x1 4
|
||||
#define AI_EFFECTIVENESS_x0_5 3
|
||||
#define AI_EFFECTIVENESS_x0_25 2
|
||||
#define AI_EFFECTIVENESS_x0_125 1
|
||||
#define AI_EFFECTIVENESS_x0 0
|
||||
|
||||
// ai weather
|
||||
|
@ -274,6 +274,7 @@ void GetAiLogicData(void)
|
||||
|| !IsBattlerAIControlled(battlerAtk)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
for (battlerDef = 0; battlerDef < gBattlersCount; battlerDef++)
|
||||
{
|
||||
if (battlerAtk == battlerDef)
|
||||
|
Loading…
x
Reference in New Issue
Block a user