コード例 #1
0
ファイル: Equipment.cs プロジェクト: skinitimski/Reverence
 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);
         }
     }
 }
コード例 #2
0
ファイル: MateriaOrb.cs プロジェクト: skinitimski/Reverence
        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);
                }
            }
        }