Heroes and Classes
Class roster
Six class slots, indexed 0โ5. Indices are permanent identifiers โ display names can change, indices cannot.
| Index | Name | Primary stat |
|---|---|---|
| 0 | Marauder | Intelligence |
| 1 | Templar | Vitality |
| 2 | Night Hunter | Agility |
| 3 | Cleric | Intelligence |
| 4 | Arcanist | Intelligence |
| 5 | Necromancer | Intelligence |
Source: PlayerIdentity.ClassNames (names/indices), CharacterStats.GetPrimaryStatAboveBaseline() (primary stats per class).
Rename history for index 0: Engineer โ Warden โ Marauder. The index did not change. Rename history for index 1: Guardian โ Ironclad โ Templar. The index did not change. Rename history for index 2: Shadowblade โ Night Hunter. The index did not change.
Class availability
CharacterClassAvailability (defined in CharacterSelectUI.cs) controls which classes the Deploy button accepts. Classes at indices 1 (Templar) and 2 (Night Hunter) are in UnplayableClassIndices โ the character select screen shows an "IN DEVELOPMENT" badge on these slots and the Deploy button is non-interactive. Marauder (0), Cleric (3), Arcanist (4), and Necromancer (5) are accessible to all clients.
GM users can run unlockroster in the GM console to enable a session-persistent testing override that makes all classes deployable. The override does not persist across application restarts. See GM Console & Tools.
Character deployment
When the player presses the Deploy button for a playable class, the client sends a class selection request to the auth server. The server responds with a character record bound to that class: { id, class_index, token }.
- If the response is absent, the
class_indexdoes not match the requested class, or the token is missing, deployment is blocked and the Deploy button resets toCLASS UPDATE FAILED โ RETRY. No network connection is started. - On success, the character-bound token replaces the session JWT (
PlayerPrefs("jwt_token"),AuthManager.Token) andAuthManager.CharacterIdis set to the server-assigned character id. Each class slot has its own persistent character record on the server; selecting a different class slot issues a different token and character id.
Sources: CharacterSelectUI.cs, CharacterSelectManager.cs.
Entities that are NOT player classes
- Iron Warden โ a world boss (
IronWardenController). Not a player class. - Templar, Wizard, Chaos Weaver โ Enemy Forge enemies. Not player classes.
- Brandalf โ model directory removed; remains only as editor-tooling scaffolding. Not a 6th hero.
Stat progression (server-authoritative)
CharacterStats is a NetworkBehaviour. When a character spawns and the auth record has fromDB = true, RodNetworkManager calls CharacterStats.SetProgressionStats() on the server, applying the account-owned level, strength, agility, intelligence, and vitality. These sync to all clients via SyncVars.
RecalculateProgressionBonuses() maps class index to primary stat:
| Index | Primary stat (class) |
|---|---|
| 0 โ Marauder | Intelligence |
| 1 โ Templar | Vitality (baseline 10) |
| 2 โ Night Hunter | Agility |
| 3 โ Cleric | Intelligence |
| 4 โ Arcanist | Intelligence |
| 5 โ Necromancer | Intelligence |
All other classes use a primary stat baseline of 5; Templar uses 10 for Vitality.
Stat bonuses applied above the baseline feed into CharacterStats.Recalculate():
- Primary stat above baseline โ damage multiplier increase
- Strength above 5 โ additional damage multiplier increase
- Vitality above 10 โ flat max health increase
- Intelligence above 5 โ max mana increase
- Agility above 5 โ move speed multiplier increase
Per-point scaling values are Inspector-tunable in the Level Progression Tuning section of the CharacterStats component on each class prefab.
Equipment stat bonuses
CharacterStats.SetEquipmentStatBonuses(str, agi, int, vit) is called by the server when a character's equipped gear is loaded from GET /api/game/equipment/:characterId. Equipment bonuses are stored in SyncVar fields (_equipmentStr, _equipmentAgi, _equipmentInt, _equipmentVit) and combined with progression stats to produce effective values (EffectiveStrength, EffectiveAgility, EffectiveIntelligence, EffectiveVitality). All stat scaling and damage/health/mana/speed calculations use effective values. See Loot, Inventory and Crafting for the equipment system.
Related: Ability Atlas & Synergies ยท Combat Core & Loop ยท GM Console & Tools ยท Loot, Inventory and Crafting