Added item pictures, removed gloves, changed bags, v1.3.0

This commit is contained in:
Nicola Sovic
2022-07-02 17:32:17 +02:00
parent 801983504d
commit daae9b7469
46 changed files with 927 additions and 130 deletions

View File

@@ -14,7 +14,6 @@ namespace Assets.Scripts
public GameObject feet;
public GameObject ring;
public GameObject amulet;
public GameObject hands;
public GameObject leftHand;
public GameObject rightHand;
@@ -97,7 +96,7 @@ namespace Assets.Scripts
private void checkEquipColors()
{
GameObject slot = head;
for (int i = 0; i < 9; i++)
for (int i = 0; i < 8; i++)
{
switch (i)
{
@@ -111,21 +110,18 @@ namespace Assets.Scripts
slot = leftHand;
break;
case 3:
slot = hands;
break;
case 4:
slot = amulet;
break;
case 5:
case 4:
slot = feet;
break;
case 6:
case 5:
slot = shoulders;
break;
case 7:
case 6:
slot = chest;
break;
case 8:
case 7:
slot = ring;
break;
}
@@ -170,8 +166,6 @@ namespace Assets.Scripts
return ring.GetComponent<InventorySlot>().getEquip();
case ItemPlace.ARMOR:
return chest.GetComponent<InventorySlot>().getEquip();
case ItemPlace.GLOVES:
return hands.GetComponent<InventorySlot>().getEquip();
default:
return null;
}

View File

@@ -30,7 +30,7 @@ namespace Assets.Scripts
numberOfAttributes = 0;
}
calculateAttributes(luck, numberOfAttributes);
place = (ItemPlace)rand.Next(9);
place = (ItemPlace)rand.Next(8);
if (itemName != null)
{
itemName = rarity.ToString() + " " + place.ToString() + " of " + itemName;

View File

@@ -12,7 +12,6 @@ namespace Assets.Scripts
SHOULDER,
WEAPON,
SHIELD,
GLOVES,
RING,
AMULET,
ARMOR,