gamma slimes now affected by royal gel
This commit is contained in:
1 parent
ac7e539313
commit
3f4edbe006
3 files changed
+4
-3
No files matched your search
@@ -3349,6 +3349,7 @@ namespace CalamityMod.CalPlayer
|
||||
player.npcTypeNoAggro[ModContent.NPCType<PerennialSlime>()] = true;
|
||||
player.npcTypeNoAggro[ModContent.NPCType<PlaguedJungleSlime>()] = true;
|
||||
player.npcTypeNoAggro[ModContent.NPCType<AstralSlime>()] = true;
|
||||
player.npcTypeNoAggro[ModContent.NPCType<GammaSlime>()] = true;
|
||||
// LATER -- When Wulfrum Slimes start being definitely robots, remove this immunity.
|
||||
player.npcTypeNoAggro[ModContent.NPCType<WulfrumSlime>()] = true;
|
||||
}
|
||||
|
||||
@@ -76,7 +76,7 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
Lighting.AddLight((int)((npc.position.X + (float)(npc.width / 2)) / 16f), (int)((npc.position.Y + (float)(npc.height / 2)) / 16f), 0.6f, 0.8f, 0.6f);
|
||||
npc.TargetClosest(false);
|
||||
Player player = Main.player[npc.target];
|
||||
if (npc.velocity.Y == 0f && npc.ai[3] <= 0f)
|
||||
if (npc.velocity.Y == 0f && npc.ai[3] <= 0f && !player.npcTypeNoAggro[npc.type])
|
||||
{
|
||||
npc.velocity.X *= 0.8f;
|
||||
if (npc.ai[0]++ >= 30f)
|
||||
@@ -164,7 +164,7 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
if (Math.Abs(player.Center.X - npc.Center.X) < 250f &&
|
||||
player.Center.X - npc.Center.X < 0f &&
|
||||
npc.ai[3] == 0f &&
|
||||
Main.rand.NextBool(110))
|
||||
Main.rand.NextBool(110) && !player.npcTypeNoAggro[npc.type])
|
||||
{
|
||||
npc.ai[3] = 600f;
|
||||
npc.netUpdate = true;
|
||||
|
||||
@@ -53,7 +53,7 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
{
|
||||
spikeTimer -= 1f;
|
||||
}
|
||||
if (!npc.wet && !Main.player[npc.target].Calamity().royalGel)
|
||||
if (!npc.wet && !Main.player[npc.target].npcTypeNoAggro[npc.type])
|
||||
{
|
||||
Vector2 vector3 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f);
|
||||
float num14 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - vector3.X;
|
||||
|
||||
Reference in new issue
Block a user