pokerogue/test/items
Wlowscha 466c4aede2
Replace remaining Modifiers with Rewards (#6091)
* Changing remaining Modifiers to Consumables, and renaming ModifierType to Reward

* Renamed modifier files and moved them into items folder

* Using rewards in most places

* Removed consumables in favor of using rewards directly

* Renamed RewardTier to RarityTier

* Reward ids, function to match rewards

* Getting reward tiers from player pool still

* Messing around with parameters of Reward.apply()

* Always requiring player pokemon in rewards

* Fixing some functions in select-reward-phase and battle-scene

* Fixed various post-merge issues

* Fixed most localization strings (accidentally broken by replacing modifierType with reward)

* Fixed tests for select reward phase

* Using Pokemon.hasSpecies()

* Zero weight for trainer items rewards which are already max stack

* Cleaning up SelectRewardPhase, held item rewards behave the same as any PokemonReward

* Cleaned up some functions

* Introduced RewardCategoryId, distributed RewardIds

* Utility `is` functions for rewards

* Minor fixes

* Moved `HeldItemEffect` to its own file

* rmade some todo comments

* Adding a big comment

* Added tsdocs and removed `RewardClass`

* undid breaking changes

* added TODO

* Moved matchingRewards function to reward-utils.ts

* Added RewardGenerator classes for mints and tera shards

* Introducing default rarity tiers for trainer items and rewards

* RewardFunc now can return RewardGenerator

* Moved pool reward functions to their own file, plus other utility files

* Fixed WeightedModifier to work with the new RewardFunc

* Fixed wrong type import

* Shifting trainer item and reward ids to avoid overlaps

* Added some types

* Updated comment in reward.ts

* Added strong typing ot item maps

* added type safety to held item name map

---------

Co-authored-by: Bertie690 <taylormw163@gmail.com>
Co-authored-by: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com>
2025-07-27 17:09:21 -07:00
..
dire-hit.test.ts Replace remaining Modifiers with Rewards (#6091) 2025-07-27 17:09:21 -07:00
double-battle-chance-booster.test.ts Replace remaining Modifiers with Rewards (#6091) 2025-07-27 17:09:21 -07:00
eviolite.test.ts Replace remaining Modifiers with Rewards (#6091) 2025-07-27 17:09:21 -07:00
exp-booster.test.ts Replace remaining Modifiers with Rewards (#6091) 2025-07-27 17:09:21 -07:00
grip-claw.test.ts Merge branch 'beta' into modifier-rework 2025-07-24 16:00:14 -06:00
leek.test.ts Merge branch 'beta' into modifier-rework 2025-07-24 16:00:14 -06:00
leftovers.test.ts Merge branch 'beta' into modifier-rework 2025-07-24 16:00:14 -06:00
light-ball.test.ts Replace remaining Modifiers with Rewards (#6091) 2025-07-27 17:09:21 -07:00
lock-capsule.test.ts Replace remaining Modifiers with Rewards (#6091) 2025-07-27 17:09:21 -07:00
metal-powder.test.ts Replace remaining Modifiers with Rewards (#6091) 2025-07-27 17:09:21 -07:00
multi-lens.test.ts Merge branch 'beta' into modifier-rework 2025-07-24 16:00:14 -06:00
mystical-rock.test.ts Merge branch 'beta' into modifier-rework 2025-07-24 16:00:14 -06:00
quick-powder.test.ts Replace remaining Modifiers with Rewards (#6091) 2025-07-27 17:09:21 -07:00
reviver-seed.test.ts Merge branch 'beta' into modifier-rework 2025-07-24 16:00:14 -06:00
scope-lens.test.ts Merge branch 'beta' into modifier-rework 2025-07-24 16:00:14 -06:00
temp-stat-stage-booster.test.ts Replace remaining Modifiers with Rewards (#6091) 2025-07-27 17:09:21 -07:00
thick-club.test.ts Replace remaining Modifiers with Rewards (#6091) 2025-07-27 17:09:21 -07:00
toxic-orb.test.ts Merge branch 'beta' into modifier-rework 2025-07-24 16:00:14 -06:00