private void HandleWeaponCrafting(Person actor, string itemName) { if (actor.HasItemInInvetory(ItemType.Iron) && actor.HasItemInInvetory(ItemType.Wood)) { this.AddToPerson(actor, new Weapon(itemName)); } }
private void HandleArmorCrafting(Person actor, string itemName) { if (actor.HasItemInInvetory(ItemType.Iron)) { this.AddToPerson(actor, new Armor(itemName)); } }
private void HandleGatherInteraction(Person actor, string itemName) { if (actor.Location is IGatheringLocation) { var gatheringLocation = actor.Location as IGatheringLocation; if (actor.HasItemInInvetory(gatheringLocation.RequiredItem)) { this.AddToPerson(actor, gatheringLocation.ProduceItem(itemName)); } } }