public BagOfSendingDono(BagOfSendingDonoHue hue) : base(0xE76) { this.Weight = 2.0; Name = "Bag of Sending (Donation)"; LootType = LootType.Blessed; this.BagOfSendingDonoHue = hue; this.m_Charges = Utility.RandomMinMax(250, 250); }
public override void Deserialize(GenericReader reader) { base.Deserialize(reader); int version = reader.ReadEncodedInt(); switch (version) { case 1: { this.m_Recharges = reader.ReadEncodedInt(); goto case 0; } case 0: { this.m_Charges = Math.Min(reader.ReadEncodedInt(), this.MaxCharges); this.m_BagOfSendingDonoHue = (BagOfSendingDonoHue)reader.ReadEncodedInt(); break; } } }