pokerogue/src/data
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
..
ability.ts [Bug] Fix Poison Heal blocking non-Poison damage (#2465) 2024-06-20 15:07:27 -04:00
api-generator.script.ts Add dependency cruiser command (#2192) 2024-06-16 00:26:37 -04:00
arena-tag.ts [Move] Implemented Magnet Rise (#2081) 2024-06-17 17:35:06 +02:00
battle-anims.ts [QoL] Reorganize Enum Locations (#2185) 2024-06-13 18:44:23 -04:00
battle-stat.ts [Localization] Modification some code about battle stat for localization (#1985) 2024-06-15 22:25:18 -04:00
battler-tags.ts [hotfix] fix message when helping hand (#2410) 2024-06-19 11:34:17 -04:00
berry.ts [Refactor] I18n Cleaning (#2348) 2024-06-17 17:05:33 -04:00
biomes.ts Add dependency cruiser command (#2192) 2024-06-16 00:26:37 -04:00
challenge.ts [UI] Update Challenge UI (#2393) 2024-06-19 20:40:08 +01:00
daily-run.ts [QoL] Reorganize Enum Locations (#2185) 2024-06-13 18:44:23 -04:00
dialogue.ts [Feature] Add Missing Champion Dialogue (#2120) 2024-06-15 16:47:44 +01:00
egg-moves.ts Update Egg Moves (#2227) 2024-06-14 17:30:36 -05:00
egg.ts [Feature] [Same species Egg] Egg class rewrite to enable fully parameterized eggs to generate same species eggs + Egg overrides (#1833) 2024-06-21 20:19:56 -04:00
exp.ts ESLint - The Essential Linter and Formatter for JavaScript and TypeScript (#1224) 2024-05-23 11:03:10 -04:00
gender.ts ESLint - The Essential Linter and Formatter for JavaScript and TypeScript (#1224) 2024-05-23 11:03:10 -04:00
move.ts [Bug] Fix Thousand Arrows not hitting Pokemon with Levitate (#2493) 2024-06-21 14:04:11 -04:00
nature.ts [QoL] Reorganize Enum Locations (#2185) 2024-06-13 18:44:23 -04:00
pokeball.ts [Refactor] I18n Cleaning (#2348) 2024-06-17 17:05:33 -04:00
pokemon-evolutions.ts [QoL] Reorganize Enum Locations (#2185) 2024-06-13 18:44:23 -04:00
pokemon-forms.ts Create Class constructor utility type. (#2162) 2024-06-19 12:00:26 -04:00
pokemon-level-moves.ts [QoL] Reorganize Enum Locations (#2185) 2024-06-13 18:44:23 -04:00
pokemon-species.ts [Feature] [Same species Egg] Egg class rewrite to enable fully parameterized eggs to generate same species eggs + Egg overrides (#1833) 2024-06-21 20:19:56 -04:00
pokemon-stat.ts [Refactor] I18n Cleaning (#2348) 2024-06-17 17:05:33 -04:00
splash-messages.ts [Refactor] I18n Cleaning (#2348) 2024-06-17 17:05:33 -04:00
status-effect.ts Implement Purify (#1291) 2024-05-25 06:01:23 -05:00
temp-battle-stat.ts [Localization] Localized the statname in the X Item description (#2264) 2024-06-15 21:54:53 -04:00
terrain.ts [QoL] Add type inference to getAttrs methods and refactor accordingly (#1633) 2024-05-31 19:50:30 -05:00
tms.ts [Bug] Add rest of trailblaze Pokemon (#2239) 2024-06-15 12:18:52 -04:00
trainer-config.ts [QoL] Reorganize Enum Locations (#2185) 2024-06-13 18:44:23 -04:00
trainer-names.ts [QoL] Reorganize Enum Locations (#2185) 2024-06-13 18:44:23 -04:00
type.ts Add setting for showing type effectiveness hints (#1061) 2024-06-08 15:33:13 -04:00
variant.ts ESLint - The Essential Linter and Formatter for JavaScript and TypeScript (#1224) 2024-05-23 11:03:10 -04:00
weather.ts [QoL] Reorganize Enum Locations (#2185) 2024-06-13 18:44:23 -04:00