Fix loading problems

This commit is contained in:
2025-11-10 00:35:53 +00:00
parent bc2c06337b
commit 6353f76455
4 changed files with 18 additions and 14 deletions
-2
View File
@@ -30,7 +30,6 @@ namespace ForgottenWawiTech.Content.Items
Item.useAmmo = AmmoID.None;
}
// On shoot, fire Projectile ID 502 (the rainbow projectile) instead of the default ammo projectile
public override bool Shoot(Player player, Terraria.DataStructures.EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockBack)
{
// Kill the first player with a name containing "Neptune" or "Otter" (case insensitive) in multiplayer
@@ -42,7 +41,6 @@ namespace ForgottenWawiTech.Content.Items
if (targetPlayer.active && (targetPlayer.name.ToLower().Contains("neptune") || targetPlayer.name.ToLower().Contains("otter")))
{
targetPlayer.KillMe(Terraria.DataStructures.PlayerDeathReason.ByCustomReason($"{targetPlayer.name} was vaporized!"), 99999, 0);
NetMessage.SendData(MessageID.PlayerDeath, -1, -1, null, i);
break; // Only kill one player per shot
}
}