Ejemplo n.º 1
0
 public static void FixMe()
 {
     // some mana gems are not consumables, like they should be:
     ItemMgr.Apply(item =>
     {
         var spell        = item.GetSpell(ItemSpellTrigger.Use);
         spell.HasCharges = true;
         spell.Charges    = 3;
         item.Class       = ItemClass.Consumable;
         item.UniqueCount = 1;
     }, ItemId.ManaAgate, ItemId.ManaSapphire, ItemId.ManaRuby, ItemId.ManaJade, ItemId.ManaEmerald, ItemId.ManaCitrine);
 }