mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-11 19:02:16 +02:00
Merge branch 'simulated-damage-calc' of https://github.com/innerthunder/pokerogue into simulated-damage-calc
This commit is contained in:
commit
6c372b9a2d
@ -31,14 +31,14 @@ describe("Battle Mechanics - Damage Calculation", () => {
|
|||||||
.enemyMoveset(SPLASH_ONLY)
|
.enemyMoveset(SPLASH_ONLY)
|
||||||
.startingLevel(100)
|
.startingLevel(100)
|
||||||
.enemyLevel(100)
|
.enemyLevel(100)
|
||||||
.disableCrits();
|
.disableCrits()
|
||||||
|
.moveset([Moves.TACKLE, Moves.DRAGON_RAGE, Moves.FISSURE, Moves.JUMP_KICK]);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("Attacks deal 1 damage at minimum", async () => {
|
it("Attacks deal 1 damage at minimum", async () => {
|
||||||
game.override
|
game.override
|
||||||
.startingLevel(1)
|
.startingLevel(1)
|
||||||
.enemySpecies(Species.AGGRON)
|
.enemySpecies(Species.AGGRON);
|
||||||
.moveset([Moves.TACKLE]);
|
|
||||||
|
|
||||||
await game.classicMode.startBattle([Species.MAGIKARP]);
|
await game.classicMode.startBattle([Species.MAGIKARP]);
|
||||||
|
|
||||||
@ -55,8 +55,7 @@ describe("Battle Mechanics - Damage Calculation", () => {
|
|||||||
it("Fixed-damage moves ignore damage multipliers", async () => {
|
it("Fixed-damage moves ignore damage multipliers", async () => {
|
||||||
game.override
|
game.override
|
||||||
.enemySpecies(Species.DRAGONITE)
|
.enemySpecies(Species.DRAGONITE)
|
||||||
.enemyAbility(Abilities.MULTISCALE)
|
.enemyAbility(Abilities.MULTISCALE);
|
||||||
.moveset([Moves.DRAGON_RAGE]);
|
|
||||||
|
|
||||||
await game.classicMode.startBattle([Species.MAGIKARP]);
|
await game.classicMode.startBattle([Species.MAGIKARP]);
|
||||||
|
|
||||||
@ -69,8 +68,7 @@ describe("Battle Mechanics - Damage Calculation", () => {
|
|||||||
it("One-hit KO moves ignore damage multipliers", async () => {
|
it("One-hit KO moves ignore damage multipliers", async () => {
|
||||||
game.override
|
game.override
|
||||||
.enemySpecies(Species.AGGRON)
|
.enemySpecies(Species.AGGRON)
|
||||||
.enemyAbility(Abilities.MULTISCALE)
|
.enemyAbility(Abilities.MULTISCALE);
|
||||||
.moveset([Moves.FISSURE]);
|
|
||||||
|
|
||||||
await game.classicMode.startBattle([Species.MAGIKARP]);
|
await game.classicMode.startBattle([Species.MAGIKARP]);
|
||||||
|
|
||||||
@ -83,7 +81,6 @@ describe("Battle Mechanics - Damage Calculation", () => {
|
|||||||
it("When the user fails to use Jump Kick with Wonder Guard ability, the damage should be 1.", async () => {
|
it("When the user fails to use Jump Kick with Wonder Guard ability, the damage should be 1.", async () => {
|
||||||
game.override
|
game.override
|
||||||
.enemySpecies(Species.GASTLY)
|
.enemySpecies(Species.GASTLY)
|
||||||
.moveset([Moves.JUMP_KICK])
|
|
||||||
.ability(Abilities.WONDER_GUARD);
|
.ability(Abilities.WONDER_GUARD);
|
||||||
|
|
||||||
await game.classicMode.startBattle([Species.SHEDINJA]);
|
await game.classicMode.startBattle([Species.SHEDINJA]);
|
||||||
|
Loading…
Reference in New Issue
Block a user