Beispiel #1
0
        public void FinalizeDataHolder()
        {
            if (MinAmountOrRef < 0)
            {
                ReferencedEntryId = (uint)(-MinAmountOrRef);
            }
            else
            {
                MinAmount = MinAmountOrRef;
            }

            if (MinAmount < 1)
            {
                MinAmount = 1;
            }

            if (MinAmount > MaxAmount)
            {
                MaxAmount = MinAmount;
            }

            if (DropChance < 0)
            {
                DropChance = -DropChance;
            }

            LootMgr.AddEntry(this);
        }
Beispiel #2
0
 public void FinalizeDataHolder()
 {
     if (this.MinAmountOrRef < 0)
     {
         this.ReferencedEntryId = (uint)-this.MinAmountOrRef;
     }
     else
     {
         this.MinAmount = this.MinAmountOrRef;
     }
     if (this.MinAmount < 1)
     {
         this.MinAmount = 1;
     }
     if (this.MinAmount > this.MaxAmount)
     {
         this.MaxAmount = this.MinAmount;
     }
     if ((double)this.DropChance < 0.0)
     {
         this.DropChance = -this.DropChance;
     }
     LootMgr.AddEntry(this);
 }