Added items, inventory, basic inv mechanics and art, added item comparison, v1.3.0

This commit is contained in:
Nicola Sovic
2022-06-30 22:31:41 +02:00
parent cbedc285f1
commit 801983504d
44 changed files with 5538 additions and 18 deletions

View File

@@ -61,7 +61,7 @@ public class Fight : MonoBehaviour
playerDamage = player.GetComponent<Player>().castSkill(skillnumber);
}
player.GetComponent<Player>().reduceCooldown(skillnumber);
player.GetComponent<Player>().regainSecondary(2);
player.GetComponent<Player>().regainSecondary();
bool isDead = enemy.GetComponent<Enemy>().takeDamage(playerDamage);
if (isDead)
{
@@ -73,6 +73,7 @@ public class Fight : MonoBehaviour
tile.GetComponent<Tile>().enemyKilled(enemy);
player.GetComponent<Player>().enemyKilled();
player.GetComponent<Player>().gainExperience(enemy.GetComponent<Enemy>().getExperience());
GameObject.Find("Inventory").GetComponent<Inventory>().addItem(enemy.GetComponent<Enemy>().getItem());
}
else
{