Commit Graph

49 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 8a1560bfa7
fix egg skip console error (#2284) 2024-06-16 00:48:09 -04:00
Matthew dc30dd33b2
[QoL] Reorganize Enum Locations (#2185)
* moving enums

* import updates

* fix tsconfig paths importing (#2184)

* reverse index.ts addition

---------

Co-authored-by: Devin Korb <meepdarknessmeep@gmail.com>
2024-06-13 18:44:23 -04:00
Matthew Olker e6c24dceab Revert "[QoL] Reorganize Enum Locations (#2142)"
This reverts commit cf06ff3b8d.
2024-06-13 11:30:47 -04:00
Matthew cf06ff3b8d
[QoL] Reorganize Enum Locations (#2142)
* moving enums
2024-06-13 11:11:12 -04:00
Adrian T 5d358fc57f
[Enhancement] Refactor egg counter (#1996)
* refactor egg counter

* add documentation
2024-06-10 20:20:00 -05:00
Xavion3 ff0e4fbdf0
Implement Pity System (#1752)
* Implement Pity System

* Add comments and optimised worst case slightly
2024-06-03 15:43:52 -04:00
Tempoanon ff5b227a6b
[Documentation] Add documentation to egg-hatch-phase.ts (#1650)
* Add documentation

* Ben has made me take more sanity damage
2024-05-31 16:34:02 -05:00
Adrian T 7e1b383be2
Add window showing number of eggs hatching during hatch phase (#1421)
* add window showing count of eggs hatching

* adjust property naming
2024-05-29 17:17:41 -05:00
Greenlamp2 e2be6ba002
added rule no-trailing-spaces (#1307) 2024-05-23 18:45:04 -05:00
Greenlamp2 bac6c22973
ESLint - The Essential Linter and Formatter for JavaScript and TypeScript (#1224)
* eslint config + packages

* updated eslint config

* fix the issue eslint adding ;;;; at interfaces

* first round with eslint --fix .

* removed config for unused export

* Revert "first round with eslint --fix ."

This reverts commit 77a88e0895.

* removed config for camelCase

* for real this time, first round of eslint --fix .

* halfway to manual eslint fix

* eslint done

* added "how to setup" the hook to eslint --fix each new file before commit (if wanted)

* removed eslintrc config file duplicat

* fix human error + ignore build folder + merge overrides

* added curly brace style + eslint

* applied double quote linter rule

* added lefthook

* test precommit

* test precommit

* test precommit

* test precommit

* test precommit

* test precommit

* test precommit

* github action to run eslint

* added node_modules to ignore eslint

* different action for typescript

* no need for different glob (default src)

* node 20

* node 20

* removed no longer needed install file

* remove hooks part from README

* eslint fixes

---------

Co-authored-by: Frederico Santos <frederico.f.santos@tecnico.ulisboa.pt>
2024-05-23 11:03:10 -04:00
Flashfyre 437cb87df9 Add separate achievements for sub-legendaries and rename pseudoLegendary field 2024-05-05 11:05:22 -04:00
Flashfyre 933f547e96 Fix egg shiny variant generation 2024-04-26 15:38:06 -04:00
Flashfyre f5cd99f091 Fix evolution and hatch screen not applying shader pipeline 2024-04-21 18:22:33 -04:00
Flashfyre 706a85ed5b Add missing pipeline data for shiny recolors in certain screens 2024-04-19 23:37:23 -04:00
Flashfyre c76f8c5e7e Add tiered shiny variants 2024-04-18 22:52:26 -04:00
Flashfyre 81536e7e8e Ignore fusion species generation on egg hatch 2024-04-10 20:31:52 -04:00
Flashfyre 9ee9a0a86b Fix egg hatch screen issues 2024-04-06 21:48:48 -04:00
Matthew 6b5bc5b830 Fix duplicate transition at the end of batch hatching 2024-04-05 17:53:36 -04:00
Matthew 0c579de6b1 Hatch Cleanup 2024-04-05 14:27:07 -04:00
Flashfyre 87e0e06b9e Add faster evolution skipping 2024-04-04 18:54:50 -04:00
Flashfyre 23e3bdc960 Bosses generate with higher IVs 2024-03-29 00:03:54 -04:00
Flashfyre 9725cf47b7 Add Pokemon info display on catch 2024-03-07 22:43:15 -05:00
Flashfyre 95bfb2a056 Implement Skill Swap and fix Wonder Guard with status moves 2024-03-04 21:32:11 -05:00
Flashfyre c683f72aad Replace type gacha with rare egg move gacha 2024-03-03 21:30:11 -05:00
Flashfyre 585b8c73f6 Change rare egg move rarity to correlate with egg rarity 2024-03-02 23:24:28 -05:00
Flashfyre 1fed59837b Fix RNG issues with egg moves 2024-03-01 22:18:39 -05:00
Flashfyre f48464d48d Minor refactoring 2024-02-29 20:08:58 -05:00
Flashfyre ffd785d534 Rebalance item weights and add Rogue tier 2024-02-28 23:13:05 -05:00
Flashfyre 649717a3cd Add egg moves logic 2024-02-25 12:45:41 -05:00
Flashfyre 4e93f1e52c Display enemy trainer briefly when switching 2024-02-22 00:00:51 -05:00
Flashfyre 824b751321 Add skip for egg hatch animation 2024-02-20 00:24:39 -05:00
Flashfyre 052564f902 Update final boss fight and restructure some files 2024-01-13 12:24:24 -05:00
Flashfyre 6084d3aaa6 Add form change system 2024-01-09 23:34:43 -05:00
Flashfyre eedad7d678 Add boss health bars 2024-01-07 23:17:24 -05:00
Flashfyre 06020bee14 Fix text overlap in egg hatch screen stats 2024-01-06 12:24:01 -05:00
Flashfyre 8cc1982859 Add natures 2024-01-05 22:31:13 -05:00
Flashfyre 7a47c62535 Fix various data related issues and add hatchedCount to DexEntry 2023-12-31 13:20:28 -05:00
Flashfyre 0700e9313d Make regional forms rarer to hatch from eggs 2023-12-31 01:28:40 -05:00
Flashfyre 60260faaa4 Ignore time of day tint on Pokemon sprites in UI 2023-12-30 15:44:20 -05:00
Flashfyre 97124c2710 Add shiny sparkle animation to egg hatch scene
Add shiny sparkle animation to egg hatch scene; implement missing logic for same seed trainer party member generation
2023-12-26 12:29:18 -05:00
Flashfyre 40439817ac Attempt fixing issue with gender-specific types 2023-12-26 01:29:05 -05:00
Flashfyre e07e267ddc Refactor windows and add alternate window skins 2023-12-20 22:22:15 -05:00
Flashfyre 5883c2fafd Calculate IVs twice for hatched Pokemon to improve overall IVs 2023-12-20 13:05:11 -05:00
Flashfyre 534d5a907c Fix eggs ignoring forms 2023-12-20 00:35:41 -05:00
Flashfyre aa94e044ab Add egg gacha system and various minor changes
Add egg gacha system; remove certain mythical Pokemon from the wild pool as egg exclusive; add egg vouchers with UI; rework Shiny Charm odds; fix trainer Pokemon shiny odds not properly ignoring Shiny Charm modifier
2023-12-19 23:51:48 -05:00
Flashfyre d8c62b700f Update Eternatus' moveset 2023-12-16 00:46:01 -05:00
Flashfyre 5ad16731db Fix crash with Deoxys normal forme sprite 2023-12-15 23:21:42 -05:00
Flashfyre 71fdafe8fb Add egg logic and hatching screen (WiP) and end biome arena BG 2023-12-15 23:07:32 -05:00