Exemplo n.º 1
0
        public DBItem(DBItemTemplate template) : base()
        {
            m_templateID = template.ObjectId;
            Template     = template;

            for (int i = 0; i < 5; i++)
            {
                SpellStat stat = template.getSpellStat(i);
                if (stat.ID != 0)
                {
                    Enchantments[i].id               = stat.ID;
                    Enchantments[i].expiration       = 0;
                    Enchantments[i].chargesRemaining = stat.Charges;
                    m_spellCharges[i] = stat.Charges;
                }
            }
            Dirty = true;
        }
 public void setSpellStat(int ndx, SpellStat stat)
 {
     Dirty = true; m_spellStats[ndx] = stat;
 }