public void Detach(Character c) { if (DoDetach != null) { try { DoDetach.Call(c); } catch (Exception e) { throw new ImplementationException("Error calling equipment detach script; id = " + ID, e); } } }
public virtual void Detach(Character c) { c.StrengthBonus -= StrengthMod; c.VitalityBonus -= VitalityMod; c.DexterityBonus -= DexterityMod; c.MagicBonus -= MagicMod; c.SpiritBonus -= SpiritMod; c.LuckBonus -= LuckMod; if (DoDetach != null) { try { DoDetach.Call(c, Level + 1); } catch (Exception e) { throw new ImplementationException("Error calling materia detach script; name = " + Name, e); } } }