cleaned project, added death stats

This commit is contained in:
TAASONI3
2023-12-29 16:39:53 +01:00
parent 02a20443c2
commit 661aa6704b
132 changed files with 655 additions and 962 deletions

View File

@@ -51,15 +51,26 @@ namespace Assets.Scripts.Player
// Update is called once per frame
void Update()
{
if (player.getStat("Killcount").getAmount() != -1)
if (player.getStat("Killcount").getAmount() == -1)
{
getRotation();
regeneratePlayer();
uihandler.adjustInformation(this);
if (!finishedGame)
{
gameFinished();
}
return;
}
if(uihandler.state == UIState.DEATH){
return;
}
getRotation();
regeneratePlayer();
uihandler.adjustInformation(this);
if (!finishedGame)
{
gameFinished();
}
if (player.isDead())
{
SteamWorksHandler.getStandardAchievement("DeathAchievement");
uihandler.showDeathScreen();
}
}
@@ -77,7 +88,7 @@ namespace Assets.Scripts.Player
{
now = DateTime.Now;
player.regainSecondary(inventory.getEquipmentBonus()["MPR"], inventory.getEquipmentBonus()["MP"]);
player.healPlayer(4 - difficulty * 2, inventory.getEquipmentBonus()["HP"]);
player.healPlayer(/*4 - difficulty * 2*/-20, inventory.getEquipmentBonus()["HP"]);
}
}
}