Refactor character attributes system; replace individual attributes with a dictionary-based approach for better scalability and maintainability

This commit is contained in:
2025-08-02 06:06:51 +02:00
parent 93cbc4a3e5
commit 3871cba753
21 changed files with 505 additions and 417 deletions

View File

@@ -130,19 +130,20 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
attributes:
health: 10
maxHealth: 10
moveSpeed: 2
luck: 0
armor: 0
level: 1
experience: 0
baseExperienceToLevelUp: 100
damage: 1
rangedDamage: 1
meleeDamage: 1
attackRange: 1
attackSpeed: 1
serializedAttributes:
- key: 0
- key: 1
- key: 2
- key: 3
- key: 4
- key: 5
- key: 6
- key: 7
- key: 8
- key: 9
- key: 10
- key: 11
- key: 12
--- !u!114 &9093693903318130491
MonoBehaviour:
m_ObjectHideFlags: 0