public override void OnDoubleClick(Mobile from) { if (from.Backpack != null && from.InRange(this.Location, 3)) { if (Apple == null || Apple.Deleted) { Apple = new ShadowguardApple(Encounter, this); from.Backpack.DropItem(Apple); } } }
public override void Deserialize(GenericReader reader) { base.Deserialize(reader); int version = reader.ReadInt(); switch (version) { case 1: Apple = reader.ReadItem() as ShadowguardApple; goto case 0; case 0: Foilage = reader.ReadItem() as ShadowguardCypressFoilage; break; } if (Foilage != null) { Foilage.Tree = this; } }