spacechase0 / StardewValleyMods

New home for my stardew valley mod source code
Other
119 stars 141 forks source link

[Spacecore] Skill mastery exp for custom skills #449

Closed Pet-Slime closed 5 months ago

Pet-Slime commented 5 months ago

Changes from the title should be pretty self explanatory.

Adds a Check to the AddExperince function of Skills

  1. Gathers the player's Core skill level and see if they are maxed
  2. Checks to see if the custom skill they are gaining exp in is also max or above max
  3. Gives mastery exp if the above two are true.

Added this here to Spacecore so not every custom skill needs to worry about how they are going to do mastery exp. It would be a lot of redundant code.