Commit Graph

3152 Commits

Author SHA1 Message Date
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
chaosgrimmon a148020598
[Bug] Stop Mega X/Y crashes and restore animations (#2492)
This affects Charizard and Mewtwo Megas.
2024-06-21 12:44:41 -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
Adrian T 9baa72903f
[Bug] Fix arena traps on flyout (#2483)
* fix arena traps on flyout

* specify for arena trap tags
2024-06-21 10:32:49 -04:00
Matthew Olker 0ebf9342f5 extend the event due to maintenance 2024-06-21 08:29:39 -04:00
Xavion3 a14128aece
Fix Minimize AI and add NaN AI score safeguard (#2460) 2024-06-21 09:26:32 +10:00
innerthunder 7ae6baf9a5
[Bug] Fix Poison Heal blocking non-Poison damage (#2465) 2024-06-20 15:07:27 -04:00
innerthunder 22e26621b3
[Unittest] Remove HP assignment in unit tests (#2466) 2024-06-20 15:02:17 -04:00
Zach Day f9d74aa836
[Fix] Fix randomness in Gastro Acid unit test (#2443)
* Make ability suppression fail if ability is already suppressed

* Document SuppressAbilitiesAttr

* Add gastro acid unit tests

* Fix rng broken unit test

* Fix it for both tests
2024-06-20 14:02:05 -04:00
Matthew 4e511f7291
Update wiki link (#2461) 2024-06-20 12:53:24 -04:00
Matthew Olker 12fc51a1f2 update chinese party font size 2024-06-20 12:22:52 -04:00
Tempoanon 7a7e944a1c
Mountain Gale does not make contact (#2456) 2024-06-20 11:06:35 -05:00
Matthew e2a9f76926
more specific font unicode ranges and add unifont to existing families (#2459) 2024-06-20 11:28:47 -04:00
Matthew f016e2dbca
fix type sprites displaying wrong for languages with a hyphen (#2454) 2024-06-20 09:59:30 -04:00
José Ricardo Fleury Oliveira 125d55dd11
[Localization(pt)] updated battle.ts (#2437) 2024-06-20 09:39:05 -04:00
Yonmaru40 6a3537b061
[Localization] zh_cn translation fix (battle.ts modifier-type.ts) (#2445)
* Update battle.ts

* Update modifier-type.ts

* Update battle.ts seededlapse
2024-06-20 09:25:44 -04:00
Dakurei a0b1220fd6
Fix high severity vulnerability (#2446) 2024-06-20 14:04:21 +01:00
Adrian T a6dba35291
[Unit Test] add tailwind unit tests (#2436)
* add tailwind unit tests

* add addtl test
2024-06-20 11:27:16 +02:00
Adrian T 9181f434b7
add wind power unit tests (#2431) 2024-06-20 11:26:50 +02:00
Adrian T 0c42da8f10
[Enhancement] add wind rider unit tests (#2428)
* add wind rider unit tests

* specify wind rider ability on shiftry
2024-06-20 11:12:55 +02:00
innerthunder c803cb5cb0
[Enhancement] Optimize Unit tests (#2444)
* Optimize Unit tests

- Battery
- Unseen Fist
- Rage Powder
- Follow Me
- Spotlight
- Power Spot

* Fix Screen Cleaner unit test bug
2024-06-20 11:11:29 +02:00
Zach Day 07b9f5476a
[Fix] Ability suppression effects not failing correctly (#2440)
* Make ability suppression fail if ability is already suppressed

* Document SuppressAbilitiesAttr

* Add gastro acid unit tests
2024-06-20 00:43:45 -04:00
Madmadness65 aba3e2abc1 Correct the event's end date
It was set to end one day early, this has been fixed.
2024-06-19 18:51:31 -05:00
Tempoanon cb5cedac84
[Bug] Fix bug in doubles after 1 opponent is phazed (#2419)
* Hotfix uturn with kings rock

* Hotfix for crashing after phazing away a doubles opponent

* Hotfix for crashing after phazing away a doubles opponent
2024-06-19 22:36:23 +01:00
Matthew 3d9b134332
[UI] Update Challenge UI (#2393)
* Update Challenge UI

* Update interpolation and localization

* 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>

---------

Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
2024-06-19 20:40:08 +01:00
Gihong Kim a3b029facc
[Localization] Fix battlerTagsEncore binding name in korean (#2415) 2024-06-19 14:23:27 -04:00
yun 1ee89501b6
[Localization] Add missing manageNature entry in Korean for starter-select-ui-handler.ts (#2413)
* [Localization] Add missed manageNature entry in Korean for starter-select-ui-handler.ts

* [Localization] Add missed selectNature entry in Korean for starter-select-ui-handler.ts
2024-06-19 12:50:17 -04:00
Enoch c71e5372d4
[Localization] fixed binding name in Korean (#2412) 2024-06-19 12:21:01 -04:00
Lugiad 506cc76c2d
[Localization(fr)] Fix typo in battle.ts (#2411) 2024-06-19 12:13:55 -04:00
Dmitriy K 74aa5a8005
Create Class constructor utility type. (#2162) 2024-06-19 12:00:26 -04:00
Enoch afe70453b1
[hotfix] fix message when helping hand (#2410) 2024-06-19 11:34:17 -04:00
Enoch 150bd35822
[Localization(ko)] translate untranslated word korean in modifire-type (#2409) 2024-06-19 11:12:06 -04:00
Lugiad a37f6c55e6
[Localizatino(ko)] Translate spite (#2408) 2024-06-19 11:11:28 -04:00
José Ricardo Fleury Oliveira 03a98317a9
[Localization] [pt] Updated settings.ts (#2350)
* Updated settings.ts

* fix

* another fix

* minor fix

* fix

* fixfixfix
2024-06-19 11:00:13 -04:00
Enoch 06b1f8a0bc
[Localization] Add localization in battler-tags.ts (#1990)
* [Localization] Add localization in battler-tags

* localize curse ghost skill apply message

* translate Drowsy korean

* translate requested changes

* Update src/locales/ko/battle.ts

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

* resolve merge error

* Update French battle.ts

* remove unnecessary backslash

* Update src/locales/de/battle.ts

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

* Update battle.ts [Localization(it)]

* recover missing code resolving merge

* Update src/locales/zh_CN/battle.ts

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

* Update src/data/battler-tags.ts

---------

Co-authored-by: 송지원 <jiwsong@gmarket.com>
Co-authored-by: sodam <66295123+sodaMelon@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: Niccolò <123510358+NicusPulcis@users.noreply.github.com>
Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com>
2024-06-19 10:38:31 -04:00
Jannik Tappert a0186d9b61
[Localization DE] Made German Settings readable again (#2403)
* Made German Settings readable again

* Update src/locales/de/settings.ts

* Update src/locales/de/settings.ts

* Update src/locales/de/settings.ts

* Update src/ui/settings/abstract-settings-ui-handler.ts

* Remove empty line

* Update src/locales/de/settings.ts

* Update src/locales/de/settings.ts
2024-06-19 10:28:30 -04:00
Enoch f054789fd6
[Localization(ko)] translate korean ppReduced message (#2406) 2024-06-19 10:01:30 -04:00
Adrian T 29b8b3aa1f
[Bug] Fixes dragon tail vs ice face eiscue interaction (#2397)
* add optional chaining

* specify first hit
2024-06-19 09:51:50 -04:00
Enoch 58642e6be3
[Localize(ko)] translate untranslated settings word (#2405) 2024-06-19 09:47:44 -04:00
chaosgrimmon 2a2cb41130
[Bug] Prevent Variant Mega Blastoise Crashes (#2401)
* [Sprite] Temporary Front Exp Mega Blastoise Variants

* [Sprite] Temporary Back Exp Mega Blastoise Variants
2024-06-19 09:45:21 -04:00
Adrian T be208d48b6
[Feature] Add number of arena trap layers in menu flyout (#2059)
* add number of trap layers in menu flyout

* refactors

* change key type to effectType
2024-06-18 23:29:56 -05:00