示例#1
0
 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;
         }
     }
 }
示例#2
0
 public void EquipTrinket(EquipmentItem item)
 {
     trinketEquipment = item;
     calculateCombatStats();
 }
示例#3
0
 public void EquipJewelry(EquipmentItem item)
 {
     jewelryEquipment = item;
     calculateCombatStats();
 }
示例#4
0
 public void EquipHands(EquipmentItem item)
 {
     handsEquipment = item;
     calculateCombatStats();
 }
示例#5
0
 public void EquipHead(EquipmentItem item)
 {
     headEquipment = item;
     calculateCombatStats();
 }
示例#6
0
 public void EquipBody(EquipmentItem item)
 {
     bodyEquipment = item;
     calculateCombatStats();
 }
示例#7
0
 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);
         }
     }
 }
示例#8
0
 //EQUIPMENT ITEMS
 public void AddEquipmentItemToInventory(EquipmentItem item)
 {
     item.currentQuantity = 1;
     partyInventory.Add(item);
 }