Slime God despawn bug fix!!!!!!!!
This commit is contained in:
1 parent
0596c88d34
commit
853930977c
3 files changed
+8
-1
No files matched your search
@@ -201,11 +201,14 @@ namespace CalamityMod.NPCs.SlimeGod
|
||||
// Make sure Opacity is set to 0.8f if it's below that when the vanish phase starts
|
||||
if (NPC.ai[3] == 0f)
|
||||
{
|
||||
if (!NPC.AnyNPCs(ModContent.NPCType<EbonianPaladin>()) && !NPC.AnyNPCs(ModContent.NPCType<CrimulanPaladin>()))
|
||||
if (!NPC.AnyNPCs(ModContent.NPCType<EbonianPaladin>()) && !NPC.AnyNPCs(ModContent.NPCType<CrimulanPaladin>()) &&
|
||||
!NPC.AnyNPCs(ModContent.NPCType<SplitEbonianPaladin>()) && !NPC.AnyNPCs(ModContent.NPCType<SplitCrimulanPaladin>()))
|
||||
{
|
||||
NPC.ai[3] = 1f;
|
||||
NPC.Opacity = 0.8f;
|
||||
}
|
||||
else
|
||||
NPC.Opacity = 0.01f; // This line ensures the core doesn't immediately explode into loot if it's currently possessing a paladin
|
||||
}
|
||||
|
||||
// Emit dust
|
||||
|
||||
@@ -712,6 +712,8 @@ namespace CalamityMod.NPCs.SlimeGod
|
||||
}
|
||||
}
|
||||
|
||||
public override bool CheckActive() => false;
|
||||
|
||||
public override Color? GetAlpha(Color drawColor)
|
||||
{
|
||||
Color lightColor = new Color(Main.DiscoR, 100, 150, NPC.alpha);
|
||||
|
||||
@@ -753,6 +753,8 @@ namespace CalamityMod.NPCs.SlimeGod
|
||||
}
|
||||
}
|
||||
|
||||
public override bool CheckActive() => false;
|
||||
|
||||
public override Color? GetAlpha(Color drawColor)
|
||||
{
|
||||
Color lightColor = new Color(200, 150, Main.DiscoB, NPC.alpha);
|
||||
|
||||
Reference in new issue
Block a user