Eradication of npc.canGhostHeal = false;

This commit is contained in:
mountaindrew10 committed 2024-03-18 17:00:25 -05:00
1 parent 7cd3a6492c
commit 3cccfbd746
73 files changed
+13 -145

No files matched your search

+10 -35
View File
@@ -1127,31 +1127,6 @@ namespace CalamityMod.CalPlayer
{
CalamityGlobalProjectile modProj = proj.Calamity();
// Spectre Damage set and Nebula set work on enemies which are "immune to lifesteal"
if (!target.canGhostHeal)
{
if (Player.ghostHurt)
proj.ghostHurt(damage, target.Center, target);
if (Player.setNebula && Player.nebulaCD == 0 && Main.rand.NextBool(3))
{
Player.nebulaCD = 30;
int boosterType = Utils.SelectRandom(Main.rand, new int[]
{
ItemID.NebulaPickup1,
ItemID.NebulaPickup2,
ItemID.NebulaPickup3
});
var source = Player.GetSource_Misc("1");
int nebulaBooster = Item.NewItem(source, target.Center, target.Size, boosterType, 1, false, 0, false, false);
Main.item[nebulaBooster].velocity.Y = Main.rand.Next(-20, 1) * 0.2f;
Main.item[nebulaBooster].velocity.X = Main.rand.Next(10, 31) * 0.2f * proj.direction;
if (Main.netMode == NetmodeID.MultiplayerClient)
NetMessage.SendData(MessageID.SyncItem, -1, -1, null, nebulaBooster, 0f, 0f, 0f, 0, 0, 0);
}
}
if (bloodflareSet && !target.IsAnEnemy(false) && !Player.moonLeech)
{
if ((target.life < target.lifeMax * 0.5) && bloodflareHeartTimer <= 0)
@@ -1205,19 +1180,19 @@ namespace CalamityMod.CalPlayer
{
int heal = (int)Math.Round(damage * 0.011);
if (CalamityGlobalProjectile.CanSpawnLifeStealProjectile(1f, heal))
CalamityGlobalProjectile.SpawnLifeStealProjectile(proj, Player, heal, ProjectileID.VampireHeal, 1200f, 6f);
CalamityGlobalProjectile.SpawnLifeStealProjectile(target, proj, Player, heal, ProjectileID.VampireHeal, 1200f, 6f);
}
if (bloodyGlove && proj.CountsAsClass<RogueDamageClass>() && modProj.stealthStrike)
CalamityGlobalProjectile.SpawnLifeStealProjectile(proj, Player, 2, ProjectileID.VampireHeal, 1200f, 10f);
CalamityGlobalProjectile.SpawnLifeStealProjectile(target, proj, Player, 2, ProjectileID.VampireHeal, 1200f, 10f);
if (target.IsAnEnemy(false))
{
if (bloodflareThrowing && proj.CountsAsClass<ThrowingDamageClass>() && crit)
CalamityGlobalProjectile.SpawnLifeStealProjectile(proj, Player, 2, ProjectileID.VampireHeal, 1200f, 3f);
CalamityGlobalProjectile.SpawnLifeStealProjectile(target, proj, Player, 2, ProjectileID.VampireHeal, 1200f, 3f);
if (bloodflareMelee && proj.IsTrueMelee())
CalamityGlobalProjectile.SpawnLifeStealProjectile(proj, Player, 2, ProjectileID.VampireHeal, 1200f, 3f);
CalamityGlobalProjectile.SpawnLifeStealProjectile(target, proj, Player, 2, ProjectileID.VampireHeal, 1200f, 3f);
}
if (proj.CountsAsClass<MagicDamageClass>() && Player.ActiveItem().CountsAsClass<MagicDamageClass>())
@@ -1228,7 +1203,7 @@ namespace CalamityMod.CalPlayer
healMult -= proj.numHits * 0.05f;
float heal = damage * healMult * (Player.statMana / (float)Player.statManaMax2);
if (CalamityGlobalProjectile.CanSpawnLifeStealProjectile(healMult, heal))
CalamityGlobalProjectile.SpawnLifeStealProjectile(proj, Player, heal, ProjectileType<ManaPolarizerHealOrb>(), 1200f, 4f);
CalamityGlobalProjectile.SpawnLifeStealProjectile(target, proj, Player, heal, ProjectileType<ManaPolarizerHealOrb>(), 1200f, 4f);
}
}
@@ -1238,7 +1213,7 @@ namespace CalamityMod.CalPlayer
healMult -= proj.numHits * 0.015f;
float heal = damage * healMult;
if (CalamityGlobalProjectile.CanSpawnLifeStealProjectile(healMult, heal))
CalamityGlobalProjectile.SpawnLifeStealProjectile(proj, Player, heal, ProjectileType<SilvaOrb>(), 1200f, 2f);
CalamityGlobalProjectile.SpawnLifeStealProjectile(target, proj, Player, heal, ProjectileType<SilvaOrb>(), 1200f, 2f);
}
else if (proj.CountsAsClass<MagicDamageClass>() && Player.ActiveItem().CountsAsClass<MagicDamageClass>())
{
@@ -1248,7 +1223,7 @@ namespace CalamityMod.CalPlayer
healMult -= proj.numHits * 0.05f;
float heal = damage * healMult;
if (CalamityGlobalProjectile.CanSpawnLifeStealProjectile(healMult, heal))
CalamityGlobalProjectile.SpawnLifeStealProjectile(proj, Player, heal, ProjectileType<ReaverHealOrb>(), 1200f, 3f);
CalamityGlobalProjectile.SpawnLifeStealProjectile(target, proj, Player, heal, ProjectileType<ReaverHealOrb>(), 1200f, 3f);
}
else if (ataxiaMage)
{
@@ -1256,7 +1231,7 @@ namespace CalamityMod.CalPlayer
healMult -= proj.numHits * 0.05f;
float heal = damage * healMult;
if (CalamityGlobalProjectile.CanSpawnLifeStealProjectile(healMult, heal))
CalamityGlobalProjectile.SpawnLifeStealProjectile(proj, Player, heal, ProjectileType<HydrothermicHealOrb>(), 1200f, 3f);
CalamityGlobalProjectile.SpawnLifeStealProjectile(target, proj, Player, heal, ProjectileType<HydrothermicHealOrb>(), 1200f, 3f);
}
}
@@ -1266,7 +1241,7 @@ namespace CalamityMod.CalPlayer
healMult -= proj.numHits * 0.05f;
float heal = damage * healMult;
if (CalamityGlobalProjectile.CanSpawnLifeStealProjectile(healMult, heal))
CalamityGlobalProjectile.SpawnLifeStealProjectile(proj, Player, heal, ProjectileType<ReaverHealOrb>(), 1200f, 3f);
CalamityGlobalProjectile.SpawnLifeStealProjectile(target, proj, Player, heal, ProjectileType<ReaverHealOrb>(), 1200f, 3f);
}
if (proj.CountsAsClass<ThrowingDamageClass>())
@@ -1277,7 +1252,7 @@ namespace CalamityMod.CalPlayer
healMult -= proj.numHits * 0.015f;
float heal = damage * healMult;
if (CalamityGlobalProjectile.CanSpawnLifeStealProjectile(healMult, heal))
CalamityGlobalProjectile.SpawnLifeStealProjectile(proj, Player, heal, ProjectileType<EmpyreanHealOrb>(), 1200f, 3f);
CalamityGlobalProjectile.SpawnLifeStealProjectile(target, proj, Player, heal, ProjectileType<EmpyreanHealOrb>(), 1200f, 3f);
}
}
}
-32
View File
@@ -101,7 +101,6 @@ namespace CalamityMod
public static List<int> revengeanceProjectileBuffList25Percent;
public static List<int> revengeanceProjectileBuffList20Percent;
public static List<int> revengeanceProjectileBuffList15Percent;
public static List<int> revengeanceLifeStealExceptionList;
public static List<int> noRageWormSegmentList;
public static List<int> needsDebuffIconDisplayList;
public static List<int> scopedWeaponList;
@@ -1510,36 +1509,6 @@ namespace CalamityMod
ProjectileType<PearlRain>()
};
revengeanceLifeStealExceptionList = new List<int>()
{
NPCID.Probe,
NPCID.CultistDragonHead,
NPCID.CultistDragonBody1,
NPCID.CultistDragonBody2,
NPCID.CultistDragonBody3,
NPCID.CultistDragonBody4,
NPCID.CultistDragonTail,
NPCID.AncientCultistSquidhead,
NPCID.AncientLight,
NPCID.Sharkron,
NPCID.Sharkron2,
NPCID.PlanterasTentacle,
NPCType<PlanterasFreeTentacle>(),
NPCID.Spore,
NPCID.TheHungryII,
NPCID.LeechHead,
NPCID.LeechBody,
NPCID.LeechTail,
NPCID.QueenSlimeMinionBlue,
NPCID.QueenSlimeMinionPink,
NPCID.QueenSlimeMinionPurple,
NPCID.TheDestroyerBody,
NPCID.TheDestroyerTail,
NPCID.EaterofWorldsBody,
NPCID.EaterofWorldsTail,
NPCID.MoonLordCore
};
noRageWormSegmentList = new List<int>()
{
NPCType<DesertScourgeBody>(),
@@ -2812,7 +2781,6 @@ namespace CalamityMod
revengeanceProjectileBuffList25Percent = null;
revengeanceProjectileBuffList20Percent = null;
revengeanceProjectileBuffList15Percent = null;
revengeanceLifeStealExceptionList = null;
noRageWormSegmentList = null;
needsDebuffIconDisplayList = null;
scopedWeaponList = null;
+1 -1
View File
@@ -87,7 +87,7 @@ namespace CalamityMod.Items.Weapons.Melee
if (!target.canGhostHeal || player.moonLeech)
return;
int heal = Main.rand.Next(1, 69);
int heal = Main.rand.Next(1, 70);
player.statLife += heal;
player.HealEffect(heal);
}
@@ -47,7 +47,6 @@ namespace CalamityMod.NPCs.AquaticScourge
NPC.netAlways = true;
NPC.dontCountMe = true;
NPC.chaseable = false;
NPC.canGhostHeal = false;
if (BossRushEvent.BossRushActive)
NPC.scale *= 1.25f;
@@ -46,7 +46,6 @@ namespace CalamityMod.NPCs.AquaticScourge
NPC.netAlways = true;
NPC.dontCountMe = true;
NPC.chaseable = false;
NPC.canGhostHeal = false;
if (BossRushEvent.BossRushActive)
NPC.scale *= 1.25f;
@@ -46,7 +46,6 @@ namespace CalamityMod.NPCs.AquaticScourge
NPC.netAlways = true;
NPC.dontCountMe = true;
NPC.chaseable = false;
NPC.canGhostHeal = false;
if (BossRushEvent.BossRushActive)
NPC.scale *= 1.25f;
-1
View File
@@ -43,7 +43,6 @@ namespace CalamityMod.NPCs.AstrumAureus
NPC.dontTakeDamage = true;
NPC.noGravity = true;
NPC.noTileCollide = true;
NPC.canGhostHeal = false;
NPC.HitSound = SoundID.NPCHit1;
NPC.DeathSound = SoundID.NPCDeath1;
NPC.Calamity().VulnerableToHeat = true;
-1
View File
@@ -52,7 +52,6 @@ namespace CalamityMod.NPCs.AstrumDeus
NPC.behindTiles = true;
NPC.noGravity = true;
NPC.noTileCollide = true;
NPC.canGhostHeal = false;
NPC.HitSound = AstrumDeusHead.HitSound;
NPC.DeathSound = AstrumDeusHead.DeathSound;
NPC.netAlways = true;
-1
View File
@@ -52,7 +52,6 @@ namespace CalamityMod.NPCs.AstrumDeus
NPC.behindTiles = true;
NPC.noGravity = true;
NPC.noTileCollide = true;
NPC.canGhostHeal = false;
NPC.HitSound = AstrumDeusHead.HitSound;
NPC.DeathSound = AstrumDeusHead.DeathSound;
NPC.netAlways = true;
-1
View File
@@ -39,7 +39,6 @@ namespace CalamityMod.NPCs.BrimstoneElemental
NPC.knockBackResist = 0.5f;
NPC.noGravity = true;
NPC.noTileCollide = true;
NPC.canGhostHeal = false;
NPC.HitSound = SoundID.NPCHit23;
NPC.DeathSound = SoundID.NPCDeath39;
if (BossRushEvent.BossRushActive)
-1
View File
@@ -39,7 +39,6 @@ namespace CalamityMod.NPCs.Bumblebirb
NPC.lavaImmune = true;
NPC.noTileCollide = true;
NPC.noGravity = true;
NPC.canGhostHeal = false;
NPC.HitSound = SoundID.NPCHit51;
NPC.DeathSound = SoundID.NPCDeath46;
NPC.Calamity().VulnerableToHeat = true;
-1
View File
@@ -33,7 +33,6 @@ namespace CalamityMod.NPCs.CalClone
NPC.height = 40;
NPC.noGravity = true;
NPC.noTileCollide = true;
NPC.canGhostHeal = false;
NPC.damage = 40;
NPC.defense = 10;
NPC.DR_NERD(0.1f);
-5
View File
@@ -1489,11 +1489,6 @@ namespace CalamityMod.NPCs
{
npc.knockBackResist = 0f;
}
if (CalamityLists.revengeanceLifeStealExceptionList.Contains(npc.type))
{
npc.canGhostHeal = false;
}
}
#endregion
-1
View File
@@ -50,7 +50,6 @@ namespace CalamityMod.NPCs.CeaselessVoid
NPC.Opacity = 0f;
NPC.noGravity = true;
NPC.noTileCollide = true;
NPC.canGhostHeal = false;
NPC.HitSound = SoundID.NPCHit53;
NPC.DeathSound = SoundID.NPCDeath44;
NPC.Calamity().VulnerableToSickness = false;
-1
View File
@@ -40,7 +40,6 @@ namespace CalamityMod.NPCs.Crabulon
NPC.knockBackResist = 0.5f;
NPC.noGravity = true;
NPC.noTileCollide = true;
NPC.canGhostHeal = false;
NPC.HitSound = SoundID.NPCHit1;
NPC.DeathSound = SoundID.NPCDeath1;
NPC.Calamity().VulnerableToHeat = true;
-1
View File
@@ -25,7 +25,6 @@ namespace CalamityMod.NPCs.Cryogen
NPC.Calamity().canBreakPlayerDefense = true;
NPC.aiStyle = -1;
AIType = -1;
NPC.canGhostHeal = false;
NPC.noTileCollide = true;
NPC.coldDamage = true;
NPC.GetNPCDamage();
-1
View File
@@ -36,7 +36,6 @@ namespace CalamityMod.NPCs.DesertScourge
NPC.behindTiles = true;
NPC.noGravity = true;
NPC.noTileCollide = true;
NPC.canGhostHeal = false;
NPC.HitSound = SoundID.NPCHit1;
NPC.DeathSound = SoundID.NPCDeath1;
NPC.netAlways = true;
-1
View File
@@ -36,7 +36,6 @@ namespace CalamityMod.NPCs.DesertScourge
NPC.behindTiles = true;
NPC.noGravity = true;
NPC.noTileCollide = true;
NPC.canGhostHeal = false;
NPC.HitSound = SoundID.NPCHit1;
NPC.DeathSound = SoundID.NPCDeath1;
NPC.netAlways = true;
-1
View File
@@ -40,7 +40,6 @@ namespace CalamityMod.NPCs.DesertScourge
NPC.behindTiles = true;
NPC.noGravity = true;
NPC.noTileCollide = true;
NPC.canGhostHeal = false;
NPC.HitSound = SoundID.NPCHit1;
NPC.DeathSound = SoundID.NPCDeath1;
NPC.netAlways = true;
-1
View File
@@ -38,7 +38,6 @@ namespace CalamityMod.NPCs.DesertScourge
NPC.behindTiles = true;
NPC.noGravity = true;
NPC.noTileCollide = true;
NPC.canGhostHeal = false;
NPC.HitSound = SoundID.NPCHit1;
NPC.DeathSound = SoundID.NPCDeath1;
NPC.netAlways = true;
@@ -40,7 +40,6 @@ namespace CalamityMod.NPCs.DevourerofGods
NPC.behindTiles = true;
NPC.noGravity = true;
NPC.noTileCollide = true;
NPC.canGhostHeal = false;
NPC.HitSound = SoundID.NPCHit4;
NPC.DeathSound = SoundID.NPCDeath14;
NPC.netAlways = true;
@@ -54,7 +54,6 @@ namespace CalamityMod.NPCs.DevourerofGods
NPC.behindTiles = true;
NPC.noGravity = true;
NPC.noTileCollide = true;
NPC.canGhostHeal = false;
NPC.HitSound = SoundID.NPCHit4;
NPC.DeathSound = SoundID.NPCDeath14;
NPC.netAlways = true;
@@ -37,7 +37,6 @@ namespace CalamityMod.NPCs.DevourerofGods
NPC.behindTiles = true;
NPC.noGravity = true;
NPC.noTileCollide = true;
NPC.canGhostHeal = false;
NPC.HitSound = SoundID.NPCHit4;
NPC.DeathSound = SoundID.NPCDeath14;
NPC.netAlways = true;
@@ -55,7 +55,6 @@ namespace CalamityMod.NPCs.DevourerofGods
global.DR = 0.925f;
global.unbreakableDR = true;
NPC.chaseable = false;
NPC.canGhostHeal = false;
}
NPC.LifeMaxNERB(887500, 1065000, 1500000); // Phase 1 is 355000, Phase 2 is 532500
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
@@ -67,7 +67,6 @@ namespace CalamityMod.NPCs.DevourerofGods
NPC.behindTiles = true;
NPC.noGravity = true;
NPC.noTileCollide = true;
NPC.canGhostHeal = false;
NPC.DeathSound = SoundID.NPCDeath14;
NPC.netAlways = true;
NPC.boss = true;
-1
View File
@@ -92,7 +92,6 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
AIType = -1;
NPC.Opacity = 0f;
NPC.knockBackResist = 0f;
NPC.canGhostHeal = false;
NPC.noGravity = true;
NPC.noTileCollide = true;
NPC.DeathSound = CommonCalamitySounds.ExoDeathSound;
-1
View File
@@ -95,7 +95,6 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
AIType = -1;
NPC.Opacity = 0f;
NPC.knockBackResist = 0f;
NPC.canGhostHeal = false;
NPC.noGravity = true;
NPC.noTileCollide = true;
NPC.DeathSound = CommonCalamitySounds.ExoDeathSound;
@@ -89,7 +89,6 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
AIType = -1;
NPC.Opacity = 0f;
NPC.knockBackResist = 0f;
NPC.canGhostHeal = false;
NPC.noGravity = true;
NPC.noTileCollide = true;
NPC.DeathSound = CommonCalamitySounds.ExoDeathSound;
-1
View File
@@ -90,7 +90,6 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
AIType = -1;
NPC.Opacity = 0f;
NPC.knockBackResist = 0f;
NPC.canGhostHeal = false;
NPC.noGravity = true;
NPC.noTileCollide = true;
NPC.DeathSound = CommonCalamitySounds.ExoDeathSound;
-1
View File
@@ -73,7 +73,6 @@ namespace CalamityMod.NPCs.ExoMechs.Thanatos
AIType = -1;
NPC.knockBackResist = 0f;
NPC.Opacity = 0f;
NPC.canGhostHeal = false;
NPC.behindTiles = true;
NPC.noGravity = true;
NPC.noTileCollide = true;
-1
View File
@@ -71,7 +71,6 @@ namespace CalamityMod.NPCs.ExoMechs.Thanatos
AIType = -1;
NPC.knockBackResist = 0f;
NPC.Opacity = 0f;
NPC.canGhostHeal = false;
NPC.behindTiles = true;
NPC.noGravity = true;
NPC.noTileCollide = true;
-1
View File
@@ -71,7 +71,6 @@ namespace CalamityMod.NPCs.ExoMechs.Thanatos
AIType = -1;
NPC.knockBackResist = 0f;
NPC.Opacity = 0f;
NPC.canGhostHeal = false;
NPC.behindTiles = true;
NPC.noGravity = true;
NPC.noTileCollide = true;
-1
View File
@@ -42,7 +42,6 @@ namespace CalamityMod.NPCs.HiveMind
NPC.knockBackResist = BossRushEvent.BossRushActive ? 0f : 0.3f;
NPC.noGravity = true;
NPC.noTileCollide = true;
NPC.canGhostHeal = false;
NPC.HitSound = SoundID.NPCHit1;
NPC.DeathSound = SoundID.NPCDeath1;
NPC.Calamity().VulnerableToHeat = true;
-1
View File
@@ -39,7 +39,6 @@ namespace CalamityMod.NPCs.HiveMind
AIType = -1;
NPC.knockBackResist = BossRushEvent.BossRushActive ? 0f : 0.4f;
NPC.noGravity = true;
NPC.canGhostHeal = false;
NPC.chaseable = false;
NPC.HitSound = SoundID.NPCHit13;
NPC.DeathSound = SoundID.NPCDeath21;
-1
View File
@@ -40,7 +40,6 @@ namespace CalamityMod.NPCs.HiveMind
AIType = -1;
NPC.noGravity = true;
NPC.noTileCollide = true;
NPC.canGhostHeal = false;
NPC.chaseable = false;
NPC.HitSound = SoundID.NPCHit1;
NPC.DeathSound = SoundID.NPCDeath1;
-1
View File
@@ -42,7 +42,6 @@ namespace CalamityMod.NPCs.HiveMind
AIType = -1;
NPC.noGravity = true;
NPC.noTileCollide = true;
NPC.canGhostHeal = false;
NPC.chaseable = false;
NPC.HitSound = SoundID.NPCHit1;
NPC.DeathSound = SoundID.NPCDeath1;
-1
View File
@@ -31,7 +31,6 @@ namespace CalamityMod.NPCs.Leviathan
{
NPC.aiStyle = -1;
AIType = -1;
NPC.canGhostHeal = false;
NPC.noTileCollide = true;
NPC.coldDamage = true;
NPC.GetNPCDamage();
-1
View File
@@ -48,7 +48,6 @@ namespace CalamityMod.NPCs.Leviathan
NPC.knockBackResist = 0.2f;
NPC.noGravity = true;
NPC.noTileCollide = true;
NPC.canGhostHeal = false;
AIType = -1;
NPC.HitSound = SoundID.NPCHit1;
NPC.DeathSound = SoundID.NPCDeath1;
-1
View File
@@ -40,7 +40,6 @@ namespace CalamityMod.NPCs.NormalNPCs
NPC.knockBackResist = 0.8f;
NPC.noGravity = true;
NPC.noTileCollide = true;
NPC.canGhostHeal = false;
NPC.HitSound = SoundID.NPCHit5;
NPC.DeathSound = SoundID.NPCDeath15;
NPC.Calamity().VulnerableToSickness = false;
-1
View File
@@ -44,7 +44,6 @@ namespace CalamityMod.NPCs.NormalNPCs
NPC.lavaImmune = true;
NPC.noTileCollide = true;
NPC.noGravity = true;
NPC.canGhostHeal = false;
NPC.HitSound = SoundID.NPCHit51;
NPC.DeathSound = SoundID.NPCDeath46;
NPC.Calamity().VulnerableToHeat = true;
-1
View File
@@ -43,7 +43,6 @@ namespace CalamityMod.NPCs.Perforator
NPC.behindTiles = true;
NPC.noGravity = true;
NPC.noTileCollide = true;
NPC.canGhostHeal = false;
NPC.HitSound = HitSound;
NPC.DeathSound = DeathSound;
NPC.netAlways = true;
-1
View File
@@ -46,7 +46,6 @@ namespace CalamityMod.NPCs.Perforator
NPC.behindTiles = true;
NPC.noGravity = true;
NPC.noTileCollide = true;
NPC.canGhostHeal = false;
NPC.HitSound = HitSound;
NPC.DeathSound = DeathSound;
NPC.netAlways = true;
-1
View File
@@ -43,7 +43,6 @@ namespace CalamityMod.NPCs.Perforator
NPC.behindTiles = true;
NPC.noGravity = true;
NPC.noTileCollide = true;
NPC.canGhostHeal = false;
NPC.HitSound = HitSound;
NPC.DeathSound = DeathSound;
NPC.netAlways = true;
-1
View File
@@ -43,7 +43,6 @@ namespace CalamityMod.NPCs.Perforator
NPC.behindTiles = true;
NPC.noGravity = true;
NPC.noTileCollide = true;
NPC.canGhostHeal = false;
NPC.HitSound = HitSound;
NPC.DeathSound = DeathSound;
NPC.netAlways = true;
-1
View File
@@ -46,7 +46,6 @@ namespace CalamityMod.NPCs.Perforator
NPC.behindTiles = true;
NPC.noGravity = true;
NPC.noTileCollide = true;
NPC.canGhostHeal = false;
NPC.HitSound = HitSound;
NPC.DeathSound = DeathSound;
NPC.netAlways = true;
-1
View File
@@ -43,7 +43,6 @@ namespace CalamityMod.NPCs.Perforator
NPC.behindTiles = true;
NPC.noGravity = true;
NPC.noTileCollide = true;
NPC.canGhostHeal = false;
NPC.HitSound = HitSound;
NPC.DeathSound = DeathSound;
NPC.netAlways = true;
@@ -39,7 +39,6 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath
NPC.HitSound = SoundID.NPCHit4;
NPC.DeathSound = SoundID.NPCDeath14;
NPC.noGravity = true;
NPC.canGhostHeal = false;
NPC.noTileCollide = true;
NPC.Calamity().VulnerableToSickness = false;
NPC.Calamity().VulnerableToElectricity = true;
-1
View File
@@ -36,7 +36,6 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath
NPC.knockBackResist = 0.2f;
NPC.noGravity = true;
NPC.noTileCollide = true;
NPC.canGhostHeal = false;
NPC.HitSound = SoundID.NPCHit4;
NPC.DeathSound = SoundID.NPCDeath14;
NPC.Calamity().VulnerableToSickness = false;
-1
View File
@@ -32,7 +32,6 @@ namespace CalamityMod.NPCs.Polterghast
NPC.DR_NERD(0.1f);
NPC.noGravity = true;
NPC.noTileCollide = true;
NPC.canGhostHeal = false;
NPC.damage = 50;
NPC.lifeMax = 20000;
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
-1
View File
@@ -49,7 +49,6 @@ namespace CalamityMod.NPCs.Polterghast
NPC.noGravity = true;
NPC.noTileCollide = true;
NPC.netAlways = true;
NPC.canGhostHeal = false;
NPC.HitSound = SoundID.NPCHit36;
NPC.DeathSound = SoundID.NPCDeath39;
NPC.Calamity().VulnerableToSickness = false;
@@ -63,7 +63,6 @@ namespace CalamityMod.NPCs.ProfanedGuardians
NPC.knockBackResist = 0f;
NPC.noGravity = true;
NPC.noTileCollide = true;
NPC.canGhostHeal = false;
AIType = -1;
NPC.HitSound = SoundID.NPCHit52;
NPC.DeathSound = SoundID.NPCDeath55;
@@ -73,7 +73,6 @@ namespace CalamityMod.NPCs.ProfanedGuardians
NPC.knockBackResist = 0f;
NPC.noGravity = true;
NPC.noTileCollide = true;
NPC.canGhostHeal = false;
AIType = -1;
NPC.HitSound = SoundID.NPCHit52;
NPC.DeathSound = SoundID.NPCDeath55;
-1
View File
@@ -47,7 +47,6 @@ namespace CalamityMod.NPCs.ProfanedGuardians
NPC.noGravity = true;
NPC.chaseable = false;
NPC.noTileCollide = true;
NPC.canGhostHeal = false;
NPC.HitSound = SoundID.NPCHit52;
NPC.DeathSound = SoundID.NPCDeath55;
NPC.Calamity().VulnerableToHeat = false;
-3
View File
@@ -182,7 +182,6 @@ namespace CalamityMod.NPCs.Providence
writer.Write(flightPath);
writer.Write(NPC.dontTakeDamage);
writer.Write(NPC.chaseable);
writer.Write(NPC.canGhostHeal);
writer.Write(NPC.localAI[0]);
writer.Write(NPC.localAI[1]);
writer.Write(NPC.localAI[2]);
@@ -209,7 +208,6 @@ namespace CalamityMod.NPCs.Providence
flightPath = reader.ReadInt32();
NPC.dontTakeDamage = reader.ReadBoolean();
NPC.chaseable = reader.ReadBoolean();
NPC.canGhostHeal = reader.ReadBoolean();
NPC.localAI[0] = reader.ReadSingle();
NPC.localAI[1] = reader.ReadSingle();
NPC.localAI[2] = reader.ReadSingle();
@@ -523,7 +521,6 @@ namespace CalamityMod.NPCs.Providence
// Whether the boss can be homed in on or healed off of
NPC.chaseable = normalAttackRate;
NPC.canGhostHeal = NPC.chaseable;
// Prevent lag by stopping rain
if (CalamityConfig.Instance.BossesStopWeather)
-1
View File
@@ -28,7 +28,6 @@ namespace CalamityMod.NPCs.Ravager
NPC.defense = 35;
NPC.DR_NERD(0.2f);
NPC.chaseable = false;
NPC.canGhostHeal = false;
NPC.lifeMax = DownedBossSystem.downedProvidence ? 14000 : 3500;
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
-1
View File
@@ -34,7 +34,6 @@ namespace CalamityMod.NPCs.Ravager
NPC.knockBackResist = 0f;
AIType = -1;
NPC.noGravity = true;
NPC.canGhostHeal = false;
NPC.alpha = 255;
NPC.netAlways = true;
NPC.HitSound = RavagerBody.HitSound;
-1
View File
@@ -35,7 +35,6 @@ namespace CalamityMod.NPCs.Ravager
AIType = -1;
NPC.netAlways = true;
NPC.noGravity = true;
NPC.canGhostHeal = false;
NPC.alpha = 255;
NPC.HitSound = RavagerBody.HitSound;
NPC.DeathSound = RavagerBody.LimbLossSound;
-1
View File
@@ -32,7 +32,6 @@ namespace CalamityMod.NPCs.Ravager
AIType = -1;
NPC.netAlways = true;
NPC.noGravity = true;
NPC.canGhostHeal = false;
NPC.noTileCollide = true;
NPC.alpha = 255;
NPC.HitSound = RavagerBody.HitSound;
-1
View File
@@ -32,7 +32,6 @@ namespace CalamityMod.NPCs.Ravager
AIType = -1;
NPC.netAlways = true;
NPC.noGravity = true;
NPC.canGhostHeal = false;
NPC.noTileCollide = true;
NPC.HitSound = RavagerBody.HitSound;
NPC.DeathSound = RavagerBody.LimbLossSound;
-1
View File
@@ -28,7 +28,6 @@ namespace CalamityMod.NPCs.Ravager
AIType = -1;
NPC.netAlways = true;
NPC.noGravity = true;
NPC.canGhostHeal = false;
NPC.noTileCollide = true;
NPC.alpha = 255;
NPC.HitSound = RavagerBody.HitSound;
-1
View File
@@ -28,7 +28,6 @@ namespace CalamityMod.NPCs.Ravager
AIType = -1;
NPC.netAlways = true;
NPC.noGravity = true;
NPC.canGhostHeal = false;
NPC.noTileCollide = true;
NPC.alpha = 255;
NPC.HitSound = RavagerBody.HitSound;
-1
View File
@@ -27,7 +27,6 @@ namespace CalamityMod.NPCs.Ravager
NPC.defense = 50;
NPC.DR_NERD(0.3f);
NPC.chaseable = false;
NPC.canGhostHeal = false;
NPC.lifeMax = DownedBossSystem.downedProvidence ? 20000 : 5000;
double HPBoost = CalamityConfig.Instance.BossHealthBoost * 0.01;
NPC.lifeMax += (int)(NPC.lifeMax * HPBoost);
-1
View File
@@ -36,7 +36,6 @@ namespace CalamityMod.NPCs.Signus
NPC.noGravity = true;
NPC.dontTakeDamage = true;
NPC.chaseable = false;
NPC.canGhostHeal = false;
NPC.noTileCollide = true;
NPC.HitSound = SoundID.NPCHit53;
NPC.DeathSound = SoundID.NPCDeath44;
-1
View File
@@ -39,7 +39,6 @@ namespace CalamityMod.NPCs.SlimeGod
NPC.lavaImmune = false;
NPC.noGravity = false;
NPC.noTileCollide = false;
NPC.canGhostHeal = false;
NPC.HitSound = SoundID.NPCHit1;
NPC.DeathSound = SoundID.NPCDeath1;
NPC.Calamity().VulnerableToHeat = true;
-1
View File
@@ -38,7 +38,6 @@ namespace CalamityMod.NPCs.SlimeGod
NPC.lavaImmune = false;
NPC.noGravity = false;
NPC.noTileCollide = false;
NPC.canGhostHeal = false;
NPC.HitSound = SoundID.NPCHit1;
NPC.DeathSound = SoundID.NPCDeath1;
NPC.Calamity().VulnerableToHeat = true;
-1
View File
@@ -37,7 +37,6 @@ namespace CalamityMod.NPCs.SlimeGod
NPC.lavaImmune = false;
NPC.noGravity = false;
NPC.noTileCollide = false;
NPC.canGhostHeal = false;
NPC.HitSound = SoundID.NPCHit1;
NPC.DeathSound = SoundID.NPCDeath1;
NPC.Calamity().VulnerableToHeat = true;
-1
View File
@@ -41,7 +41,6 @@ namespace CalamityMod.NPCs.SlimeGod
NPC.lavaImmune = false;
NPC.noGravity = false;
NPC.noTileCollide = false;
NPC.canGhostHeal = false;
NPC.HitSound = SoundID.NPCHit1;
NPC.DeathSound = SoundID.NPCDeath1;
NPC.Calamity().VulnerableToHeat = true;
-1
View File
@@ -51,7 +51,6 @@ namespace CalamityMod.NPCs.StormWeaver
NPC.noGravity = true;
NPC.boss = true;
NPC.noTileCollide = true;
NPC.canGhostHeal = false;
NPC.netAlways = true;
NPC.dontCountMe = true;
-1
View File
@@ -48,7 +48,6 @@ namespace CalamityMod.NPCs.StormWeaver
NPC.noGravity = true;
NPC.boss = true;
NPC.noTileCollide = true;
NPC.canGhostHeal = false;
NPC.netAlways = true;
NPC.dontCountMe = true;
-1
View File
@@ -37,7 +37,6 @@ namespace CalamityMod.NPCs.SupremeCalamitas
NPC.alpha = 255;
NPC.noGravity = true;
NPC.noTileCollide = true;
NPC.canGhostHeal = false;
NPC.hide = true;
NPC.HitSound = SoundID.NPCHit13;
NPC.DeathSound = SoundID.NPCDeath1;
@@ -53,7 +53,6 @@ namespace CalamityMod.NPCs.SupremeCalamitas
NPC.height = 40;
NPC.noGravity = true;
NPC.noTileCollide = true;
NPC.canGhostHeal = false;
NPC.damage = 50;
NPC.defense = 60;
NPC.DR_NERD(NormalDR);
@@ -245,7 +245,6 @@ namespace CalamityMod.NPCs.SupremeCalamitas
NPC.dontTakeDamage = false;
NPC.chaseable = true;
NPC.boss = true;
NPC.canGhostHeal = false;
NPC.noGravity = true;
NPC.noTileCollide = true;
NPC.Calamity().VulnerableToHeat = false;
+2 -2
View File
@@ -4181,9 +4181,9 @@ namespace CalamityMod.Projectiles
#region Life Steal
public static bool CanSpawnLifeStealProjectile(float healMultiplier, float healAmount) => healMultiplier > 0f && (int)healAmount > 0;
public static void SpawnLifeStealProjectile(Projectile projectile, Player player, float healAmount, int healProjectileType, float distanceRequired, float cooldownMultiplier)
public static void SpawnLifeStealProjectile(NPC target, Projectile projectile, Player player, float healAmount, int healProjectileType, float distanceRequired, float cooldownMultiplier)
{
if (Main.player[Main.myPlayer].moonLeech)
if (Main.player[Main.myPlayer].moonLeech || !target.canGhostHeal)
return;
Main.player[Main.myPlayer].lifeSteal -= healAmount * cooldownMultiplier;