Solaestas / Everglow

GNU General Public License v3.0
27 stars 4 forks source link

Developer Name Secret System #199

Closed Setnour6 closed 1 year ago

Setnour6 commented 1 year ago

Uses player names to check for secrets. Let me know if any of you want me to add/remove/change any listed player names. I can move the player name list code to the configurations instead if you want me to.

EvilPack.cs example:

string localPlayerName = Main.LocalPlayer.name;
      if (localPlayerName is "Cataclysmic Armageddon" || PlayerUtils.GetDevPlayerNames().Contains(localPlayerName, StringComparer.OrdinalIgnoreCase))
      {
       Main.NewText("Cataclysmic Armageddon's Long Lost Older Cousin Calamatious Annihilation the Corrupted Moth " + $"{Language.GetTextValue(Language.GetTextValue("Mods.Everglow.Common.Message.HasAwoken"))}", 175, 75, 255);
      }
      else
      {
       Main.NewText($"{Language.GetTextValue("Mods.Everglow.NPCName.CorruptMoth")} {Language.GetTextValue("Mods.Everglow.Common.Message.HasAwoken")}", 175, 75, 255);
      }