2 - Adult Eidolon Wyrm Boss Checklist support. 3 - Rebalanced Adult Eidolon Wyrm stats. 4 - Adult Eidolon Wyrm has a kill time of 5 minutes. 5 - Adult Eidolon Wyrm music. 6 - Adult Eidolon Wrym circular head hitbox. 7 - Adult Eidolon Wyrm can no longer spawn naturally. 8 - Fixed some issues with world data saving.
45 lines
1.1 KiB
C#
45 lines
1.1 KiB
C#
using Terraria;
|
|
using Terraria.Graphics.Shaders;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.NPCs.Abyss
|
|
{
|
|
public class AEWScreenShaderData : ScreenShaderData
|
|
{
|
|
private int AEWIndex;
|
|
|
|
public AEWScreenShaderData(string passName)
|
|
: base(passName)
|
|
{
|
|
}
|
|
|
|
private void UpdateAEWIndex()
|
|
{
|
|
int AEWType = ModContent.NPCType<EidolonWyrmHeadHuge>();
|
|
if (AEWIndex >= 0 && Main.npc[AEWIndex].active && Main.npc[AEWIndex].type == AEWType)
|
|
{
|
|
return;
|
|
}
|
|
AEWIndex = -1;
|
|
for (int i = 0; i < Main.npc.Length; i++)
|
|
{
|
|
if (Main.npc[i].active && Main.npc[i].type == AEWType)
|
|
{
|
|
AEWIndex = i;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
public override void Apply()
|
|
{
|
|
UpdateAEWIndex();
|
|
if (AEWIndex != -1)
|
|
{
|
|
UseTargetPosition(Main.npc[AEWIndex].Center);
|
|
}
|
|
base.Apply();
|
|
}
|
|
}
|
|
}
|