forked from DizzyEggg/pokeemerald
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds Mortal Spin and Population Bomb (#3178)
- Loading branch information
Showing
13 changed files
with
253 additions
and
24 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
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,24 @@ | ||
#include "global.h" | ||
#include "test_battle.h" | ||
|
||
ASSUMPTIONS | ||
{ | ||
ASSUME(gBattleMoves[MOVE_MORTAL_SPIN].effect == EFFECT_MORTAL_SPIN); | ||
} | ||
|
||
SINGLE_BATTLE_TEST("Mortal Spin blows away hazards and poisons foe") | ||
{ | ||
GIVEN { | ||
PLAYER(SPECIES_WOBBUFFET); | ||
OPPONENT(SPECIES_WOBBUFFET); | ||
} WHEN { | ||
TURN { MOVE(opponent, MOVE_STEALTH_ROCK); MOVE(player, MOVE_MORTAL_SPIN); } | ||
} SCENE { | ||
ANIMATION(ANIM_TYPE_MOVE, MOVE_STEALTH_ROCK, opponent); | ||
ANIMATION(ANIM_TYPE_MOVE, MOVE_MORTAL_SPIN, player); | ||
MESSAGE("Wobbuffet blew away Stealth Rock!"); | ||
MESSAGE("Foe Wobbuffet was poisoned!"); | ||
STATUS_ICON(opponent, poison: TRUE); | ||
} | ||
} | ||
|
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,135 @@ | ||
#include "global.h" | ||
#include "test_battle.h" | ||
|
||
ASSUMPTIONS | ||
{ | ||
ASSUME(gBattleMoves[MOVE_BULLET_SEED].effect == EFFECT_MULTI_HIT); | ||
} | ||
|
||
SINGLE_BATTLE_TEST("Multi hit Moves hit the maximum amount with Skill Link") | ||
{ | ||
PASSES_RANDOMLY(100, 100, RNG_HITS); | ||
|
||
GIVEN { | ||
PLAYER(SPECIES_WOBBUFFET) { Ability(ABILITY_SKILL_LINK); }; | ||
OPPONENT(SPECIES_WOBBUFFET); | ||
} WHEN { | ||
TURN { MOVE(player, MOVE_BULLET_SEED); } | ||
} SCENE { | ||
ANIMATION(ANIM_TYPE_MOVE, MOVE_BULLET_SEED, player); | ||
ANIMATION(ANIM_TYPE_MOVE, MOVE_BULLET_SEED, player); | ||
ANIMATION(ANIM_TYPE_MOVE, MOVE_BULLET_SEED, player); | ||
ANIMATION(ANIM_TYPE_MOVE, MOVE_BULLET_SEED, player); | ||
ANIMATION(ANIM_TYPE_MOVE, MOVE_BULLET_SEED, player); | ||
MESSAGE("Hit 5 time(s)!"); | ||
} | ||
} | ||
|
||
SINGLE_BATTLE_TEST("Multi hit Moves hit twice 35 Percent of the time") | ||
{ | ||
PASSES_RANDOMLY(35, 100, RNG_HITS); | ||
|
||
GIVEN { | ||
PLAYER(SPECIES_WOBBUFFET); | ||
OPPONENT(SPECIES_WOBBUFFET); | ||
} WHEN { | ||
TURN { MOVE(player, MOVE_BULLET_SEED); } | ||
} SCENE { | ||
ANIMATION(ANIM_TYPE_MOVE, MOVE_BULLET_SEED, player); | ||
ANIMATION(ANIM_TYPE_MOVE, MOVE_BULLET_SEED, player); | ||
MESSAGE("Hit 2 time(s)!"); | ||
} | ||
} | ||
|
||
SINGLE_BATTLE_TEST("Multi hit Moves hit thrice 35 Percent of the time") | ||
{ | ||
PASSES_RANDOMLY(35, 100, RNG_HITS); | ||
|
||
GIVEN { | ||
PLAYER(SPECIES_WOBBUFFET); | ||
OPPONENT(SPECIES_WOBBUFFET); | ||
} WHEN { | ||
TURN { MOVE(player, MOVE_BULLET_SEED); } | ||
} SCENE { | ||
ANIMATION(ANIM_TYPE_MOVE, MOVE_BULLET_SEED, player); | ||
ANIMATION(ANIM_TYPE_MOVE, MOVE_BULLET_SEED, player); | ||
ANIMATION(ANIM_TYPE_MOVE, MOVE_BULLET_SEED, player); | ||
MESSAGE("Hit 3 time(s)!"); | ||
} | ||
} | ||
|
||
SINGLE_BATTLE_TEST("Multi hit Moves hit four times 35 Percent of the time") | ||
{ | ||
PASSES_RANDOMLY(15, 100, RNG_HITS); | ||
|
||
GIVEN { | ||
PLAYER(SPECIES_WOBBUFFET); | ||
OPPONENT(SPECIES_WOBBUFFET); | ||
} WHEN { | ||
TURN { MOVE(player, MOVE_BULLET_SEED); } | ||
} SCENE { | ||
ANIMATION(ANIM_TYPE_MOVE, MOVE_BULLET_SEED, player); | ||
ANIMATION(ANIM_TYPE_MOVE, MOVE_BULLET_SEED, player); | ||
ANIMATION(ANIM_TYPE_MOVE, MOVE_BULLET_SEED, player); | ||
ANIMATION(ANIM_TYPE_MOVE, MOVE_BULLET_SEED, player); | ||
MESSAGE("Hit 4 time(s)!"); | ||
} | ||
} | ||
|
||
SINGLE_BATTLE_TEST("Multi hit Moves hit four times 35 Percent of the time") | ||
{ | ||
PASSES_RANDOMLY(15, 100, RNG_HITS); | ||
|
||
GIVEN { | ||
PLAYER(SPECIES_WOBBUFFET); | ||
OPPONENT(SPECIES_WOBBUFFET); | ||
} WHEN { | ||
TURN { MOVE(player, MOVE_BULLET_SEED); } | ||
} SCENE { | ||
ANIMATION(ANIM_TYPE_MOVE, MOVE_BULLET_SEED, player); | ||
ANIMATION(ANIM_TYPE_MOVE, MOVE_BULLET_SEED, player); | ||
ANIMATION(ANIM_TYPE_MOVE, MOVE_BULLET_SEED, player); | ||
ANIMATION(ANIM_TYPE_MOVE, MOVE_BULLET_SEED, player); | ||
ANIMATION(ANIM_TYPE_MOVE, MOVE_BULLET_SEED, player); | ||
MESSAGE("Hit 5 time(s)!"); | ||
} | ||
} | ||
|
||
SINGLE_BATTLE_TEST("Multi hit Moves hit at least four times with Loaded Dice") | ||
{ | ||
PASSES_RANDOMLY(50, 100, RNG_LOADED_DICE); | ||
|
||
GIVEN { | ||
ASSUME(gItems[ITEM_LOADED_DICE].holdEffect == HOLD_EFFECT_LOADED_DICE); | ||
PLAYER(SPECIES_WOBBUFFET) { Item(ITEM_LOADED_DICE); } | ||
OPPONENT(SPECIES_WOBBUFFET); | ||
} WHEN { | ||
TURN { MOVE(player, MOVE_BULLET_SEED); } | ||
} SCENE { | ||
ANIMATION(ANIM_TYPE_MOVE, MOVE_BULLET_SEED, player); | ||
ANIMATION(ANIM_TYPE_MOVE, MOVE_BULLET_SEED, player); | ||
ANIMATION(ANIM_TYPE_MOVE, MOVE_BULLET_SEED, player); | ||
ANIMATION(ANIM_TYPE_MOVE, MOVE_BULLET_SEED, player); | ||
MESSAGE("Hit 4 time(s)!"); | ||
} | ||
} | ||
|
||
SINGLE_BATTLE_TEST("Multi hit Moves hit five times 50 Percent of the time with Loaded Dice") | ||
{ | ||
PASSES_RANDOMLY(50, 100, RNG_LOADED_DICE); | ||
|
||
GIVEN { | ||
ASSUME(gItems[ITEM_LOADED_DICE].holdEffect == HOLD_EFFECT_LOADED_DICE); | ||
PLAYER(SPECIES_WOBBUFFET) { Item(ITEM_LOADED_DICE); } | ||
OPPONENT(SPECIES_WOBBUFFET); | ||
} WHEN { | ||
TURN { MOVE(player, MOVE_BULLET_SEED); } | ||
} SCENE { | ||
ANIMATION(ANIM_TYPE_MOVE, MOVE_BULLET_SEED, player); | ||
ANIMATION(ANIM_TYPE_MOVE, MOVE_BULLET_SEED, player); | ||
ANIMATION(ANIM_TYPE_MOVE, MOVE_BULLET_SEED, player); | ||
ANIMATION(ANIM_TYPE_MOVE, MOVE_BULLET_SEED, player); | ||
ANIMATION(ANIM_TYPE_MOVE, MOVE_BULLET_SEED, player); | ||
MESSAGE("Hit 5 time(s)!"); | ||
} | ||
} |
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,29 @@ | ||
#include "global.h" | ||
#include "test_battle.h" | ||
|
||
SINGLE_BATTLE_TEST("Population Bomb can hit ten times") | ||
{ | ||
GIVEN { | ||
ASSUME(gBattleMoves[MOVE_POPULATION_BOMB].strikeCount == 10); | ||
PLAYER(SPECIES_WOBBUFFET); | ||
OPPONENT(SPECIES_WOBBUFFET); | ||
} WHEN { | ||
TURN { MOVE(player, MOVE_POPULATION_BOMB); } | ||
} SCENE { | ||
ANIMATION(ANIM_TYPE_MOVE, MOVE_POPULATION_BOMB, player); | ||
ANIMATION(ANIM_TYPE_MOVE, MOVE_POPULATION_BOMB, player); | ||
ANIMATION(ANIM_TYPE_MOVE, MOVE_POPULATION_BOMB, player); | ||
ANIMATION(ANIM_TYPE_MOVE, MOVE_POPULATION_BOMB, player); | ||
ANIMATION(ANIM_TYPE_MOVE, MOVE_POPULATION_BOMB, player); | ||
ANIMATION(ANIM_TYPE_MOVE, MOVE_POPULATION_BOMB, player); | ||
ANIMATION(ANIM_TYPE_MOVE, MOVE_POPULATION_BOMB, player); | ||
ANIMATION(ANIM_TYPE_MOVE, MOVE_POPULATION_BOMB, player); | ||
ANIMATION(ANIM_TYPE_MOVE, MOVE_POPULATION_BOMB, player); | ||
ANIMATION(ANIM_TYPE_MOVE, MOVE_POPULATION_BOMB, player); | ||
MESSAGE("Hit 10 time(s)!"); | ||
} | ||
} | ||
|
||
TO_DO_BATTLE_TEST("Accuracy for Population Bomb is checked independently for each hit") | ||
TO_DO_BATTLE_TEST("Accuracy for Population Bomb is only checked for the first hit with Skill Link") | ||
TO_DO_BATTLE_TEST("Accuracy for Population Bomb is only checked for the first hit with Loaded Dice") |
Oops, something went wrong.