PlayerWeightStat
A class in Root.Township, Alta.StatSystem.
Stat definition that mirrors the player's carried weight from PlayerWeight into a stat.
- Listed in Stats, effects, heat and liquid
- Inherits or implements
StatDefinition - Documented in Stats
Constructors
| Member | What it is |
|---|---|
PlayerWeightStat() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Methods
| Member | What it is |
|---|---|
override void Applied(StatManager manager, Stat stat) | Sets the stat's base to the new weight whenever PlayerWeight.WeightChanged fires on the entity's prefab root. |