Exemplo n.º 1
0
 public void Attach(Character c)
 {
     if (DoAttach != null)
     {
         try
         {
             DoAttach.Call(c);
         }
         catch (Exception e)
         {
             throw new ImplementationException("Error calling equipment attach script; id = " + ID, e);
         }
     }
 }
Exemplo n.º 2
0
        public virtual void Attach(Character c)
        {
            c.StrengthBonus  += StrengthMod;
            c.VitalityBonus  += VitalityMod;
            c.DexterityBonus += DexterityMod;
            c.MagicBonus     += MagicMod;
            c.SpiritBonus    += SpiritMod;
            c.LuckBonus      += LuckMod;

            if (DoAttach != null)
            {
                try
                {
                    DoAttach.Call(c, Level + 1);
                }
                catch (Exception e)
                {
                    throw new ImplementationException("Error calling materia attach script; name = " + Name, e);
                }
            }
        }