fixed level up giving inf points, fixed tooltip
This commit is contained in:
parent
b07135d8f3
commit
989732ff97
@ -63,15 +63,6 @@ namespace Assets.Scripts
|
||||
inventory.itemDisplay.transform.Find("itemImage").GetComponent<RawImage>().color = item.rarityColor;
|
||||
inventory.itemDisplay.transform.Find("itemName").GetComponent<Text>().text = TextHandler.translate(item.getName());
|
||||
inventory.itemDisplay.transform.Find("itemStats").GetComponent<Text>().text = item.getInformation();
|
||||
int changeY = 0;
|
||||
if (inventory.itemDisplay.transform.localScale == new Vector3(0,0,0))
|
||||
{
|
||||
if (Input.mousePosition.y < Screen.height / 2)
|
||||
{
|
||||
changeY = -150;
|
||||
}
|
||||
inventory.itemDisplay.transform.position = new Vector3(Input.mousePosition.x - 175, Input.mousePosition.y - changeY, 0);
|
||||
}
|
||||
inventory.itemDisplay.transform.localScale = new Vector3(1, 1, 1);
|
||||
}
|
||||
}
|
||||
@ -85,15 +76,6 @@ namespace Assets.Scripts
|
||||
inventory.itemDisplay.transform.Find("itemImage").GetComponent<RawImage>().color = item.rarityColor;
|
||||
inventory.itemDisplay.transform.Find("itemName").GetComponent<Text>().text = TextHandler.translate(item.getName());
|
||||
inventory.itemDisplay.transform.Find("itemStats").GetComponent<Text>().text = item.getInformation();
|
||||
int changeY = 0;
|
||||
if (inventory.itemDisplay.transform.localScale == new Vector3(0,0,0))
|
||||
{
|
||||
if (Input.mousePosition.y < Screen.height / 2)
|
||||
{
|
||||
changeY = -150;
|
||||
}
|
||||
inventory.itemDisplay.transform.position = new Vector3(current.transform.position.x - 250, current.transform.position.y + changeY, 0);
|
||||
}
|
||||
inventory.itemDisplay.transform.localScale = new Vector3(1, 1, 1);
|
||||
}
|
||||
}
|
||||
|
||||
@ -328,6 +328,7 @@ namespace Assets.Scripts.Player
|
||||
{
|
||||
result = true;
|
||||
stats[identifier].changeAmount(amount);
|
||||
stats["Points"].changeAmount(-1);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user