Commit Graph

3035 Commits

Author SHA1 Message Date
Amani H
6da5d9d6aa
[Bug] Thief Interaction with Species Stat Boosters (#2747) 2024-07-02 10:31:28 -04:00
schmidtc1
df18dd885d
[Bug] Adjusts bug bite/pluck to remove berry pouch preservation on opponent berries (#2047)
* Adjusts bug bite functionality when stealing from opponent with three berry pouches

* Adjusts bug bite functionality when stealing from opponent with three berry pouches

* Adjusts bug bite to remove berry pouch preservation on opponent berries

* Remove Promise<Boolean> where unnecessary

Leftover code removed from previous testing of the EatBerryAttr class.

* Remove undefined check on chosenBerry

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

* Update StealEatBerryAttr if-clause readability

Decrementing inside of an if-clause removed for readability. Changed to check: if count is 1, then remove modifier.

* Localization of StealEatBerryAttr battle message

* Fixes berry incrementing after improper adjustment to readability

* Fixes berry decrementing after improper adjustment to readability

* Update battle.ts

* Update src/locales/fr/battle.ts

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

* Update battle.ts properly

Incorrectly added localization in previous commit

* Remove unnecessary space

* Update src/locales/ko/battle.ts

I do not have experience with Korean, so this may need other review.

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

* Rewrites EatBerryAttr to combine with StealEatBerryAttr

* Removes excess lines

* Revert and refactor StealEatBerry and EatBerryAttr

* Refactor for early returns instead of nesting

---------

Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
2024-07-02 10:28:38 -04:00
Enoch
0bc4f26b9d
[Localization] localized status-effect.ts and translate. (#2528)
* make postposition not to dynamic for localize

* localize status-effect.ts

* added test code, modified english postposition, modifed toxic_orb test to make it always fix in English.

* Update src/locales/zh_CN/status-effect.ts

Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>

* Update src/locales/fr/status-effect.ts

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

* Update src/locales/de/status-effect.ts

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

* Update src/locales/de/status-effect.ts

* added test code for check message key

* remove multi-language tests (except english)

* Update src/locales/pt_BR/status-effect.ts

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

* remove language and change test code to check method call and parameter

* Update src/locales/es/status-effect.ts

Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>

* Update src/locales/en/status-effect.ts

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

* Apply review suggestion

* Update src/locales/es/status-effect.ts

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

* Update src/locales/es/status-effect.ts

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

Update src/locales/es/status-effect.ts

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

Update src/locales/es/status-effect.ts

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

Update src/locales/es/status-effect.ts

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

Update src/locales/es/status-effect.ts

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

Update src/locales/es/status-effect.ts

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

Update src/locales/es/status-effect.ts

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

Update src/locales/es/status-effect.ts

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

Update src/locales/es/status-effect.ts

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

Update src/locales/es/status-effect.ts

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

Update src/locales/es/status-effect.ts

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

Update src/locales/es/status-effect.ts

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

Update src/locales/es/status-effect.ts

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

Update src/locales/es/status-effect.ts

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

Update src/locales/es/status-effect.ts

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

* Update src/locales/es/status-effect.ts

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

* add Test with empty string parameter

* Update src/locales/es/status-effect.ts

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

* Update src/locales/fr/status-effect.ts

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

---------

Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: InnocentGameDev <asdargmng@gmail.com>
2024-07-02 10:22:46 -04:00
José Ricardo Fleury Oliveira
302ed8c1f1
Localization (pt): Added missing translations (#2745)
* Localization (pt): Updated missing translations

* fix line break
2024-07-02 01:59:16 -05:00
Jannik Tappert
fd54212b76
Added missing german translation (#2742) 2024-07-01 14:47:47 -04:00
mercurius-00
db27fd6336
[Localization]Fix line break for zh-cn abilities (#2737)
* fix line break for zh-cn abilities

fix line break for zh-cn abilities

* add newline

add newline
2024-07-01 11:06:03 -04:00
Yonmaru40
7d07755718
[Localization] various zh_cn translation fix (7-1) (#2734)
* Update ability-trigger.ts

* Update ability.ts

* Update battle.ts

* Update bgm-name.ts

* Update challenges.ts

* Update dialogue.ts

* Update modifier-type.ts

* Update modifier-type.ts

* Update move.ts

* Update move.ts

* Update pokemon-info.ts

* Update pokemon-info.ts

* Update splash-messages.ts

* Update starter-select-ui-handler.ts

* Update bgm-name.ts

* Update splash-messages.ts

* Update src/locales/zh_CN/battle.ts

级 → Lv.

* Update src/locales/zh_CN/modifier-type.ts

Co-authored-by: RimKnight <rimknight852@gmail.com>

* Update src/locales/zh_CN/modifier-type.ts

Co-authored-by: RimKnight <rimknight852@gmail.com>

* Update splash-messages.ts

---------

Co-authored-by: RimKnight <rimknight852@gmail.com>
2024-07-01 00:13:12 -04:00
innerthunder
f4c8f0080a
[Bug] Add user Pokemon check to multi-hit early stopping (#2726) 2024-06-30 15:21:23 -04:00
Franck TROUILLEZ
53ef64f61b
Revert "Allow to auto-bump the version and show version in title (#2307)" (#2723)
This reverts commit 1583fdc4cb.
2024-06-30 13:11:01 +02:00
Franck TROUILLEZ
1583fdc4cb
Allow to auto-bump the version and show version in title (#2307) 2024-06-30 13:03:05 +02:00
innerthunder
284c3c628b
[Unittest] Remove random berry effects from PBond tests (#2715) 2024-06-29 21:48:05 -04:00
innerthunder
d278df8fef
[Bug] Fix multi-hit moves persisting after sleep/freeze (#2712) 2024-06-29 17:30:10 -04:00
EmberCM
6cba5acfd0
[QoL] Remove money modifiers from last wave of classic (#2714) 2024-06-29 17:28:15 -04:00
innerthunder
a48429de09
[Bug] Fix Make It Rain applying stat change twice after KO'ing both opponents (#2696)
* Revert Make It Rain stat change behavior

* ESLint

* Add double KO unit test
2024-06-29 13:59:26 -04:00
NightKev
b82c85899e
[Unittest] Add tests for Tidy Up (#2667) 2024-06-29 13:56:38 -04:00
chaosgrimmon
bc94858c40
[Sprite] Fixes Busted Mimikyu variants and icons; Fixes #2683 (#2690)
* [Sprite] Gives Disguised form explicit identifier

`null` defaults to `disguised`, as is desired.

* [Sprite] Renamed Disguised form has exp sprites

* [Sprite] Add Busted Mimikyu to masterlist

* Rename static non-shiny front 778.png to 778-disguised.png

* static non-shiny front

* exp non-shiny front

* static non-shiny back

* exp non-shiny front

* static non-shiny back

* static shiny front

* static shiny front

* non-shiny icon

* exp non-shiny back

* shiny icon

* static var front

* exp non-shiny back

* exp shiny front

* exp shiny front

* exp shiny back

* static shiny back

* exp var front

* static var back

* Delete public/images/pokemon/variant/exp/778_3.png

* Delete public/images/pokemon/variant/exp/778_3.json

* exp shiny back

* exp shiny back

* rare icon

* epic icon

* exp var back

* static var front BUSTED

* static var back BUSTED

* exp var front BUSTED

* exp var back BUSTED

* [Sprite] Static Mimikyu Busted sprite fix

Fixes eyeholes on torso

* [Sprite] Exp Mimikyu sprite fixes

Fixes eyeholes on torsos

* Trim static shiny front sprite size

Addresses issue #2683

* [Sprite] Match static shiny Disguised w non-shiny

Addresses issue #2683
2024-06-29 13:54:02 -04:00
ReneGV
2dd8aaf31a
[miscellaneous] Create single variable for max pokeballs (#2698)
* Configure max pokeballs

* Rename variable
2024-06-29 13:52:30 -04:00
ReneGV
fd586ecd8e
[Bug] Fix purify (#2697) 2024-06-28 20:59:06 -04:00
Felix Staud
782718c293 make i18n debugging an optional env setting
this also reduces output noise in tests
2024-06-28 12:59:54 -07:00
Madmadness65
15671a6922
Add new custom biome music by Firel (#2681) 2024-06-28 11:26:06 -05:00
NightKev
924ee17f70
[Unittest] Fix mocked value in Volt Absorb test (#2685) 2024-06-28 12:13:25 -04:00
AJ Fontaine
96f72eae2f
[QoL] Don't offer ball rewards when you have max in Classic mode (#1677)
* Don't offer ball rewards past floor 189

* Remove balls from reward pool when you have max

* Change only applies to classic

* Function to weigh the player's balls

* Documented hasMaxBalls function

* More specific comment
2024-06-28 12:11:52 -04:00
José Ricardo Fleury Oliveira
cd73c37d4b
[Localization(pt)] Fixed translation inconsistencies for critical hit messages (#2676) 2024-06-28 10:33:06 -04:00
chaosgrimmon
51a107f1cf
[Sprite] Implement female Pyroar icon (#2682) 2024-06-28 10:15:04 -04:00
Madmadness65
d4856c34f1 Fix minor BGM title typos
"Marowak Dojo" was missing the "k" in their names.
2024-06-27 23:56:41 -05:00
NightKev
784035b6f5
[Unittest] Prevent berries from interfering with Dry Skin tests (#2679) 2024-06-28 00:55:09 -04:00
flx-sta
d5b1459422
[Docs] add some inline docs for boss segments logic (#2678) 2024-06-27 23:20:42 -04:00
mercurius-00
4f9bd85f57
[QoL] Add line break for chinese TM item name (#2677)
Add line break for chinese TM item name
2024-06-27 23:04:55 -04:00
Kang Jisoon
c9c1249995
[Localization] Quickdraw message to Korean (#2650)
* Update Localization ko quickDraw

* Add newline character
2024-06-27 22:34:07 -04:00
Lugiad
044b3bd9ab
Update French bgm-name.ts Update (#2673) 2024-06-27 19:29:26 -05:00
Madmadness65
67a21b8a94
[Enhancement] Add battle music for Koraidon & Miraidon (#2654)
* Add battle music for Koraidon & Miraidon

* German track title
2024-06-27 18:59:24 -05:00
Madmadness65
bacd5e939b
Fix Xerneas not changing from Neutral form (#2669) 2024-06-27 18:58:45 -05:00
flx-sta
384f6e1fee
[Bug] add flag to know if pokemon was populated from data-source to fix boss segments for endless double bosses (#2672)
also reverted previous change as this was breaking for non-session-restored fights
2024-06-27 19:55:27 -04:00
innerthunder
b2048148c9
[Bug] Fix Make It Rain not applying effect on KO (#2670) 2024-06-27 19:52:13 -04:00
mercurius-00
aa0d01f419
Add chinese splash text (#2656) 2024-06-27 18:24:49 -05:00
Jannik Tappert
68cd98042e
Evil Team Dialogue is no longer cut off (#2659)
* Giovannis Dialogue is no longer cut off in english

* Fixed the rest of the evil team dialogue

* Update src/locales/en/dialogue.ts

* Update French dialogue.ts

* Update French dialogue.ts

---------

Co-authored-by: Lugiad <adrien.grivel@hotmail.fr>
2024-06-27 16:40:13 -04:00
José Ricardo Fleury Oliveira
5ec8bf1620
Localization: Localized error message for server connection issue (#2598)
* Localization: localized error message for server connection issue

* forgor about the portuguese translation

* Update src/locales/fr/menu.ts

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

* switched the chinese and portuguese translations

* Update src/locales/de/menu.ts

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

* Update src/locales/zh_CN/menu.ts

Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>

* Update src/locales/ko/menu.ts

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

* updated pt translation

* last german fix

* Update src/locales/es/menu.ts

Co-authored-by: Arxxer <javiptn7@gmail.com>

---------

Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Arxxer <javiptn7@gmail.com>
2024-06-27 15:33:58 -04:00
innerthunder
e521862096
[Bug] Fix Make It Rain applying effects for each target (#2664)
* Fix Make It Rain applying effects for each target

* Revert MoneyAttr change

* Remove RNG from parental bond tests
2024-06-27 15:21:24 -04:00
innerthunder
0d25b2332a
[Bug] Fix multi-hit frenzy moves permanently locking the user (#2662) 2024-06-27 13:33:43 -04:00
Adam Clemons
d8129dae7d
[Bug} Fix Tidy Up buff (for real this time) (#2649)
* Fix Tidy Up buff

* Force pipe rerun...

* Remove whitespace

---------

Co-authored-by: Tempoanon <163687446+Tempo-anon@users.noreply.github.com>
2024-06-27 12:37:57 -04:00
flx-sta
eb77927d4b
[Bug] Fix Tidy-Up boosting stats multiple times right now (#2652)
only apply if user id equals target id. This is necessary because of the  which is necessary for clearing the arena traps
2024-06-27 09:54:36 -04:00
chaosgrimmon
b9fd4273c9
[Bug] More non-contacting physical moves (#2660)
Fixes Raging Fury, Barb Barrage, and Triple Arrows.
2024-06-27 09:37:17 -04:00
innerthunder
f9d8bd6e7d
[Bug] Fix Parental Bond multiplier sometimes applying during first strike (#2653) 2024-06-27 01:59:57 -04:00
NightKev
23a1c461a9
[unittest] Remove more RNG from Dry Skin tests (#2647) 2024-06-27 01:06:16 -04:00
innerthunder
e477fccaab
[Bug] Fix multi-hit early stopping (#2648) 2024-06-27 00:41:31 -04:00
Smewkie
996568ef5b
[Bug] Make it Rain interaction with Multi-Lens (#2638)
Changes make it rain to provide stat changes whenever the move hits multiple times, ie with Multi Lens.
2024-06-26 22:38:31 -04:00
Amani H
0e994a7072
Fix Stat Booster Held Items Applying to Party (#2637) 2024-06-27 03:17:22 +01:00
NightKev
8933a9bb05
[Test] Prevent RNG from breaking Dry Skin tests (#2630) 2024-06-26 21:39:35 -04:00
innerthunder
55dd6b5100
[Bug] Fix Multi-Lens/PBond interaction for spread moves (#2633) 2024-06-26 21:05:03 -04:00
damocleas
0d3cd8ab96
[Balance] Quick Adjustments to Rogue Tier Items (#2634) 2024-06-26 19:02:48 -05:00
José Ricardo Fleury Oliveira
4186bd651b
Localization (pt): Added new items' translations (#2627)
* added new items' translations

* forgor
2024-06-26 17:30:38 -05:00
Dmitriy K
576f099243
[Test] Optimize Quick Draw tests (#2625)
* optimize the tests

* add level override in favor of directly changing stats
2024-06-26 17:01:14 -04:00
innerthunder
cd92d4d7d3
[Ability] Implement Parental Bond (#2384)
* Parental Bond basic implementation

* Parental Bond unit tests

* ESLint

* PBond AbAttr rework, documentation, and multi-target unit tests

* Update post-target move attribute logic

For Parental Bond interaction.

* AddSecondStrikeAbAttr now uses Constructor util

* Unit tests for PBond + Multi-Lens interaction

* Remove random damage spread in unit test

* Add null checks to PBond AbAttr

* Set player pokemon for unit test

* Fixed Post Target check to account for KO's

* Fix multi-strike moves applying effects at wrong times

* Test cases for updated effect timing

* Add Wake-Up Slap test case

* Fix Fury Cutter/Echoed Voice multi-hit interaction

* Fix Pay Day, Relic Song, and Fury Cutter (again)

* Add early stopping to multi-hit moves

* RecoilAttr now uses lastHitOnly

* Add faint check to last hit logic
2024-06-26 16:03:14 -04:00
Amani H
f7f8988cdb
[Item] Add Light Ball, Thick Club, Metal Powder, and Quick Powder (#1899)
* Add Light Ball, Thick Club, and Metal/Quick Powder

* Fix Typo, Account for Fusions

* Fix Errors with Fusions

* Group Items into Generator

* Refactor Generator and Type, Fix Localization (en)

* Adjust Generator, Add Override Type

* Fix Enum Import

* Localize for de, es, fr, it, ko, zh_CN, zh_TW

* Add Unit Tests

* Add Type

* Fix Items Atlas

* Change Cubone Passive Ability, Adjust Weight
2024-06-26 13:48:10 -05:00
flx-sta
74a7b1bb79
[Bug] fix boss-segment reload persistence: (#2613)
add boss-segments to into pokemon-data & load it in EnemyPokemon constructor
2024-06-26 13:19:24 -04:00
damocleas
29283d81a0
[Balance] General Item Weight Adjustments (#1901)
* [Balance] General Item Weight Adjustments

* temporarily reduce Voucher Plus to 4 -> 2 -> 0 weighting per reroll

* Ultra Ball 12 -> 14

* Various Adjustments

* Various Adjustments to Ultra and Rogue Tier

Super Exp Charm 10 -> 9
Soul Dew 8 -> 7

Big Nugget 10 -> 12
TM Ultra 12 -> 11
Attack Type Booster 10 -> 9

* fixed map conflict

* Voucher Plus 4 -> 3

* Made Form Change Items have scaled weight by wave count.
2024-06-26 12:14:53 -05:00
Tempoanon
f8a15570fa
Fix 2 typos in Cyrus and Lucian en dialogue (#2611) 2024-06-25 22:10:55 -05:00
Enoch
70e1a38403
[Localization] localize reward message (You received ~) (#2556)
* localize reward message (You received ~)

* Update src/locales/zh_CN/battle.ts

Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>

* Update src/locales/es/battle.ts

Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>

* Update src/locales/pt_BR/battle.ts

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

* Update src/locales/de/battle.ts

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

* Update src/locales/fr/battle.ts

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

---------

Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
2024-06-25 22:13:43 -04:00
Tempoanon
7e3ff28eaa
Add flooring to ReceivedMoveDamageMultiplierAbAttr (#2606)
* Add flooring to ReceivedMoveDamageMultiplierAbAttr

* Fix merge conflicts for real
2024-06-26 01:08:03 +01:00
Teju Rajbabu
6046b9bfae
[Bug] fixed persistent shinyIcon bug (#2605) 2024-06-25 18:20:40 -04:00
Teju Rajbabu
d2e97979bd
[Bug] Add back saved loadout info (#2604) 2024-06-25 17:25:03 -04:00
Adrian T
fd08983181
[Ability] fix damage taken by disguise (#2601) 2024-06-25 15:32:45 -04:00
Tempoanon
eae2d0a144
[Bug] Fix typo in encore (#2499)
* Fix typo in encore

* I actually did forget the French typo
2024-06-25 19:18:05 +01:00
Teju Rajbabu
c8db3bff4c
[QOL] UI Improvement - Shiny Icon (#2372)
* Test changes to change variant label color based on Tint

* Revert "Test changes to change variant label"

This reverts commit 0ad0f62930.

* minimal recovery changes

* Finalized recovery and implemented ShinyIcon

* add setY in MockSprite

* added back some unintentional removed code

* added shiny_icons

* Initial test for tier change

* implemented Shiny Icon full functionality

* slight setY change for non-Base starters
2024-06-25 13:48:48 -04:00
Hugo Tembremande
8f7f46c6f2
[Localization] Correction of a typo in a french dialogue (#2597)
* [Localization] Correction of a typo in a french dialogue

* fix: typo when playing female char
2024-06-25 13:46:13 -04:00
Corrade
e70113073f
[Bug] Fix Dry Skin and ReceivedMoveDamageMultiplierAbAttr abilities (#2592)
* Dry skin and ReceivedMoveDamageMultiplierAbAttr bug fix: first cut

* Dry skin and ReceivedMoveDamageMultiplierAbAttr bug fix: removed redundant branch

* Dry skin and ReceivedMoveDamageMultiplierAbAttr bug fix: reworded test cases that had typos anyway

* Dry skin and ReceivedMoveDamageMultiplierAbAttr bug fix: renamed PreDefendMovePowerToOneAbAttr (Disguise) to mention damage rather than power

* Dry skin and ReceivedMoveDamageMultiplierAbAttr bug fix: renamed powerMultiplier to damageMultiplier in ReceivedMoveDamageMultiplierAbAttr
2024-06-25 13:23:48 -04:00
sodam
ea510571d4
[Localization] #1761 Korean trainer dialogue (for 3, 7, 9th Elite-4&Champions) (#2594)
* localized elite-4 in hoenn

* added steven's (hoenn champion)

* Update dialogue.ts

* added champion's (8th, 9th)

* added elite-4 (in Alola)
2024-06-25 11:41:15 -04:00
Proxymyr
0320ea3bfa
[Localization(fr)] Fixed typo in infatuation message (#2596) 2024-06-25 11:09:21 -04:00
sirzento
79d29bae85
[BUG] Egg pity should take owned eggs into account if rolled for species (#2584)
* Fixed Bug that causes multiple pity eggs in a row

* Bugfix that eggpity wont be increased if pokemon is not cought but exists as an egg
2024-06-25 10:19:24 -04:00
Puchimono
8e6cbad3fc
[Bug] Legendary pull rate fix from Leg. up machine (#2587) 2024-06-25 10:14:28 -04:00
José Ricardo Fleury Oliveira
dc64c32470
localization: added eviolite for pt_br (#2590) 2024-06-25 10:09:41 -04:00
Yonmaru40
d1c081e501
[Localization] various zh_cn translation fix 6/25 (#2585)
* Update ability-trigger.ts

* Update battle.ts

* Update bgm-name.ts

* Update egg.ts

* Update achv.ts

* Update menu-ui-handler.ts

* Update menu.ts

* Update starter-select-ui-handler.ts

* Update starter-select-ui-handler.ts

* Update dialogue.ts

* Update trainers.ts

* Update bgm-name.ts

* Update bgm-name.ts

* Update menu-ui-handler.ts

* missing comma

* Update dialogue.ts of Hassel

* Update trainers.ts trailing spaces
2024-06-25 10:05:55 -04:00
flx-sta
3e5ef3e3fb
[Bug] add playerfiled length check for score determination (#2583) 2024-06-25 00:15:11 -04:00
Madmadness65
bbc07e22bf
Add evil team music (#2582) 2024-06-24 22:51:13 -05:00
Tempoanon
dea8e9fa94
Slight tweak to evil boss teams (#2580) 2024-06-24 21:52:09 -05:00
InnocentGameDev
dd7fc7268c
[Localization] dialogue translations for ES for Evil Teams (#2581) 2024-06-24 22:02:01 -04:00
Amani H
136652caa9
[Item] Implement Eviolite Behavior (#2161)
* Add Eviolite with Unit Tests

* Localize for de, es, fr, it, ko, zh_CN, zh_TW

* Adjust German Localization

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

* Adjust Italian Localization

* Change Multiplier Type

* Adjust Unit Test Import

* Change Constructor

* Make Unit Tests Localized

* Comment Out of Reward Pool

---------

Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
2024-06-24 21:00:59 -05:00
damocleas
ec91d2453a
[Balance] Protean / Libero changed to Gen 6-8 Implementation (#2473)
* Protean / Libero changed to Gen 6-8 Implementation

* take 2

* please just work

* Update protean.test.ts

* Update libero.test.ts
2024-06-24 20:58:50 -05:00
Lugiad
3d43b50c35
[Localization] French Evil Team dialogues (#2578)
* Update French dialogue.ts

* Update dialogue.ts
2024-06-24 21:53:07 -04:00
AJ Fontaine
02cdfc0a7b
Allow gen 8/9 mons to learn Double Team, Hidden Power, Return and Frustration by TM (#2531) 2024-06-24 20:22:17 -05:00
Tempoanon
072755989c
[Feature] Implement evil teams (#2028)
* waveIndex trainer team config generatoin is cursed

* Updated grunt pools

* Removed a comma that was bothering me

* Add locales for es, fr, it, pt, zh for translators

* Update src/locales/zh_CN/dialogue.ts

Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>

* Fix lint issue

* Update src/locales/pt_BR/dialogue.ts

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

* Last min team tweaks

---------

Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: José Ricardo Fleury Oliveira <josefleury@discente.ufg.br>
2024-06-24 20:00:30 -04:00
Adrian T
2bab7d3778
[Bug] Fix trainer double battle crash (#2573)
* fix double battle crash

* remove !

* fixes crash on double battle
2024-06-24 17:32:21 -04:00
Adrian T
71299a731c
[Bug] Eiscue changing form regardless of previous form on arena reset (#2572)
* fix eiscue (again)

* hardcode eiscue check
2024-06-24 17:05:24 -04:00
José Ricardo Fleury Oliveira
587ee7e103
Localization: Fixed typo in party-ui-handler.ts "addedAsAStarter" (#2571) 2024-06-24 16:59:17 -04:00
Adrian T
bc5de8810b
[Bug] fix noice crashing on arena reset (#2568) 2024-06-24 15:00:20 -04:00
José Ricardo Fleury Oliveira
930845c715
Localization: Add "has been added as a starter!" localization (#2555)
* [Localization] Update Portuguese translation for egg.ts

* Localization: Add "added as a starter" translation in multiple languages

* revert

* Update src/locales/ko/battle.ts

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

* Update src/locales/es/battle.ts

Co-authored-by: Jancojicanoder <jancoleiva@gmail.com>

* Update src/locales/fr/battle.ts

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

* Update src/locales/de/battle.ts

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

* Localization: Update Spanish and Portuguese translations for "addedAsAStarter"

---------

Co-authored-by: Enoch <enoch.jwsong@gmail.com>
Co-authored-by: Jancojicanoder <jancoleiva@gmail.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
2024-06-24 13:55:46 -04:00
EmberCM
2ca86dd901
[Bug] Prevent lures from stacking different tiers (#2550)
* Prevent lures from stacking different tiers

* Fix existing stacks of lures only applying once

* Revert "Fix existing stacks of lures only applying once"

This reverts commit c954a56b41.

* Document lure modifier code
2024-06-24 12:55:42 -04:00
EmberCM
9e3fe2d53a
[QoL] Add message for when you aren't hatching eggs (#1969)
* Add message for when you aren't hatching eggs

* Add prompt to message

* Remove noEggs message after a delay
2024-06-24 12:21:42 -04:00
Frederico Santos
e2507a2112
feat: Add logic to delete session data when overwriting a save (#2565) 2024-06-24 17:02:22 +01:00
Jannik Tappert
8099f02306
[Enhancement] Added a bgmBar to show the name of the track once music is played (#2457)
* Added a bgmBar to show the name of the track once music is played

* Even more close to ability bar

* It now shows. And also shows already for a couple of them a readable name

* Now the queue actually works

* Create locales for bgmName (bgm-bar ui)

  + Most of the music has only Japanese and English names
    But there are a number of tracks with official translations following OST commercialization

* Add i18n and use it to retrieve OST names (avoids a giga switch case)

  + A fallback key is implemented in the case of adding tracks not referenced in the translation files, its value being just the name of the bgm itself

* FormatText is now in Utils and not arena-flyout

BGM Names for non-localized music will be formatted to have capitalized letters and no _

* It is now a setting. It can be even changed mid fight

* Update src/ui/ability-bar.ts

* Apply suggestions from code review

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

* Update src/locales/de/bgm-name.ts

* Apply suggestions from code review

Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>

* Added the rest of the music names

* Changed PMD EoS to PMD ETH in german (Pokemon Mystery Dungeon Erkundungsteam Himmel)

* Due to feedback it is now "PMD ET-Himmel"

* Corrected the encounter theme names (and some missed trainer class names)

* Background is now a nicneslice. And it is at the top of the screen and above everything else

* The bar now scales with the text.

* Revert override

* Update src/locales/fr/bgm-name.ts

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

* It now only appears when V is pressed (in all but starter select)

* Cleared the cod eup

* Update src/locales/zh_CN/bgm-name.ts

Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>

* Update src/locales/zh_CN/settings.ts

Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>

* Update src/locales/ko/bgm-name.ts

Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>

* The bgmBar now appears in the pause menu instead.

* Should react better on settings change

* To be safe this required a reload now

* Update src/locales/fr/bgm-name.ts

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

* Update src/locales/fr/bgm-name.ts

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

* Write out pokemon mystery dungeon names in german

* Update src/locales/es/bgm-name.ts

Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>

* Update src/locales/zh_CN/bgm-name.ts

Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>

* Update src/battle-scene.ts

---------

Co-authored-by: Dakurei <maxime.palanchini@gmail.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
2024-06-24 16:31:38 +01:00
cadi
8c8ddd26b5
[Ability] Implement Quick Draw (#2287)
* implement quick draw

* add line

* change ability success condition

* quick draw comes before quick claw effect

* now ability has chance variable to test conditional situation

* add unit test

* Merge branch 'main' into ability-quick-draw

* modifed: ability.getTriggerMessage

* modified: to use pokemon.battleData.abilityRevealed

* modified: changed private variable to public

* erase expect interceptor log

* add localizations

* modified: add comma in locales

* modified: ability docs & trigger logic

* modified: changed test logic
2024-06-24 11:22:15 -04:00
Adrian T
e9fb13cce9
[Move] Implement Flower Shield (#2543)
* implement flower shield

* add unit tests

* refactors, add test

* use HideSpriteTag instead

* update comment

* replace HideSpriteTag with SemiInvulnerableTag
2024-06-24 10:37:24 -04:00
Ei
3fa7e30e47
[Localization] Most missing translations in zh_TW (#2560) 2024-06-24 10:28:09 -04:00
José Ricardo Fleury Oliveira
6d6ea87956
Localization: Update "Snarl" move effect in pt_BR translation (#2561) 2024-06-24 10:22:29 -04:00
Ei
62f015c944
[Localization] Fixed various typos and formatting issues in zh_TW and zh_CN (#2557) 2024-06-24 01:32:31 -04:00
DustinLin
8c9603ab19
[Bug] fix softlock/runtime error after roar in doubles (#2553)
* added undefined runtime safeguard checks

* adding documentation

* fixing typos and logic

* removing operator bc i forgor
2024-06-24 01:06:15 -04:00
sodam
3a9a3caf73
[Localization] #1761 Korean trainer dialogue (Kalos region) (#2541)
* localized other kalos

* fix some typo

* applied suggestion
2024-06-24 00:39:26 -04:00
José Ricardo Fleury Oliveira
ba6bf5f00c
[Localization] Update Portuguese translation for egg.ts (#2554) 2024-06-24 00:38:00 -04:00
José Ricardo Fleury Oliveira
fd7e547750
[Localization] Update menu.ts with "attackFailed" translation (#2547)
* Update menu.ts with new translation and choosePokemon option

* revert ptbr

* fix

* minor fix
2024-06-24 01:38:17 +01:00
Enoch
b5ffb9aae3
[Localization] localize hatch egg message (+ egg move unlock) (#2395)
* localize hatch egg message (+ egg move unlock)

* Revert overrides.ts

* Update src/locales/de/egg.ts

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

* Update src/locales/zh_CN/egg.ts

Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>

* add parameter moveName to (rare)eggMoveUnlock to make sentense more flexable

* Update src/locales/ko/egg.ts

Co-authored-by: hibiya (김종이) <inemuri@hibiya.moe>

* Update src/locales/it/egg.ts

* Update src/locales/fr/egg.ts

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

* Update src/locales/fr/egg.ts

* Update src/locales/fr/egg.ts

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

* Update src/locales/fr/egg.ts

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

* Update src/locales/es/egg.ts

Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>

* solve merge error > Update src/locales/zh_TW/egg.ts

---------

Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
Co-authored-by: hibiya (김종이) <inemuri@hibiya.moe>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
2024-06-23 20:14:18 -04:00
Adrian T
20b708170c
[Bug] Prevent attempting to use a move with no pp when pokemon is not on the field (#2532)
* prevent using move with no pp when pokemon is fainted

* change condition to isActive(true)
2024-06-23 18:08:55 -04:00
Ei
d743f7ba7a
[Localization] A lot of zh_TW translations and fixes (achivements, battles, game modes, biomes, abilities, ui handlers, and more) (#2551)
* Corrected all English punctuation into Chinese in zh_TW

* Merged battle.ts and biome.ts translations into this branch

* abilitiy-trigger.ts and achv.ts

* battle.ts egg.ts fight-ui-handler.ts game-mode.ts

* a bunch of minor changes
2024-06-23 17:59:05 -04:00
Lugiad
70298ac298
[Localization] "Choose a Pokémon." French & Korean translation (#2549)
* Update French menu.ts

* Update menu.ts
2024-06-23 15:14:09 -04:00
José Ricardo Fleury Oliveira
d8e5dc1e91
Localization: Added missing translation for "Choose a Pokémon" in multiple languages (#2548) 2024-06-23 18:19:36 +01:00
innerthunder
905ecd6576
[Bug] Remove grounding moves' arbitrary turn limits (#2526)
* Remove grounding moves' arbitrary turn limits

* Added documentation for GroundedTag

* Rename GROUNDED tag + add tag check to isGrounded

* Fix remaining GROUNDED reference

* Clean up calls to getTag
2024-06-23 12:48:49 -04:00
sirzento
0bd25e925e
[BUG] Legendary egg pity & manaphy counter fix + Egg unit tests (#2534)
* Fixed bug that legendary egg pity only increased by one if egg pulled out of legendary gacha

* Removed debug logs

* Added new unit tests. Fixed bug that sometimes common eggs do count as manaphy eggs.
2024-06-23 12:40:37 -04:00
Adrian T
7f15efcd34
[Refactor] unit tests cleanup (#2533) 2024-06-23 12:38:40 -04:00
Lugiad
111cfd686d
[Localization(fr)] Some missing translations + some corrections (#2538)
* Update French ability-trigger.ts

* Update French fight-ui-handler.ts

* Update French menu.ts

* Update French settings.ts

* Update French egg.ts

* Update French modifier-type.ts

* Update modifier-type.ts

* Update modifier-type.ts
2024-06-23 12:37:04 -04:00
Jannik Tappert
fb6ed34211
[Localization] Added missing german localization (#2546) 2024-06-23 12:34:53 -04:00
AJ Fontaine
45c7282581
[Localization] Fixed missing punctuation for trap removal (#2544) 2024-06-23 12:32:14 -04:00
dorri-riddo
b04dfd07e7
[Localization] #1761 Korean trainer dialogue (olympia, grant, korrina, clemont) (#2537) 2024-06-23 12:28:05 -04:00
Matthew Olker
7ff4daa48d hotfix add back message bg 2024-06-23 12:17:51 -04:00
Matthew
d2f4c5b59c
[UI] UI Small Adjustments (#2525)
* UI Small Adjustments

* Fix Unit Tests

* Null check event display before clear

* better empty move placeholder debug name
2024-06-23 12:09:23 -04:00
José Ricardo Fleury Oliveira
baac90120f
updated modifier-type.ts (#2542) 2024-06-23 17:01:28 +01:00
José Ricardo Fleury Oliveira
326ae013fe
updated costar and trace (#2539) 2024-06-23 16:50:05 +01:00
José Ricardo Fleury Oliveira
14f1ba5336
[Localization(pt)] updated some translations (#2530) 2024-06-23 00:48:55 -04:00
Madmadness65
b505962a0c
[Documentation] Update arena-tag.ts (#2529) 2024-06-23 00:44:24 -04:00
EmberCM
bce874b99a
[QoL] Move fusion icon to right of gender icon in party ui (#2470) 2024-06-22 23:06:13 -04:00
hibiya (김종이)
cb5016d10f
[Localization] include pokemon names, stats into battle:stat* keys (#2373)
* [Localization] include pokemon names, stats into battle:stat* keys

* [Localization(fr)] Update stat change messages

Co-Authored-By: Lugiad <adrien.grivel@hotmail.fr>

* [Localization(es)] Update stat change messages

Co-Authored-By: GoldTra <162721984+GoldTra@users.noreply.github.com>

---------

Co-authored-by: Lugiad <adrien.grivel@hotmail.fr>
Co-authored-by: GoldTra <162721984+GoldTra@users.noreply.github.com>
2024-06-22 21:55:09 -04:00
Madmadness65
db06c53693
Implement Happy Hour (#2358) 2024-06-22 20:03:15 -05:00
Frederico Santos
ef5847dee3
Update src/locales/de/menu-ui-handler.ts
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
2024-06-23 01:52:52 +01:00
returntoice
e338144682
[Localization(ko)] Some minor changes (#2520) 2024-06-22 13:58:32 -04:00
sirzento
a833ff68d0
[Bug] Fixed that legendary egg pity doesn't increase (#2519) 2024-06-22 12:53:02 -04:00
sirzento
ff9528129c
[Bug] Fixed that a single voucher pull will always be common (#2518) 2024-06-22 12:39:35 -04:00
Dmitriy K
f84fedd588
[Localize(en)] Add EN locale keys to Costar (#2517)
* Add unthaw to moves that are missing it

Add unthaw to all damaging fire moves

Add Status Effect overrides for easier testing

clean up comments and readd status cure before fainting

* implement Costar ability, refactor TraceAbAttr to be more generic

* format code, clean up comments

* Revert "Add unthaw to moves that are missing it"

This reverts commit 89494fa0c8.

* clean up comments, remove unused call

* ability now copies negatives changes as well

* separate PostSummonCopy into two different classes

* small refactor of copy ability attrs

* add costar to test suite

* remove abstract declaration from comments

* remove broken import statement

* actually fix broken imports

* add i18n calls

* add en keys to other locales and sort by alpha
2024-06-22 12:09:35 -04:00
Jacob Hatchett
77d25d18f9
[Ability] Implemented Aura Break (#2252)
* re-adjust according to new changes

* added unit tests

* add test fixes

* add documentation

* more fixes
2024-06-22 11:37:46 -04:00
Dmitriy K
3bbe01b288
[Ability] Implement Costar Ability (#1218)
* Add unthaw to moves that are missing it

Add unthaw to all damaging fire moves

Add Status Effect overrides for easier testing

clean up comments and readd status cure before fainting

* implement Costar ability, refactor TraceAbAttr to be more generic

* format code, clean up comments

* Revert "Add unthaw to moves that are missing it"

This reverts commit 89494fa0c8.

* clean up comments, remove unused call

* ability now copies negatives changes as well

* separate PostSummonCopy into two different classes

* small refactor of copy ability attrs

* add costar to test suite

* remove abstract declaration from comments

* remove broken import statement

* actually fix broken imports
2024-06-22 11:35:25 -04:00
Temps Ray
5234c8e92e Remove screen inversion if move animations are off 2024-06-22 10:44:26 -04:00
Enoch
9e3b5c636c
[Localization] Localize hp phases and translate in Korean (#2432)
* Localize hp phases and translate in Korean

* Change codeName for distinguish other HP restore message

* Update src/locales/fr/battle.ts

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

---------

Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: Lugiad' <adrien.grivel@hotmail.fr>
2024-06-22 10:24:08 -04:00
Adrian T
464ffe7332
[Enhancement][Unit Test] Refactor + Unit Tests for Light Screen, Reflect and Aurora Veil (#2514)
* refactor copy pastas

* add tests

* specify arena tag types
2024-06-22 10:09:23 -04:00
yun
1bd9941d43
[Localization] [ko] update egg and starter-select (#2513) 2024-06-22 10:00:50 -04:00
Dakurei
c818f0e1df
[Enhancement] Avoids 'flashbanging' for players in Shop UI (#2504)
* Fix - Avoids 'flashbanging' for players playing at x5 speed by making the transition time constant regardless of the speed chosen

* Forgot to delete a debugging value
2024-06-22 09:58:07 -04:00
sirzento
f0422fa7d9
Hotfix: Rare Egg move rate from bought eggs where always common tier rates (#2512)
* Hotfix: Rare Egg move rate from bought eggs where always common tier rates

* Update src/data/egg.ts. Removed new line

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

---------

Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
2024-06-22 13:28:10 +01:00
sirzento
3e9fbeb4d6
Hotfix: Override varaint tier if species was given. Fixed that some common egg where displayed as manaphy egg and wrong manaphy egg counter (#2505)
* Hotfix: Override varaint tier if species was given. Fixed that some common egg where displayed as manaphy egg.

* Fixes wrong manaphy egg pulled stat count
2024-06-22 20:40:10 +10:00
Matthew Olker
5ba14a346a hotfix egg source type please be the last one 2024-06-21 23:11:17 -04:00
José Ricardo Fleury Oliveira
c32d0824bc
[Localization(pt)] update egg and starter-select (#2500) 2024-06-21 22:56:17 -04:00
Matthew Olker
d6cc28ea69 hotfix save AFTER egg is made 2024-06-21 21:59:58 -04:00
Matthew Olker
6c0602b3f8 hotfix egg descrptions 2024-06-21 21:26:42 -04:00
Dakurei
eb224381a6
Fix - The wave is no longer displayed under the overlay as it used to be (even before the black overlay ...) (#2498)
+ Its previous color just made it harder to see that the text was underneath the overlay
2024-06-21 20:47:00 -04:00
sirzento
9d090f37f9
[Feature] [Same species Egg] Egg class rewrite to enable fully parameterized eggs to generate same species eggs + Egg overrides (#1833)
* Create variant-tiers enum

* Added variant tier override property to the egg class

* Added hasVariants function to pokemon species

* Implement variant override logic to egg hatching phase

* Delete src/enums/variant-tiers

* Create variant-tiers enum

* Added egg shiny and variant overrides

* fixed egg comment in overrides.ts

* Added override logic to egg hatch phase

* Added species pool filter logic when global override is set

* Added global egg tier override logic

* Added global egg tier override

* Added global gacha pull count override logic

* Added global gacha pull count override

* Renamed egg hatch override

* Renamed egg hatch override

* Added gacha pull without voucher global override

* Renamed free gacha pull global override

* Added free gacha pull override logic

* Gacha pull count override name fix

* Bugfix

* restored defaults + savegame bugfix

* eggOptions added to parameterize eggs. Added option to buy eggs of the same species.

* Small Bugfix for same species egg generation

* Removed translation from translator

* Improved the isManaphyEgg() check

* Fixed manaphy egg hatch wave count

* Added comments to IEggOptions

* Added eggOptions for hidden ability and rare egg move override

* Merge Fix: Update egg-hatch-phase.ts

* Fixed manaphy rates back to 1/256 like in PR #2182

* Renamed override, same species egg unlocks after passive is bought. Added code as comment for custom shiny, HA and rare egg move rates.

* Merge fix. Moved enums.

* quick fix for the commented out code

* Fixed that you can't buy an egg over the 99 egg limit

* Fix that you can't buy eternatus

* Use already existing randSeedShuffle instead of my own function

* Eternatus buyable again. Changed overrides to be able to set common tier/variants. Moved getGuaranteedEggTierFromPullCount().

* Changed eggOption gachaType to sourceType. Replaced eggOption overrideRareEggMove with eggMoveIndex to exatly specify an egg move. Moved egg move unlock logic into the egg class. Simplified shiny calculation. Added same species egg type descriptor. Moved custom rates for same species egg code into egg.ts.

* Added 19 unit tests for eggs

* Changed unit test description

* Added higher rates for same species eggs

* Adjusted same species egg cost for 1-3 cost starters and HA rates

* Added legacy egg loading unit test. Fixed gachaType legacy value loaded from DB and legacy tier loading

* Legacy egg loading from server DB fixed
2024-06-21 20:19:56 -04:00
Matthew Olker
7efb0ca7fe hotfix lower shop overlay 2024-06-21 19:38:59 -04:00
Jannik Tappert
cf5fa887e9
[QoL] Improve shop readibility (#2267)
* Change Rouge Text Color to green, add black shadow behind name text

* Also added shader to cost text

* Update src/ui/modifier-select-ui-handler.ts

* Changed colors that didnt fit the contrast scaling thanks to @dakurai on discord.

* Removed a useless line and added a comment

* Apply suggestions from code review

Co-authored-by: Dakurei <maxime.palanchini@gmail.com>

* Revert changes

* Change colors for better contrast score (makes reading easier)

  + Corrects colors that were totally white when they should have been f8f8f8 like the others

* Created a new overlay especially for the shop

  + This one is an almost black color with a higher opacity. This makes the shop elements easier to read, as they blend much less into the UI underneath

* Add a filter on modifiers displayed in the shop

  + Add a getModifierBar() getter to retrieve the battle-scene bar directly
  + Modified the updateModifiers() method to filter the items displayed (modifiers held by Pokémon can be hidden)
  + Shop overlay hidding transition lengthened to the same duration as its showing

* Apply suggestion from @bennybroseph

* Apply suggestion from @brain-frog

* Fix - Removal of a warning in the generation of the typedoc for which my modification is responsible

---------

Co-authored-by: Dakurei <maxime.palanchini@gmail.com>
2024-06-22 00:04:25 +01:00
innerthunder
86cc1018e3
[Bug] Fix Thousand Arrows not hitting Pokemon with Levitate (#2493) 2024-06-21 14:04:11 -04:00
José Ricardo Fleury Oliveira
ed7fc4124c
[Localization] [pt] Updated dialogue.ts (#2435)
* updated dialogue.ts

* fix
2024-06-21 13:28:42 -04:00
Adrian T
28b2dd15c2
[Bug] fix pre defend power multiplier (#2416) 2024-06-21 11:10:49 -04:00
sodam
46135b5a68
[Localization] #1761 Korean trainer dialogue (Unova region) (#2486)
* localized dialouges in Hana region (1)

* localized elite-4 with chamion (in Hana region)

* localized other hana's trainer

* modified spaces after the sentence sign

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

* Update src/locales/ko/dialogue.ts

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

* Update src/locales/ko/dialogue.ts

---------

Co-authored-by: Enoch <enoch.jwsong@gmail.com>
2024-06-21 11:01:21 -04:00
Adrian T
d3e516b496
[Bug][Unit Test] fix and optimize sturdy unit tests (#2455)
* fix and optimize sturdy unit tests

* re-add timeout
2024-06-21 10:59:10 -04:00
JongHyeon Kim (Bell)
73cf89474d
[Bug] troubleshooting language setting mismatch error (prlang=ko-KR) (#2489)
* fix: troubleshooting language setting mismatch error (prlang=ko-KR)

* refactoring:change case code(ko-KR) to single line
2024-06-21 10:50:35 -04:00
innerthunder
7cad385a38
[Bug] Fix Thousand Arrows grounding opponents before use (#2485)
* Fix Thousand Arrows grounding opponents before use

* Use existing AddBattlerTag instead
2024-06-21 10:39:00 -04:00
Mark
eff1c8c333
[Unittest] Fix Ice Face Test where speed tie was sometimes breaking multi-hit test (#2487) 2024-06-21 10:37:09 -04:00