Files
CalamityModPublic/Systems/World/BestiaryRegistrySystem.cs
T
CongratsIsTrash 0f1f661b84 Proper Lava Slime config work
Now properly removes lava drop via an IL edit instead of adding a separate Lava Slime NPC clone and suppressing vanilla Lava Slime spawns (did not work)
Note that this works by replacing the Remix world check because I honestly have no idea how to directly load the config through IL instructions
2025-09-26 16:38:36 -04:00

23 lines
961 B
C#

using CalamityMod.NPCs.Abyss;
using CalamityMod.NPCs.Astral;
using CalamityMod.NPCs.Crags;
using CalamityMod.NPCs.HiveMind;
using CalamityMod.NPCs.NormalNPCs;
using Terraria.ID;
using Terraria.ModLoader;
using static Terraria.ModLoader.ModContent;
namespace CalamityMod.Systems
{
public class BestiaryRegistrySystem : ModSystem
{
public override void PostSetupContent()
{
// Manually register variants post-initiailization
ContentSamples.NpcBestiaryCreditIdsByNpcNetIds[NPCType<AstralachneaGround>()] = ContentSamples.NpcBestiaryCreditIdsByNpcNetIds[NPCType<AstralachneaWall>()];
ContentSamples.NpcBestiaryCreditIdsByNpcNetIds[NPCType<DevilFishAlt>()] = ContentSamples.NpcBestiaryCreditIdsByNpcNetIds[NPCType<DevilFish>()];
ContentSamples.NpcBestiaryCreditIdsByNpcNetIds[NPCType<ScryllarRage>()] = ContentSamples.NpcBestiaryCreditIdsByNpcNetIds[NPCType<Scryllar>()];
}
}
}