Method LevelUp_GrantsStatPointsPerLevel
- Namespace
- GrindFest
- Assembly
- GrindFest.dll
LevelUp_GrantsStatPointsPerLevel()
Gaining enough experience raises the level and pays out the per-level stat points.
Note the cap: the party level cap is GameManager.BaseLevelCap + the LevelCap grants inscribed in the Grimoire (App/src/components/PrestigeTree/content.ts), and HeroLevelBehaviour.AddExperience returns 0 without touching experience once the hero is at the cap. That is deliberate - the very first Grimoire purchase is the gateway node ("A Lion in the Streets", +1 LevelCap, 50 gold, content.ts:1204), so a hero really does start capped at level 1 and levels only after the player inscribes it. A dev save has no such grant, so this test opens the cap for its own duration and puts it back afterwards.
public IEnumerator LevelUp_GrantsStatPointsPerLevel()