private void ApplyBlessing(GOD blessing) { if (blessing == GOD.ZEUS) { dialog.SetText("Zeus grants you power! +5 Max health"); Stats.temporaryMaxHealth += 5; } else if (blessing == GOD.ARES) { dialog.SetText("Ares grants you strength! +1 Power"); Stats.currentPower += 1; } else if (blessing == GOD.APHRODITE) { dialog.SetText("Aphrodite healed your wounds! +6 Health"); Stats.CurrentHealth = Mathf.Min(Stats.CurrentHealth + 6, Stats.temporaryMaxHealth); } else if (blessing == GOD.DIONYSUS) { dialog.SetText("Dionysus grants you riches! Money (+10) "); Stats.Money += 10; } dialog.Open(); }
private void PickItem() { if (selectedIndex == options.Count - 1) { ExitShop(); return; } int price = options[selectedIndex].price.price; if (Stats.Money < price) { dialog.SetText("Sorry!\nNot enough money"); dialog.Open(); return; } if (selectedIndex == 0) { Stats.permanentMaxHealth += 3; Stats.temporaryMaxHealth = Stats.permanentMaxHealth; Stats.CurrentHealth = Stats.permanentMaxHealth; Stats.Money -= price; dialog.SetText($"Max health increased to {Stats.permanentMaxHealth.ToString()}"); dialog.Open(); } else if (selectedIndex == 1) { Stats.permanentPower += 1; Stats.currentPower = Stats.permanentPower; Stats.Money -= price; dialog.SetText($"Power increased to {Stats.permanentPower.ToString()}"); dialog.Open(); } }