1 - Providence and the Guardians are no longer immune to damage outside of hallow/hell if Malice Mode is active.
This commit is contained in:
1 parent
7e0757d849
commit
01a79a2042
7 files changed
+42
-12
No files matched your search
@@ -164,7 +164,7 @@ namespace CalamityMod.NPCs.ProfanedGuardians
|
||||
npc.Calamity().CurrentlyEnraged = true;
|
||||
|
||||
// Take damage or not
|
||||
npc.dontTakeDamage = immuneTimer <= 0;
|
||||
npc.dontTakeDamage = immuneTimer <= 0 && !malice;
|
||||
|
||||
bool flag100 = false;
|
||||
for (int num569 = 0; num569 < Main.maxNPCs; num569++)
|
||||
|
||||
@@ -101,7 +101,7 @@ namespace CalamityMod.NPCs.ProfanedGuardians
|
||||
immuneTimer = 300;
|
||||
|
||||
// Take damage or not
|
||||
npc.dontTakeDamage = immuneTimer <= 0;
|
||||
npc.dontTakeDamage = immuneTimer <= 0 && !malice;
|
||||
|
||||
Vector2 vectorCenter = npc.Center;
|
||||
|
||||
|
||||
@@ -101,7 +101,7 @@ namespace CalamityMod.NPCs.ProfanedGuardians
|
||||
immuneTimer = 300;
|
||||
|
||||
// Take damage or not
|
||||
npc.dontTakeDamage = immuneTimer <= 0;
|
||||
npc.dontTakeDamage = immuneTimer <= 0 && !malice;
|
||||
|
||||
Vector2 vectorCenter = npc.Center;
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
using CalamityMod.Buffs.DamageOverTime;
|
||||
using CalamityMod.Buffs.StatDebuffs;
|
||||
using CalamityMod.Dusts;
|
||||
using CalamityMod.Events;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using System;
|
||||
using System.IO;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -45,7 +45,17 @@ namespace CalamityMod.NPCs.Providence
|
||||
npc.DeathSound = SoundID.NPCDeath55;
|
||||
}
|
||||
|
||||
public override void FindFrame(int frameHeight)
|
||||
public override void SendExtraAI(BinaryWriter writer)
|
||||
{
|
||||
writer.Write(npc.dontTakeDamage);
|
||||
}
|
||||
|
||||
public override void ReceiveExtraAI(BinaryReader reader)
|
||||
{
|
||||
npc.dontTakeDamage = reader.ReadBoolean();
|
||||
}
|
||||
|
||||
public override void FindFrame(int frameHeight)
|
||||
{
|
||||
npc.frameCounter += 0.15f;
|
||||
npc.frameCounter %= Main.npcFrameCount[npc.type];
|
||||
|
||||
@@ -1,11 +1,9 @@
|
||||
using CalamityMod.Buffs.DamageOverTime;
|
||||
using CalamityMod.Buffs.StatDebuffs;
|
||||
using CalamityMod.Dusts;
|
||||
using CalamityMod.Events;
|
||||
using CalamityMod.World;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using System;
|
||||
using System.IO;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -45,7 +43,17 @@ namespace CalamityMod.NPCs.Providence
|
||||
npc.DeathSound = SoundID.NPCDeath55;
|
||||
}
|
||||
|
||||
public override void FindFrame(int frameHeight)
|
||||
public override void SendExtraAI(BinaryWriter writer)
|
||||
{
|
||||
writer.Write(npc.dontTakeDamage);
|
||||
}
|
||||
|
||||
public override void ReceiveExtraAI(BinaryReader reader)
|
||||
{
|
||||
npc.dontTakeDamage = reader.ReadBoolean();
|
||||
}
|
||||
|
||||
public override void FindFrame(int frameHeight)
|
||||
{
|
||||
npc.frameCounter += 0.15f;
|
||||
npc.frameCounter %= Main.npcFrameCount[npc.type];
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
using CalamityMod.Buffs.DamageOverTime;
|
||||
using CalamityMod.Buffs.StatDebuffs;
|
||||
using CalamityMod.Dusts;
|
||||
using CalamityMod.Events;
|
||||
using CalamityMod.Projectiles.Boss;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using System;
|
||||
using System.IO;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -48,7 +48,19 @@ namespace CalamityMod.NPCs.Providence
|
||||
npc.DeathSound = SoundID.NPCDeath55;
|
||||
}
|
||||
|
||||
public override void FindFrame(int frameHeight)
|
||||
public override void SendExtraAI(BinaryWriter writer)
|
||||
{
|
||||
writer.Write(dustTimer);
|
||||
writer.Write(npc.dontTakeDamage);
|
||||
}
|
||||
|
||||
public override void ReceiveExtraAI(BinaryReader reader)
|
||||
{
|
||||
dustTimer = reader.ReadInt32();
|
||||
npc.dontTakeDamage = reader.ReadBoolean();
|
||||
}
|
||||
|
||||
public override void FindFrame(int frameHeight)
|
||||
{
|
||||
npc.frameCounter += 0.15f;
|
||||
npc.frameCounter %= Main.npcFrameCount[npc.type];
|
||||
|
||||
@@ -348,7 +348,7 @@ namespace CalamityMod.NPCs.Providence
|
||||
immuneTimer = 300;
|
||||
|
||||
// Take damage or not
|
||||
npc.dontTakeDamage = immuneTimer <= 0;
|
||||
npc.dontTakeDamage = immuneTimer <= 0 && !malice;
|
||||
|
||||
// Heal
|
||||
if (healerAlive)
|
||||
|
||||
Reference in new issue
Block a user