pokerogue/src
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
..
@types [UI] Update Challenge UI (#2393) 2024-06-19 20:40:08 +01:00
configs/inputs [QoL] Reorganize Enum Locations (#2185) 2024-06-13 18:44:23 -04:00
data [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
enums [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
events [Feature] Add number of arena trap layers in menu flyout (#2059) 2024-06-18 23:29:56 -05:00
field [Bug] Fix Thousand Arrows not hitting Pokemon with Levitate (#2493) 2024-06-21 14:04:11 -04:00
interfaces [UI] Update Challenge UI (#2393) 2024-06-19 20:40:08 +01:00
locales [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
modifier [QoL] Improve shop readibility (#2267) 2024-06-22 00:04:25 +01:00
pipelines added rule no-trailing-spaces (#1307) 2024-05-23 18:45:04 -05:00
plugins update chinese party font size 2024-06-20 12:22:52 -04:00
system [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
test [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
ui [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
account.ts [Bug] Unauthorized 401 error fix (#2315) 2024-06-17 02:44:07 +01:00
battle-scene.ts hotfix lower shop overlay 2024-06-21 19:38:59 -04:00
battle.ts [QoL] Reorganize Enum Locations (#2185) 2024-06-13 18:44:23 -04:00
debug.js ESLint - The Essential Linter and Formatter for JavaScript and TypeScript (#1224) 2024-05-23 11:03:10 -04:00
egg-hatch-phase.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
evolution-phase.ts Add Challenges (#1459) 2024-06-08 01:07:23 -04:00
form-change-phase.ts [Bug] Fixes dragon tail vs ice face eiscue interaction (#2397) 2024-06-19 09:51:50 -04:00
game-mode.ts [QoL] Reorganize Enum Locations (#2185) 2024-06-13 18:44:23 -04:00
inputs-controller.ts [QoL] Reorganize Enum Locations (#2185) 2024-06-13 18:44:23 -04:00
loading-scene.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
main.ts more specific font unicode ranges and add unifont to existing families (#2459) 2024-06-20 11:28:47 -04:00
messages.ts [Refactor] I18n Cleaning (#2348) 2024-06-17 17:05:33 -04:00
overrides.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
phase.ts ESLint - The Essential Linter and Formatter for JavaScript and TypeScript (#1224) 2024-05-23 11:03:10 -04:00
phases.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
scene-base.ts [UI] Update Challenge UI (#2393) 2024-06-19 20:40:08 +01:00
timed-event-manager.ts extend the event due to maintenance 2024-06-21 08:29:39 -04:00
touch-controls.ts [QoL] Reorganize Enum Locations (#2185) 2024-06-13 18:44:23 -04:00
tutorial.ts [Refactor] I18n Cleaning (#2348) 2024-06-17 17:05:33 -04:00
ui-inputs.ts Fix game speed (#2375) 2024-06-18 15:07:36 +01:00
utils.test.ts [Testing] Flexible Testing Wrapper for Phaser-Based Battle-Scenes (#1908) 2024-06-07 18:33:45 -04:00
utils.ts fix type sprites displaying wrong for languages with a hyphen (#2454) 2024-06-20 09:59:30 -04:00
vite.env.d.ts [QoL] Added https and server url is read from the env now (#1764) 2024-06-07 21:43:32 +01:00