only apply bonus whip damage if eye of cthulhu is killed

This commit is contained in:
2026-01-11 14:47:58 +01:00
parent c29ac8272f
commit 2511d7bfd0
+6 -4
View File
@@ -9,6 +9,8 @@ public class SummonerOnHitEffects : GlobalProjectile {
public override void OnHitNPC(Projectile projectile, NPC target, NPC.HitInfo hit, int damageDone) { public override void OnHitNPC(Projectile projectile, NPC target, NPC.HitInfo hit, int damageDone) {
Player player = Main.player[projectile.owner]; Player player = Main.player[projectile.owner];
YhtPlayer modPlayer = player.GetModPlayer<YhtPlayer>(); YhtPlayer modPlayer = player.GetModPlayer<YhtPlayer>();
// Player's own minions
if (projectile.minion && Main.myPlayer == projectile.owner) { if (projectile.minion && Main.myPlayer == projectile.owner) {
if (modPlayer.SummonerAmbition) { if (modPlayer.SummonerAmbition) {
if ( if (
@@ -31,18 +33,18 @@ public class SummonerOnHitEffects : GlobalProjectile {
); );
} }
if ( if (modPlayer.SummonerAmbitions.Contains("queen_bee") && Main.rand.NextBool(4)) {
modPlayer.SummonerAmbitions.Contains("queen_bee")
&& Main.rand.NextBool(4)
) {
target.AddBuff(BuffID.Poisoned, 5 * 60); target.AddBuff(BuffID.Poisoned, 5 * 60);
} }
} }
} }
// Whips
if (projectile.WhipSettings.Segments > 0) { if (projectile.WhipSettings.Segments > 0) {
if (modPlayer.SummonerAmbitions.Contains("eye_of_cthulhu")) {
projectile.damage = (int)(projectile.damage * 1.1); projectile.damage = (int)(projectile.damage * 1.1);
} }
}
base.OnHitNPC(projectile, target, hit, damageDone); base.OnHitNPC(projectile, target, hit, damageDone);
} }