logs, particles, and cooldowns now automatically load
This commit is contained in:
1 parent
0f7622a970
commit
4a144285bf
6 files changed
+51
-50
No files matched your search
@@ -1981,20 +1981,6 @@ namespace CalamityMod
|
||||
BossRushEvent.BossDeathEffects[npcType5] = deathEffect;
|
||||
return null;
|
||||
|
||||
case "LoadParticleInstances":
|
||||
if (args.Length != 2 || !(args[1] is Mod))
|
||||
return new ArgumentNullException("ERROR: Must specify a Mod instance to load particles from.");
|
||||
|
||||
GeneralParticleHandler.LoadModParticleInstances(args[1] as Mod);
|
||||
return null;
|
||||
|
||||
case "RegisterModCooldowns":
|
||||
if (args.Length != 2 || !(args[1] is Mod))
|
||||
return new ArgumentNullException("ERROR: Must specify a Mod instance to register cooldowns from.");
|
||||
|
||||
CooldownRegistry.RegisterModCooldowns(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.");
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using CalamityMod.Buffs.Summon;
|
||||
using CalamityMod.Cooldowns;
|
||||
using CalamityMod.Events;
|
||||
using CalamityMod.Items;
|
||||
using CalamityMod.Items.Armor.Vanity;
|
||||
@@ -55,9 +56,11 @@ using CalamityMod.NPCs.SunkenSea;
|
||||
using CalamityMod.NPCs.SupremeCalamitas;
|
||||
using CalamityMod.NPCs.TownNPCs;
|
||||
using CalamityMod.NPCs.Yharon;
|
||||
using CalamityMod.Particles;
|
||||
using CalamityMod.Projectiles.DraedonsArsenal;
|
||||
using CalamityMod.Projectiles.Summon;
|
||||
using CalamityMod.Projectiles.Summon.Umbrella;
|
||||
using CalamityMod.UI;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
@@ -188,6 +191,13 @@ namespace CalamityMod
|
||||
FargosSupport();
|
||||
DialogueTweakSupport();
|
||||
SummonersAssociationSupport();
|
||||
// done here to assure that all other mods have already loaded so that Calamity can automatically grab any of these types they may have
|
||||
if (!Main.dedServ)
|
||||
{
|
||||
GeneralParticleHandler.LoadModParticleInstances();
|
||||
CooldownRegistry.RegisterModCooldowns();
|
||||
PopupGUIManager.LoadGUIs();
|
||||
}
|
||||
}
|
||||
|
||||
#region WikiThis
|
||||
|
||||
Reference in new issue
Block a user