Reduced Plague debuff duration when inflicted on the player by 50% from all hostile sources.
This commit is contained in:
1 parent
fda99ae61b
commit
df4495be22
14 files changed
+14
-14
No files matched your search
@@ -65,7 +65,7 @@ namespace CalamityMod.NPCs.PlagueEnemies
|
||||
public override void OnHitPlayer(Player target, Player.HurtInfo hurtInfo)
|
||||
{
|
||||
if (hurtInfo.Damage > 0)
|
||||
target.AddBuff(ModContent.BuffType<Plague>(), 180, true);
|
||||
target.AddBuff(ModContent.BuffType<Plague>(), 90, true);
|
||||
}
|
||||
|
||||
public override void HitEffect(NPC.HitInfo hit)
|
||||
|
||||
@@ -148,7 +148,7 @@ namespace CalamityMod.NPCs.PlagueEnemies
|
||||
public override void OnHitPlayer(Player target, Player.HurtInfo hurtInfo)
|
||||
{
|
||||
if (hurtInfo.Damage > 0)
|
||||
target.AddBuff(ModContent.BuffType<Plague>(), 180, true);
|
||||
target.AddBuff(ModContent.BuffType<Plague>(), 90, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -129,7 +129,7 @@ namespace CalamityMod.NPCs.PlagueEnemies
|
||||
public override void OnHitPlayer(Player target, Player.HurtInfo hurtInfo)
|
||||
{
|
||||
if (hurtInfo.Damage > 0)
|
||||
target.AddBuff(ModContent.BuffType<Plague>(), 120, true);
|
||||
target.AddBuff(ModContent.BuffType<Plague>(), 60, true);
|
||||
}
|
||||
|
||||
public override void HitEffect(NPC.HitInfo hit)
|
||||
|
||||
@@ -131,7 +131,7 @@ namespace CalamityMod.NPCs.PlagueEnemies
|
||||
public override void OnHitPlayer(Player target, Player.HurtInfo hurtInfo)
|
||||
{
|
||||
if (hurtInfo.Damage > 0)
|
||||
target.AddBuff(ModContent.BuffType<Plague>(), 180, true);
|
||||
target.AddBuff(ModContent.BuffType<Plague>(), 90, true);
|
||||
}
|
||||
|
||||
public override void HitEffect(NPC.HitInfo hit)
|
||||
|
||||
@@ -667,7 +667,7 @@ namespace CalamityMod.NPCs.PlagueEnemies
|
||||
public override void OnHitPlayer(Player target, Player.HurtInfo hurtInfo)
|
||||
{
|
||||
if (hurtInfo.Damage > 0)
|
||||
target.AddBuff(ModContent.BuffType<Plague>(), 240, true);
|
||||
target.AddBuff(ModContent.BuffType<Plague>(), 120, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -85,7 +85,7 @@ namespace CalamityMod.NPCs.PlagueEnemies
|
||||
public override void OnHitPlayer(Player target, Player.HurtInfo hurtInfo)
|
||||
{
|
||||
if (hurtInfo.Damage > 0)
|
||||
target.AddBuff(ModContent.BuffType<Plague>(), 180, true);
|
||||
target.AddBuff(ModContent.BuffType<Plague>(), 90, true);
|
||||
}
|
||||
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot) => npcLoot.Add(ModContent.ItemType<PlagueCellCanister>(), 1, 3, 4);
|
||||
|
||||
@@ -181,7 +181,7 @@ namespace CalamityMod.NPCs.PlagueEnemies
|
||||
public override void OnHitPlayer(Player target, Player.HurtInfo hurtInfo)
|
||||
{
|
||||
if (hurtInfo.Damage > 0)
|
||||
target.AddBuff(ModContent.BuffType<Plague>(), 180, true);
|
||||
target.AddBuff(ModContent.BuffType<Plague>(), 90, true);
|
||||
}
|
||||
|
||||
public override void HitEffect(NPC.HitInfo hit)
|
||||
|
||||
@@ -255,7 +255,7 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath
|
||||
target.AddBuff(BuffID.Poisoned, 240, true);
|
||||
target.AddBuff(BuffID.Venom, 240, true);
|
||||
}
|
||||
target.AddBuff(ModContent.BuffType<Plague>(), 240, true);
|
||||
target.AddBuff(ModContent.BuffType<Plague>(), 120, true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -140,7 +140,7 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath
|
||||
target.AddBuff(BuffID.Poisoned, 300, true);
|
||||
target.AddBuff(BuffID.Venom, 300, true);
|
||||
}
|
||||
target.AddBuff(ModContent.BuffType<Plague>(), 300, true);
|
||||
target.AddBuff(ModContent.BuffType<Plague>(), 150, true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1351,7 +1351,7 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath
|
||||
target.AddBuff(BuffID.Poisoned, 480, true);
|
||||
target.AddBuff(BuffID.Venom, 480, true);
|
||||
}
|
||||
target.AddBuff(ModContent.BuffType<Plague>(), 480, true);
|
||||
target.AddBuff(ModContent.BuffType<Plague>(), 240, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -197,7 +197,7 @@ namespace CalamityMod.Projectiles.Boss
|
||||
target.AddBuff(BuffID.Poisoned, 240, true);
|
||||
target.AddBuff(BuffID.Venom, 240, true);
|
||||
}
|
||||
target.AddBuff(ModContent.BuffType<Plague>(), 240, true);
|
||||
target.AddBuff(ModContent.BuffType<Plague>(), 120, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -64,7 +64,7 @@ namespace CalamityMod.Projectiles.Boss
|
||||
if (info.Damage <= 0)
|
||||
return;
|
||||
|
||||
target.AddBuff(ModContent.BuffType<Plague>(), 180);
|
||||
target.AddBuff(ModContent.BuffType<Plague>(), 90);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -49,7 +49,7 @@ namespace CalamityMod.Projectiles.Boss
|
||||
if (info.Damage <= 0)
|
||||
return;
|
||||
|
||||
target.AddBuff(ModContent.BuffType<Plague>(), 180);
|
||||
target.AddBuff(ModContent.BuffType<Plague>(), 90);
|
||||
}
|
||||
|
||||
public override void PostDraw(Color lightColor)
|
||||
|
||||
@@ -39,7 +39,7 @@ namespace CalamityMod.Projectiles.Boss
|
||||
if (info.Damage <= 0)
|
||||
return;
|
||||
|
||||
target.AddBuff(ModContent.BuffType<Plague>(), 180);
|
||||
target.AddBuff(ModContent.BuffType<Plague>(), 90);
|
||||
}
|
||||
|
||||
public override void PostDraw(Color lightColor)
|
||||
|
||||
Reference in new issue
Block a user