Added a Mod Call to register custom draedon logs

This commit is contained in:
GinYuH committed 2024-01-21 18:37:35 -08:00
1 parent e18f3d7b8c
commit 74afe60577
3 files changed
+13 -3

No files matched your search

+8
View File
@@ -1995,6 +1995,14 @@ namespace CalamityMod
CooldownRegistry.RegisterModCooldowns(args[1] as Mod);
return null;
case "RegisterModPopupGUIs":
case "RegisterModDraedonLogs":
if (args.Length != 2 || !(args[1] is Mod))
return new ArgumentNullException("ERROR: Must specify a Mod instance to register popup GUIs from.");
PopupGUIManager.LoadGUIs(args[1] as Mod);
return null;
case "GetSummonerNerfDisabledByItem":
if (args.Length != 2 || !isValidItemArg(args[1]))
return new ArgumentException("ERROR: Must specify a valid item to check status of.");