public void DetermineValidItem(DataManager datamanager, Random rando) { if (hasItem == true) { if (eventItemType == Item.ItemType.Consumable) { earnedConsumableItem = datamanager.itemConsumableData[eventItemPosibilities[rando.Next(0, eventItemPosibilities.Count)]]; earnedItemText = earnedConsumableItem.itemName; } else if (eventItemType == Item.ItemType.Equipment) { earnedEquipmentItem = datamanager.itemEquipmentData[eventItemPosibilities[rando.Next(0, eventItemPosibilities.Count)]]; earnedItemText = earnedEquipmentItem.itemName; } else if (eventItemType == Item.ItemType.Loot) { earnedLootItem = datamanager.itemLootData[eventItemPosibilities[rando.Next(0, eventItemPosibilities.Count)]]; earnedItemText = earnedLootItem.itemName; } } }
public void EquipTrinket(EquipmentItem item) { trinketEquipment = item; calculateCombatStats(); }
public void EquipJewelry(EquipmentItem item) { jewelryEquipment = item; calculateCombatStats(); }
public void EquipHands(EquipmentItem item) { handsEquipment = item; calculateCombatStats(); }
public void EquipHead(EquipmentItem item) { headEquipment = item; calculateCombatStats(); }
public void EquipBody(EquipmentItem item) { bodyEquipment = item; calculateCombatStats(); }
public void EquipItem(EquipmentItem item, Boolean isMark, int partymember) { //body if (item.thisEquipmentSlot == EquipmentItem.EquipmentSlot.Body) { if (isMark == true) { AddEquipmentItemToInventory(theMark.bodyEquipment); theMark.EquipBody(item); } else { AddEquipmentItemToInventory(partyMembers[partymember].bodyEquipment); partyMembers[partymember].EquipBody(item); } } else if (item.thisEquipmentSlot == EquipmentItem.EquipmentSlot.Head) { if (isMark == true) { AddEquipmentItemToInventory(theMark.headEquipment); theMark.EquipHead(item); } else { AddEquipmentItemToInventory(partyMembers[partymember].headEquipment); partyMembers[partymember].EquipHead(item); } } else if (item.thisEquipmentSlot == EquipmentItem.EquipmentSlot.Hands) { if (isMark == true) { AddEquipmentItemToInventory(theMark.handsEquipment); theMark.EquipHands(item); } else { AddEquipmentItemToInventory(partyMembers[partymember].handsEquipment); partyMembers[partymember].EquipHands(item); } } else if (item.thisEquipmentSlot == EquipmentItem.EquipmentSlot.Jewelry) { if (isMark == true) { AddEquipmentItemToInventory(theMark.jewelryEquipment); theMark.EquipJewelry(item); } else { AddEquipmentItemToInventory(partyMembers[partymember].jewelryEquipment); partyMembers[partymember].EquipJewelry(item); } } else if (item.thisEquipmentSlot == EquipmentItem.EquipmentSlot.Trinket) { if (isMark == true) { AddEquipmentItemToInventory(theMark.trinketEquipment); theMark.EquipTrinket(item); } else { AddEquipmentItemToInventory(partyMembers[partymember].trinketEquipment); partyMembers[partymember].EquipTrinket(item); } } }
//EQUIPMENT ITEMS public void AddEquipmentItemToInventory(EquipmentItem item) { item.currentQuantity = 1; partyInventory.Add(item); }