public override void Load() { Config.Load(); Instance = this; string DiscordBuffTeleportation = Language.GetTextValue("Discord Buff Teleportation"); DiscordBuff = RegisterHotKey(DiscordBuffTeleportation, "Q"); SetTranslation(); instance = this; if (!Main.dedServ) { alchemistUI = new ShopChangeUI(); alchemistUI.Activate(); alchemistUserInterface = new UserInterface(); alchemistUserInterface.SetState(alchemistUI); alchemistUIA = new ShopChangeUIA(); alchemistUIA.Activate(); alchemistUserInterfaceA = new UserInterface(); alchemistUserInterfaceA.SetState(alchemistUIA); alchemistUIO = new ShopChangeUIO(); alchemistUIO.Activate(); alchemistUserInterfaceO = new UserInterface(); alchemistUserInterfaceO.SetState(alchemistUIO); alchemistUIM = new ShopChangeUIM(); alchemistUIM.Activate(); alchemistUserInterfaceM = new UserInterface(); alchemistUserInterfaceM.SetState(alchemistUIM); } }
public override void OnWorldLoad() { downedDOGIceQueen = false; downedDOGPumpking = false; downedSandElemental = false; if (!Main.dedServ) { alchemistUI = new ShopChangeUI(); alchemistUI.Activate(); alchemistUserInterface = new UserInterface(); alchemistUserInterface.SetState(alchemistUI); alchemistUIA = new ShopChangeUIA(); alchemistUIA.Activate(); alchemistUserInterfaceA = new UserInterface(); alchemistUserInterfaceA.SetState(alchemistUIA); alchemistUIO = new ShopChangeUIO(); alchemistUIO.Activate(); alchemistUserInterfaceO = new UserInterface(); alchemistUserInterfaceO.SetState(alchemistUIO); alchemistUIM = new ShopChangeUIM(); alchemistUIM.Activate(); alchemistUserInterfaceM = new UserInterface(); alchemistUserInterfaceM.SetState(alchemistUIM); } }