Class LevelAndStatsTests
- Namespace
- GrindFest
- Assembly
- GrindFest.dll
Spec (positive behaviour) tests for hero progression: what levelling up is supposed to give.
These describe the intended rule rather than guarding a past mistake, so they keep their value after a rewrite (compare the ESC test in SettingsUiTests, which is explicitly temporary).
public class LevelAndStatsTests : DevTest
- Inheritance
-
objectLevelAndStatsTests
- Inherited Members
Methods
- 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.