void ICarvable.Carve(Mobile from, Item item) { Point3D loc = this.Location; if (this.ParentContainer != null) { if (this.ParentMobile != null) { if (this.ParentMobile != from) { from.SendMessage("You can't carve that there"); return; } loc = this.ParentMobile.Location; } else { loc = this.ParentContainer.Location; if (!from.InRange(loc, 1)) { from.SendMessage("That is too far away."); return; } } } //add blood Blood blood = new Blood(Utility.Random(0x122A, 5), Utility.Random(15 * 60, 5 * 60)); blood.MoveToWorld(loc, Map); //add meat Jerky jerky = new Jerky(m_IOBAlignment); if (this.ParentContainer == null) { jerky.MoveToWorld(loc, Map); } else { this.ParentContainer.DropItem(jerky); } this.Delete(); }
void ICarvable.Carve(Mobile from, Item item) { Point3D loc = this.Location; if (this.ParentContainer != null) { if (this.ParentMobile != null) { if (this.ParentMobile != from) { from.SendMessage("You can't carve that there"); return; } loc = this.ParentMobile.Location; } else { loc = this.ParentContainer.Location; if (!from.InRange(loc, 1)) { from.SendMessage("That is too far away."); return; } } } //add blood Blood blood = new Blood(Utility.Random(0x122A, 5), Utility.Random(15 * 60, 5 * 60)); blood.MoveToWorld(loc, Map); //add meat Jerky jerky = new Jerky(m_IOBAlignment); Jerky jerky2 = new Jerky(m_IOBAlignment); Jerky jerky3 = new Jerky(m_IOBAlignment); BodyPart heart = new BodyPart(BodyPart.Part.HEART); BodyPart liver = new BodyPart(BodyPart.Part.LIVER); BodyPart ent = new BodyPart(BodyPart.Part.ENTRAILS); if (this.ParentContainer == null) { jerky.MoveToWorld(loc, Map); jerky2.MoveToWorld(loc, Map); jerky3.MoveToWorld(loc, Map); heart.MoveToWorld(loc, Map); liver.MoveToWorld(loc, Map); ent.MoveToWorld(loc, Map); } else { this.ParentContainer.DropItem(jerky); this.ParentContainer.DropItem(jerky2); this.ParentContainer.DropItem(jerky3); this.ParentContainer.DropItem(heart); this.ParentContainer.DropItem(liver); this.ParentContainer.DropItem(ent); } this.Delete(); }