Reduced Plague debuff duration when inflicted on the player by 50% from all hostile sources.

This commit is contained in:
mountaindrew10 committed 2023-09-19 19:23:42 -05:00
1 parent fda99ae61b
commit df4495be22
14 files changed
+14 -14

No files matched your search

+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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);
}
}
}
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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);
}
}
}
+1 -1
View File
@@ -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);
+1 -1
View File
@@ -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);
}
}
+1 -1
View File
@@ -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);
}
}
}
+1 -1
View File
@@ -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);
}
}
}
+1 -1
View File
@@ -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);
}
}
}
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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)