forked from DizzyEggg/pokeemerald
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ogerpon masks were missing their hold effects (#5391)
* Ogerpon masks were missing their hold effects * fix wrong num * test * correct tests and additional fix * added hold effect to battle debug
- Loading branch information
1 parent
76656e8
commit 71dfd3e
Showing
5 changed files
with
51 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#include "global.h" | ||
#include "test/battle.h" | ||
|
||
ASSUMPTIONS | ||
{ | ||
ASSUME(gItemsInfo[ITEM_CORNERSTONE_MASK].holdEffect == HOLD_EFFECT_OGERPON_MASK); | ||
ASSUME(gItemsInfo[ITEM_WELLSPRING_MASK].holdEffect == HOLD_EFFECT_OGERPON_MASK); | ||
ASSUME(gItemsInfo[ITEM_HEARTHFLAME_MASK].holdEffect == HOLD_EFFECT_OGERPON_MASK); | ||
ASSUME(gItemsInfo[ITEM_CORNERSTONE_MASK].holdEffectParam == 20); | ||
ASSUME(gItemsInfo[ITEM_WELLSPRING_MASK].holdEffectParam == 20); | ||
ASSUME(gItemsInfo[ITEM_HEARTHFLAME_MASK].holdEffectParam == 20); | ||
} | ||
|
||
SINGLE_BATTLE_TEST("Ogerpon Masks increase the base power of moves by 20%", s16 damage) | ||
{ | ||
u32 species; | ||
u32 item; | ||
PARAMETRIZE { species = SPECIES_OGERPON_TEAL_MASK; item = ITEM_NONE; } | ||
PARAMETRIZE { species = SPECIES_OGERPON_WELLSPRING_MASK; item = ITEM_CORNERSTONE_MASK; } | ||
PARAMETRIZE { species = SPECIES_OGERPON_HEARTHFLAME_MASK; item = ITEM_WELLSPRING_MASK; } | ||
PARAMETRIZE { species = SPECIES_OGERPON_CORNERSTONE_MASK; item = ITEM_HEARTHFLAME_MASK; } | ||
|
||
GIVEN { | ||
ASSUME(gMovesInfo[MOVE_TACKLE].power > 0); | ||
PLAYER(species) { Item(item); } | ||
OPPONENT(SPECIES_WOBBUFFET); | ||
} WHEN { | ||
TURN { MOVE(player, MOVE_TACKLE); } | ||
} SCENE { | ||
HP_BAR(opponent, captureDamage: &results[i].damage); | ||
} FINALLY { | ||
EXPECT_MUL_EQ(results[0].damage, Q_4_12(1.2), results[1].damage); | ||
EXPECT_MUL_EQ(results[0].damage, Q_4_12(1.2), results[2].damage); | ||
EXPECT_MUL_EQ(results[0].damage, Q_4_12(1.2), results[3].damage); | ||
} | ||
} |