fixed chest, improved ui, improved difficulty

This commit is contained in:
TAASONI3
2023-12-23 21:19:05 +01:00
parent 989732ff97
commit bf705a52a8
39 changed files with 6351 additions and 5676 deletions

View File

@@ -11,61 +11,29 @@ namespace Assets.Scripts
{
class EasterEggHandler
{
public static void applyEasterEgg(PlayerObject player)
public static void applyEasterEgg(string playername)
{
if (player.getPlayerName().ToLower().Length > 0)
if (playername.ToLower().Length > 0)
{
applyNameEasterEgg(player);
applyNameEasterEgg(playername.ToLower());
}
}
private static void applyNameEasterEgg(PlayerObject player)
private static void applyNameEasterEgg(string playername)
{
//maxHealth, maxSecondary, strength, dexterity, intelligence
/*int[] result = new int[5];
int[] stats = player.getStats();
switch (player.getPlayerName().ToLower())
//TODO: Create achievements fitting of their contribution... no game changing things, except godmode
switch (playername)
{
case "threetimes8":
result[0] = 240;
result[1] = 240;
result[2] = 24;
result[3] = 24;
result[4] = 24;
break;
case "finnchen123":
result[0] = 1230;
result[1] = 1230;
result[2] = 123;
result[3] = 123;
result[4] = 123;
break;
case "thefluffeypanda":
result[0] = 470;
result[1] = 470;
result[2] = 47;
result[3] = 47;
result[4] = 47;
break;
case "nicola":
result[0] = stats[1];
result[1] = stats[3];
result[2] = stats[4];
result[3] = stats[5];
result[4] = stats[6];
SteamWorksHandler.getGodModeAchievement();
break;
default:
result[0] = stats[1];
result[1] = stats[3];
result[2] = stats[4];
result[3] = stats[5];
result[4] = stats[6];
break;
}
player.setStats(result);*/
//TODO FIX whole Easteregg mechanic to go with the new player
}
public static bool isGodMode(PlayerObject player)