Commit 919131d
authored
Stat System Redesign (#173)
New stat system implemented to replace the old IStat, IBuff system.
What changed:
- Replaced old Buff / BuffTimed / BuffStacked / BuffValue model with:
- StatId
- Stat
- StatModifier
- StatModifierKind
- IStatModifierSource
- StatModifierSource
- TimedStatModifierSource
- StackableStatModifierSource
- StatSet
- Added layered calculation order: flat, additive percent, multiplicative percent, override, min/max clamp.
- Added source categories for buff, debuff, equipment, passive, upgrade, custom.
- Added stackable timed sources with max stacks and duration refresh on reapply
- Removed drawing concerns from the core stats classes.
- Added StatExampleScene
- Added SimpleStat.cs1 parent be47e39 commit 919131d
25 files changed
Lines changed: 3692 additions & 1242 deletions
File tree
- Examples
- Scenes
- ExampleScenes
- ShapeEngine
- Content
- Stats
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
| 23 | + | |
29 | 24 | | |
30 | 25 | | |
31 | 26 | | |
| |||
37 | 32 | | |
38 | 33 | | |
39 | 34 | | |
40 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
41 | 45 | | |
42 | 46 | | |
43 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
| |||
0 commit comments