Commit Graph

3624 Commits

Author SHA1 Message Date
Leo Kim b1d4037a57
[Bug] Fix some damage formulas processed with ceil instead of floor (#3557)
* fix damage calculations. add test code

* define toIntValue function to replace every repeatitive min floor function.

* revert unnecessary minimum boundary

* update function name `toIntValue` -> `toDmgValue`. update comments.

* add missing updates for changing function name

* Update src/utils.ts

Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>

* remove redundant comment

* update import code for test with phase

---------

Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
2024-08-21 22:39:11 -07:00
Lugiad 61d659d8bb
[Localization] Localizable owned money symbol on battle UI (#3646)
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: frutescens <info@laptop>
2024-08-21 20:57:46 -07:00
sodam 6ea0f3f18b
[Enhancement] Support for special characters(♪.★,♥,♣) in game font (issue#3180) (#3535)
* added  specialCharacters: "♪.★,♥,♣"

* did refactoring...maybe

* added note
2024-08-21 20:32:03 -07:00
chaosgrimmon 34bf932722
[Sprite] Trim exp Rellor palette (#3674)
* [Sprite] Trim exp Rellor palette

* [Sprite] Trim Rellor exp Palette

* [Sprite] Trim Rellor exp palette
2024-08-21 18:48:39 -07:00
innerthunder 051d38e0a2
[Enhancement] Add support for simulated calls to Abilities (#3529)
* Adds simulated tag support to all abilities

* Fix compiler errors in ability.ts

Most things are still on fire 😢

* Fix errors left over after merge

* Another pass through simulated ability call logic

* Fix leftover errors from merge resolution

* Another gh pages issue :pikamad:

* Simulated call fixes based on Kev's feedback

* RIP phases.ts

---------

Co-authored-by: Xavion3 <xavion333@gmail.com>
2024-08-21 18:29:21 -07:00
cgyu7 1487d7f51c
[Move] Some more implementation for Tera Blast (#3469)
* terablast updated

* terablast update

* terablast

* fix trailing spaces

* fixed misspelling in a comment

* split tera blast dmg calc and type calc into different classes

* terablastpowerattr update

removed dupe code and added user terastallized check to conditional

* Update src/data/move.ts

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

* Update src/data/move.ts

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

* removed spaces and added missing semicolon

* added tsdocs for tera blast

* deleted extra spaces

* tsdoc update

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

* tsdoc update

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

* tsdoc update

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

* Add files via upload

* Update src/test/moves/tera_blast.test.ts

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

* Update src/test/moves/tera_blast.test.ts

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

* Update src/test/moves/tera_blast.test.ts

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

* Update src/test/moves/tera_blast.test.ts

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

* Update src/test/moves/tera_blast.test.ts

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

* remove trailing spaces

* The style police are here

* Fixed conflict resolution issues

---------

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: innerthunder <brandonerickson98@gmail.com>
2024-08-21 16:33:33 -07:00
Jannik Tappert 0241a0a086
Translated missing DE files (#3650) 2024-08-22 00:49:22 +02:00
flx-sta 3a167610cf
[Bug] Fix: Gravity tag removes flying type during damage calculation (#3670)
* add `hasTag` to arena

* fix flying type damage calculation for grounded states

Before the grounded state would make e.g. electric moves no more very-effective. This is invalid

Co-authored-by: Tristan D Gant <tgant2017@outlook.com>

* add tests for gravity v. ground v. electric

* Update src/test/arena/arena_gravity.test.ts

fix typo

Co-authored-by: Adrian T. <68144167+torranx@users.noreply.github.com>

* use `arena` instead of this.scene.arena

* use `const arena = this.scene.arean` instead of destructoring

* Apply suggestions from code review

Co-authored-by: Mumble <171087428+frutescens@users.noreply.github.com>

* fix es-lint

---------

Co-authored-by: Tristan D Gant <tgant2017@outlook.com>
Co-authored-by: Adrian T. <68144167+torranx@users.noreply.github.com>
Co-authored-by: Mumble <171087428+frutescens@users.noreply.github.com>
2024-08-21 15:40:55 -07:00
chaosgrimmon 6b21a777a1
[Sprite] Index Rookidee, remove stray pixel (#3653)
* [Sprite] Index front static Rookidee

* [Sprite] Index front exp Rookidee

* [Sprite] Index back static Rookidee

* [Sprite] Index shiny front static Rookidee

* [Sprite] Index back exp Rookidee

* [Sprite] Index shiny back static Rookidee

* [Sprite] Index shiny back static Rookidee

* [Sprite] Index shiny back exp Rookidee
2024-08-21 15:27:25 -07:00
Mumble 0e59e74197
Merge pull request #3633 from EnochG1/localization/fix-wrong-line-break
[Localization][KO] Fix wrong line break character
2024-08-21 14:55:34 -07:00
Niccolò e9d17f0605
Update move.ts (IT) (#3575) 2024-08-21 08:08:34 +01:00
Niccolò 98df8a39bf
Update move-trigger.ts (IT) (#3572) 2024-08-21 08:08:14 +01:00
Niccolò 0ff94d832e
Update modifier.ts (IT) (#3565)
* Update modifier.ts (IT)

* Update src/locales/it/modifier.ts

Co-authored-by: Enoch <enoch.jwsong@gmail.com>

---------

Co-authored-by: Enoch <enoch.jwsong@gmail.com>
2024-08-21 08:07:55 +01:00
Niccolò 9ecebb942c
Update modifier-type.ts (IT) (#3564) 2024-08-21 08:07:39 +01:00
Niccolò 3e44c4552c
Update menu.ts (IT) (#3563) 2024-08-21 08:07:25 +01:00
Niccolò 742b5432aa
Update menu-ui-handler.ts (IT) (#3562) 2024-08-21 08:07:15 +01:00
Niccolò 548f7fce6f
Update battler-tags.ts (IT) (#3561) 2024-08-21 08:07:00 +01:00
Niccolò 2dc9900522
Update battle.ts (IT) (#3560) 2024-08-21 08:06:44 +01:00
Niccolò 767d802b94
Update challenges.ts (IT) (#3559) 2024-08-21 08:06:34 +01:00
Niccolò 6773312218
Update achv.ts (IT) (#3558) 2024-08-21 08:06:18 +01:00
Niccolò f162c6af89
Update ability-trigger.ts (IT) (#3546)
* Update ability-trigger.ts (IT)

* Update ability-trigger.ts
2024-08-21 08:06:01 +01:00
NightKev 6defc8c8f9
Fix Rollout test (#3660) 2024-08-21 08:28:10 +10:00
innerthunder 3a9d24c49a
[Bug] Fix Jaw Lock leaving the user trapped after the target faints (#3450)
* Fix Jaw Lock not removing TRAPPED tag after enemy faints

* Create tests for Jaw Lock

* Fix overrides import

* Clean up implementation + tests

* minor style change to phases

* Update src/data/move.ts

Co-authored-by: Adrian T. <68144167+torranx@users.noreply.github.com>

* Jaw Lock no longer overlaps its trapping effect

* Friendship ended with JAW_LOCK tag type

Now TRAPPED is my new best friend

---------

Co-authored-by: EmberCM <kooly213@hotmail.com>
Co-authored-by: Adrian T. <68144167+torranx@users.noreply.github.com>
2024-08-20 18:44:37 +01:00
Frederico Santos c846f552bb
Merge pull request #3659 from pagefaultgames/main
[Localization] Portuguese hotfix of dialogue.ts and more (#3658)
2024-08-20 06:07:31 +01:00
José Ricardo Fleury Oliveira 7946382817
[Localization] Portuguese hotfix of dialogue.ts and more (#3658)
* [Localization] Portuguese hotfix of dialogue.ts and more

* menu fixes

* fix wrong message key of curse
2024-08-20 06:06:49 +01:00
damocleas e39ebb68f2
[Balance] Dark Void 80% Accurate (#1836)
* Dark Void 80% Accurate

* updated comment
2024-08-20 05:59:23 +01:00
Frederico Santos ae2ab120dc
Deleted phases.ts (#3618) 2024-08-19 03:23:52 +01:00
Frederico Santos 550974d5c3
Merge pull request #3636 from pagefaultgames/main
Main -> Beta sync
2024-08-19 02:22:40 +01:00
NightKev 098811c006
Main -> Beta (#3635)
* Fixed issue with falsy issue within condition to get a stat for IV scanner

* add fix setting code to prevent form/variant bug when default form/variant setting is wrong.
in addition, that fix code include gender fix, so i revert old gender fix.
update wrong log message.

* [Hotfix] Fix Memory Mushroom not showing relearner moves (#3619)

* Fix Memory Mushroom not showing relearner moves

* Fix rollout test

* Rewrite player faint logic in FaintPhase (#3614)

* 867 runerigus sprite (#3629)

cropped static frames, fixed cropped sprite
set runerigus exp to use the shiny exp's animation
verified all hex colors are unchanged

- fixed ultra necrozma exp front variant swapped arrays.
- xatu female eye color fix

* [Bug] Preventing the MBH from being stolen in Endless (#3630)

* Endless MBH Fix

* add import

* Revert "add import"

This reverts commit 814a4059c2.

* Revert "Endless MBH Fix"

This reverts commit 8eb4481301.

* removed newline

---------

Co-authored-by: Frederico Santos <frederico.f.santos@tecnico.ulisboa.pt>
Co-authored-by: frutescens <info@laptop>

* [Bug] Fix type-hints for immunity (#3620)

* enable mock containers to be found by name

* enable mock text to be found by name

* add test coverage for type-hints

Only for "immunity" and "status moves"

* fix wrong message key of curse(ghost type) (#3631)

Co-authored-by: Frederico Santos <frederico.f.santos@tecnico.ulisboa.pt>

* [Hotfix] Steal-able Mini Black Hole Pt 2  (#3632)

* Still have no idea where Eternatus is given the MBH....

* typedocs

---------

Co-authored-by: frutescens <info@laptop>

* [Hotfix] Abilities that prevent ATK drops no longer stop other stat drops (#3624)

* Abilities that prevent ATK drops no longer stop other stat drops

* Apply suggestions from code review

Co-authored-by: Mumble <kimjoanne@protonmail.com>

* Add `isNullOrUndefined()` utility function

---------

* Grip Claw now shows the proper pokemon nickname (#3634)

Co-authored-by: frutescens <info@laptop>

---------

Co-authored-by: Opaque02 <66582645+Opaque02@users.noreply.github.com>
Co-authored-by: KimJeongSun <leo@atlaslabs.ai>
Co-authored-by: Frederico Santos <frederico.f.santos@tecnico.ulisboa.pt>
Co-authored-by: innerthunder <168692175+innerthunder@users.noreply.github.com>
Co-authored-by: cam <lrlrliwoo@gmail.com>
Co-authored-by: Mumble <kimjoanne@protonmail.com>
Co-authored-by: frutescens <info@laptop>
Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Mumble <171087428+frutescens@users.noreply.github.com>
2024-08-19 02:18:43 +01:00
Mumble bdde03b0d5
Grip Claw now shows the proper pokemon nickname (#3634)
Co-authored-by: frutescens <info@laptop>
2024-08-19 02:06:52 +01:00
NightKev 747e4f9360
[Hotfix] Abilities that prevent ATK drops no longer stop other stat drops (#3624)
* Abilities that prevent ATK drops no longer stop other stat drops

* Apply suggestions from code review

Co-authored-by: Mumble <kimjoanne@protonmail.com>

* Add `isNullOrUndefined()` utility function

---------
2024-08-19 01:05:53 +01:00
Mumble a46e35b8dd
[Hotfix] Steal-able Mini Black Hole Pt 2 (#3632)
* Still have no idea where Eternatus is given the MBH....

* typedocs

---------

Co-authored-by: frutescens <info@laptop>
2024-08-19 00:59:18 +01:00
Enoch 1db26dab96
fix wrong message key of curse(ghost type) (#3631)
Co-authored-by: Frederico Santos <frederico.f.santos@tecnico.ulisboa.pt>
2024-08-19 00:50:31 +01:00
EnochG1 cd489c6a60 fix wrong line break character 2024-08-19 08:46:49 +09:00
flx-sta a97803b99b
[Bug] Fix type-hints for immunity (#3620)
* enable mock containers to be found by name

* enable mock text to be found by name

* add test coverage for type-hints

Only for "immunity" and "status moves"
2024-08-18 22:27:38 +01:00
Mumble 65af7a5699
[Bug] Preventing the MBH from being stolen in Endless (#3630)
* Endless MBH Fix

* add import

* Revert "add import"

This reverts commit 814a4059c2.

* Revert "Endless MBH Fix"

This reverts commit 8eb4481301.

* removed newline

---------

Co-authored-by: Frederico Santos <frederico.f.santos@tecnico.ulisboa.pt>
Co-authored-by: frutescens <info@laptop>
2024-08-18 21:51:08 +01:00
cam c8ed89e186
867 runerigus sprite (#3629)
cropped static frames, fixed cropped sprite
set runerigus exp to use the shiny exp's animation
verified all hex colors are unchanged

- fixed ultra necrozma exp front variant swapped arrays.
- xatu female eye color fix
2024-08-18 19:44:50 +01:00
innerthunder 67da795611
Rewrite player faint logic in FaintPhase (#3614) 2024-08-18 18:29:11 +01:00
NightKev 1b7a161934
[Hotfix] Fix Memory Mushroom not showing relearner moves (#3619)
* Fix Memory Mushroom not showing relearner moves

* Fix rollout test
2024-08-18 17:52:32 +01:00
Frederico Santos c2b79a803d
Merge pull request #3616 from Opaque02/iv-scanner-stats-fix
[Bug] Fixed issue with falsy issue within condition to get a stat for IV scanner
2024-08-18 17:46:47 +01:00
Frederico Santos c40717fd33
Merge pull request #3617 from KimJeongSun/fix-only-variant-form-bugs
[Hotfix] Fixed a bug occurring when only single rare/epic variant or a single rare form in Starter UI
2024-08-18 07:43:11 +01:00
KimJeongSun 69c1389ec4 add fix setting code to prevent form/variant bug when default form/variant setting is wrong.
in addition, that fix code include gender fix, so i revert old gender fix.
update wrong log message.
2024-08-18 15:12:20 +09:00
Frederico Santos d61c8f2870
Merge pull request #3613 from pagefaultgames/main
Merge main into beta
2024-08-18 06:50:45 +01:00
Opaque02 58bf18af88 Fixed issue with falsy issue within condition to get a stat for IV scanner 2024-08-18 15:39:08 +10:00
NightKev 0e6c2952ca
Make Disguise properly reset form on arena reset when fainted (#3612) 2024-08-18 05:05:04 +01:00
Mumble 192aa63635
[Bug][Hotfix] Final Boss MBH no longer transferrable (#3611)
* Should fix it.

* typedocs fixes

---------

Co-authored-by: Frutescens <info@laptop>
2024-08-18 04:28:06 +01:00
cam abced6cf02
[Sprite] Lumineon female spritesheet fix (#3608)
fix from Vari
2024-08-18 04:17:21 +01:00
cam 5f6cb6ce00
[Sprite] Floette animation fix - Xatu female variant fix (#3610)
* 177-178 icons, variant icons

* 178 icons

* [HotFix][Sprite] Xatu female variants added

* [HotFix][Sprite] Floette json: update to match images

* Xatu variant- reverted _masterlist

reverted _masterlist.json
added anim files for both female variants

* [fix] Xatu female: show variants, added back sprite anim

Edited _masterlist on correct keys
added anim json for back sprites
2024-08-18 04:14:25 +01:00
AJ Fontaine 0e92366cac
Fixed egg moves being relearnable in daily runs (#3604) 2024-08-18 02:23:02 +01:00
innerthunder 8704723c9c
Fix missing form change logic for Cramorant (#3603) 2024-08-18 02:22:21 +01:00