48 lines
1.3 KiB
C#
48 lines
1.3 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Assets.Scripts
|
|
{
|
|
class EasterEggHandler
|
|
{
|
|
public static void applyEasterEgg(Player player)
|
|
{
|
|
applyNameEasterEgg(player);
|
|
}
|
|
|
|
private static void applyNameEasterEgg(Player player)
|
|
{
|
|
//maxHealth, maxSecondary, strength, dexterity, intelligence
|
|
int[] result = new int[5];
|
|
switch (player.getPlayerName().ToLower())
|
|
{
|
|
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;
|
|
}
|
|
player.setStats(result);
|
|
}
|
|
}
|
|
}
|