pokerogue/src/test
Leo Kim c112abbcd2
[Challenge] Inverse battle challenge (#3525)
* add inverse battle challenge. refactoring type.ts for inverse battle challenge

* update type integer -> number

* add inverse battle condition to thunder wave, conversion 2.

* add inverse_battle test code, add checking gameMode in runToSummon not to overwrite gameMode to CLASSIC always

* update startBattle with isClassicMode default = true

* add inverse achievement

* fix achv validation condition

* remove unnecessary new line

* update defaultWidth 160 -> 200

* update locales

* fix korean translation

* fix korean translation2

* Update src/locales/de/achv.ts

Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>

* Update src/locales/de/challenges.ts

Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>

* Update src/locales/de/challenges.ts

Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>

* resize challenge description 96 -> 84

* update challenge select UI size.

* revert font size to 84. update de translation

* Update src/locales/fr/challenges.ts

Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>

* Update src/locales/fr/achv.ts

Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>

* Update src/locales/es/challenges.ts

Co-authored-by: Asdar <asdargmng@gmail.com>

* Update src/locales/fr/challenges.ts

Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>

* Update src/locales/fr/achv.ts

Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>

* Update src/locales/es/achv.ts

Co-authored-by: Asdar <asdargmng@gmail.com>

* Update src/locales/fr/achv.ts

Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>

* shrink de font size on achivement

* set middle align to achv title

* Update src/locales/zh_CN/achv.ts

Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>

* Update src/locales/zh_TW/achv.ts

Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>

* Update src/locales/zh_CN/challenges.ts

Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>

* Update src/locales/zh_TW/challenges.ts

Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>

* fix zh_TW ahiv.ts

* fix import code on inverse battle test for updated phase

* Update src/data/type.ts

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>

* update requested changes

* Update src/locales/pt_BR/achv.ts

Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>

* Update src/locales/pt_BR/achv.ts

Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>

* Update src/locales/pt_BR/challenges.ts

Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>

* [draft] update inverse battle apply function

* change the way how to use applyChallenge for inverse type

* resolve confilct

* fix test codes

* remove unnecessary multiplier variable and break codes

* update getTypeDamageMultiplier argument type from `number` to `Type`

* Fix inverse types tests (#1)

* Fix Inverse Battle tests

* Add timeout parameter to tests

* update requested changes

* update requested changes

* update requested changes2

* update comments

* Update src/test/utils/helpers/challengeModeHelper.ts

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>

* Update src/test/utils/helpers/challengeModeHelper.ts

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>

* fix mis pasted code

* revert loadChallenge code for  FreshStartChallenge

* code refactoring

* restore challenge.json lost translations

* revert UI changes

* revert unreverted newlines

* Run History inclusion

* requested changes from torranx

* update WaterSuperEffectTypeMultiplierAttr for inverse battle matchup.

* fix test code. adding flying press test code

* update requested change from xavion3

* updated requested change from xavion 2

* update requested changes from xavion 3

* remove exception code which is not valid

* attach partial mark to Freeze dry. requested by xavion

* add missing game over phase code when we delete old phases.ts

* fix test codes

* merge conflict

* fix achv condition

* updated achv block condition. we don't want to change desc now

* resolve conflict

* Eternatus Moveset Tinkering

* Cleaning it up

---------

Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Asdar <asdargmng@gmail.com>
Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com>
Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: frutescens <info@laptop>
2024-08-29 19:59:33 +01:00
..
abilities [Ability][Move] Rewrite Type Resolution and Effectiveness Calculation Functions (#3704) 2024-08-25 19:11:01 -07:00
achievements [Test] Replace doAttack() with move.select() in tests (#3567) 2024-08-22 06:49:33 -07:00
arena [Test] Replace doAttack() with move.select() in tests (#3567) 2024-08-22 06:49:33 -07:00
battle [Challenge] Inverse battle challenge (#3525) 2024-08-29 19:59:33 +01:00
battlerTags [Test] Replace doAttack() with move.select() in tests (#3567) 2024-08-22 06:49:33 -07:00
eggs Fix egg tests (memory use: ~2.4G -> ~550M) (#3757) 2024-08-25 19:07:06 +01:00
evolutions [Test] Replace doAttack() with move.select() in tests (#3567) 2024-08-22 06:49:33 -07:00
field [Test] Replace doAttack() with move.select() in tests (#3567) 2024-08-22 06:49:33 -07:00
inputs [Test] Replace doAttack() with move.select() in tests (#3567) 2024-08-22 06:49:33 -07:00
items [Test] Replace doAttack() with move.select() in tests (#3567) 2024-08-22 06:49:33 -07:00
localization [Localization] Migrate translation files to json (#3709) 2024-08-23 20:52:09 +01:00
moves fix failing belly drum test (#3768) 2024-08-26 09:14:59 -07:00
phases [Test] Replace doAttack() with move.select() in tests (#3567) 2024-08-22 06:49:33 -07:00
settingMenu [Test] Replace doAttack() with move.select() in tests (#3567) 2024-08-22 06:49:33 -07:00
sprites [Test] Replace doAttack() with move.select() in tests (#3567) 2024-08-22 06:49:33 -07:00
ui [Test] Replace doAttack() with move.select() in tests (#3567) 2024-08-22 06:49:33 -07:00
utils [Challenge] Inverse battle challenge (#3525) 2024-08-29 19:59:33 +01:00
account.spec.ts [Test] Replace doAttack() with move.select() in tests (#3567) 2024-08-22 06:49:33 -07:00
battle-scene.test.ts [Test] Replace doAttack() with move.select() in tests (#3567) 2024-08-22 06:49:33 -07:00
battle-stat.spec.ts [Test] Replace doAttack() with move.select() in tests (#3567) 2024-08-22 06:49:33 -07:00
daily_mode.test.ts [Bug] Fix daily run generated movesets (#3519) 2024-08-13 21:48:56 +01:00
endless_boss.test.ts Disable endless boss passives (#3451) 2024-08-11 19:40:47 +01:00
evolution.test.ts [Test] Replace doAttack() with move.select() in tests (#3567) 2024-08-22 06:49:33 -07:00
final_boss.test.ts [Test] Replace doAttack() with move.select() in tests (#3567) 2024-08-22 06:49:33 -07:00
fontFace.setup.ts tests: add mock for FontFace and it to vitest setup (#1591) 2024-05-30 04:44:36 +01:00
game-mode.test.ts [Test] Replace doAttack() with move.select() in tests (#3567) 2024-08-22 06:49:33 -07:00
imports.test.ts [Test] Replace doAttack() with move.select() in tests (#3567) 2024-08-22 06:49:33 -07:00
internals.test.ts [Test] Replace doAttack() with move.select() in tests (#3567) 2024-08-22 06:49:33 -07:00
pre.test.ts Beta Merge 27/07 (#3141) 2024-07-28 00:47:00 +01:00
vitest.setup.ts [Test] Replace doAttack() with move.select() in tests (#3567) 2024-08-22 06:49:33 -07:00