diff --git a/NPCs/AstrumDeus/AstrumDeusBodyAltSpectral.png b/NPCs/AstrumDeus/AstrumDeusBodyAltSpectral.png new file mode 100644 index 0000000000..284653890c Binary files /dev/null and b/NPCs/AstrumDeus/AstrumDeusBodyAltSpectral.png differ diff --git a/NPCs/AstrumDeus/AstrumDeusBodySpectral.cs b/NPCs/AstrumDeus/AstrumDeusBodySpectral.cs index 68957b5abe..5c55f3b978 100644 --- a/NPCs/AstrumDeus/AstrumDeusBodySpectral.cs +++ b/NPCs/AstrumDeus/AstrumDeusBodySpectral.cs @@ -137,6 +137,16 @@ namespace CalamityMod.NPCs.AstrumDeus } } } + + // exactly like minion worms: every other segment uses alternate texture + // localAI[3] is set to 1 for every other segment when they are spawned by the head + public override bool PreDraw(SpriteBatch spriteBatch, Color drawColor) + { + Mod mod = ModLoader.GetMod("CalamityMod"); + Texture2D texture = mod.GetTexture("NPCs/AstrumDeus/AstrumDeusBodyAltSpectral"); + CalamityMod.DrawTexture(spriteBatch, (npc.localAI[3] == 1f ? texture : Main.npcTexture[npc.type]), 0, npc, drawColor); + return false; + } public override Color? GetAlpha(Color drawColor) { diff --git a/NPCs/AstrumDeus/AstrumDeusHeadSpectral.cs b/NPCs/AstrumDeus/AstrumDeusHeadSpectral.cs index aed19a4eb1..73747aa07f 100644 --- a/NPCs/AstrumDeus/AstrumDeusHeadSpectral.cs +++ b/NPCs/AstrumDeus/AstrumDeusHeadSpectral.cs @@ -125,6 +125,11 @@ namespace CalamityMod.NPCs.AstrumDeus { lol = NPC.NewNPC((int)npc.position.X + (npc.width / 2), (int)npc.position.Y + (npc.height / 2), mod.NPCType("AstrumDeusTailSpectral"), npc.whoAmI); } + + // exactly like minion worms: every other segment uses alternate texture + if (num36 % 2 == 0) + Main.npc[lol].localAI[3] = 1f; + Main.npc[lol].realLife = npc.whoAmI; Main.npc[lol].ai[2] = (float)npc.whoAmI; Main.npc[lol].ai[1] = (float)Previous;