added font, updated ui, fixed some code

This commit is contained in:
TAASONI3
2023-12-13 12:49:38 +01:00
parent 10ad860d3e
commit 17a0a22dd4
65 changed files with 1697 additions and 5019 deletions

View File

@@ -12,7 +12,6 @@ namespace Assets.Scripts
{
public GameObject head;
public GameObject chest;
public GameObject shoulders;
public GameObject feet;
public GameObject ring;
public GameObject amulet;
@@ -135,7 +134,7 @@ namespace Assets.Scripts
{
GameObject slot = head;
Item item;
for (int i = 0; i < 8; i++)
for (int i = 0; i < 7; i++)
{
switch (i)
{
@@ -155,12 +154,9 @@ namespace Assets.Scripts
slot = feet;
break;
case 5:
slot = shoulders;
break;
case 6:
slot = chest;
break;
case 7:
case 6:
slot = ring;
break;
}
@@ -196,7 +192,7 @@ namespace Assets.Scripts
{
createStatBoost();
GameObject equip = head;
for (int i = 0; i < 8; i++)
for (int i = 0; i < 7; i++)
{
switch (i)
{
@@ -216,12 +212,9 @@ namespace Assets.Scripts
equip = feet;
break;
case 5:
equip = shoulders;
break;
case 6:
equip = chest;
break;
case 7:
case 6:
equip = ring;
break;
}
@@ -240,7 +233,7 @@ namespace Assets.Scripts
GameObject equip = head;
string slotname = "";
result = result + "\"equipment\": {\r\n";
for (int i = 0; i < 8; i++)
for (int i = 0; i < 7; i++)
{
switch (i)
{
@@ -265,14 +258,10 @@ namespace Assets.Scripts
slotname = "feet";
break;
case 5:
equip = shoulders;
slotname = "shoulders";
break;
case 6:
equip = chest;
slotname = "chest";
break;
case 7:
case 6:
equip = ring;
slotname = "ring";
break;
@@ -337,7 +326,7 @@ namespace Assets.Scripts
{
GameObject equip = head;
string slotname = "";
for (int i = 0; i < 8; i++)
for (int i = 0; i < 7; i++)
{
switch (i)
{
@@ -362,14 +351,10 @@ namespace Assets.Scripts
slotname = "feet";
break;
case 5:
equip = shoulders;
slotname = "shoulders";
break;
case 6:
equip = chest;
slotname = "chest";
break;
case 7:
case 6:
equip = ring;
slotname = "ring";
break;
@@ -407,9 +392,6 @@ namespace Assets.Scripts
case ItemPlace.HELMET:
equipSlot = head.GetComponent<InventorySlot>();
break;
case ItemPlace.SHOULDER:
equipSlot = shoulders.GetComponent<InventorySlot>();
break;
case ItemPlace.BOOTS:
equipSlot = feet.GetComponent<InventorySlot>();
break;