Many changes to Invector inventory system, added WIP UI system, added implementation for max stamina, moving speed, attack speed, attack power, thorns

This commit is contained in:
2025-12-05 15:10:52 +01:00
parent 53fa05e246
commit af7706bfac
21 changed files with 2352 additions and 3868 deletions

View File

@@ -48,17 +48,15 @@ namespace Beyond
{
if (m != this)
{
Members = new List<vBodyMember>();
for (int i = 0; i < m.Members.Count; i++)
{
Members.Add(m.Members[i]);
}
this.hitProperties = m.hitProperties;
this.defaultDamage = m.defaultDamage;
this.defaultDefenseRate = m.defaultDefenseRate;
this.defaultAttackDistance = m.defaultAttackDistance;
this.defaultStaminaCost = m.defaultStaminaCost;
// This copies EVERY Serialized field from 'm' to 'this'
// It works perfectly because bMeleeManager inherits vMeleeManager
JsonUtility.FromJsonOverwrite(JsonUtility.ToJson(m), this);
// Re-run init to apply the copied data
this.Init();
// Stop after finding the first match so we don't copy ourselves if checking later
break;
}
}
}