public void RemoveOrDowngrade(Ability a) { var actor = GetComponentInParent<Actor>(); if (actor == null) return; a.Return(actor); Save(); }
public void UnlockOrUpgrade(Ability a) { var actor = GetComponentInParent<Actor>(); if (actor == null) return; if (UnlockedAbilities().Count >= MaxUnlocks) return; a.Purchase(actor); Save(); }
public Ability(Ability a) { name = a.name; power = a.power; accuracy = a.accuracy; }