private void Awake() { resistanceManager.AddResistances(baseResistances); characterSpeed.Set(SpeedType.Walk); endurance.Current = endurance.max; characterStats.Randomize(); characterSkills.Randomize(); baseResistances.Randomize(); }
public void Equip(Equipable ep) { EquipableType equipableType = ep.equipableType; resistanceManager.AddResistances(ep.resistances); actor.Character.resistanceManager.AddResistances(ep.resistances); SetEquipmentParent(ep, equipableType, Equipable.IsHand(equipableType)); if (StorageItem.IsStorageItem(ep)) { storage.AddStorageItem((StorageItem)ep); } }