From ef4788fa8a4d3d74738ce5aae08dab819bad512e Mon Sep 17 00:00:00 2001
From: CongratsIsTrash <142704082+CongratsIsTrash@users.noreply.github.com>
Date: Mon, 8 Sep 2025 19:57:35 -0400
Subject: [PATCH 1/2] Murasama damage 2000 -> 2001
---
Items/Weapons/Melee/Murasama.cs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Items/Weapons/Melee/Murasama.cs b/Items/Weapons/Melee/Murasama.cs
index 8faa8dac75..b7a00a61d5 100644
--- a/Items/Weapons/Melee/Murasama.cs
+++ b/Items/Weapons/Melee/Murasama.cs
@@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Melee
{
Item.width = 90;
Item.height = 134;
- Item.damage = 2000;
+ Item.damage = 2001;
Item.DamageType = TrueMeleeNoSpeedDamageClass.Instance;
Item.noMelee = true;
Item.noUseGraphic = true;
From 51a38099515d8414ac8f76077c2b54c094a66326 Mon Sep 17 00:00:00 2001
From: CongratsIsTrash <1q2w3e4dasd@gmail.com>
Date: Mon, 8 Sep 2025 20:29:57 -0400
Subject: [PATCH 2/2] Fixed Navy Fishing Rod not disabling player movement
while a fish is hooked
Plus some code readability stuff
---
Projectiles/CalamityGlobalProjectile.cs | 44 +++++++++++++------------
1 file changed, 23 insertions(+), 21 deletions(-)
diff --git a/Projectiles/CalamityGlobalProjectile.cs b/Projectiles/CalamityGlobalProjectile.cs
index 99e983d179..4c49330e65 100644
--- a/Projectiles/CalamityGlobalProjectile.cs
+++ b/Projectiles/CalamityGlobalProjectile.cs
@@ -2854,33 +2854,26 @@ namespace CalamityMod.Projectiles
#region Fishing Minigames
// All these fields are exclusively used for fishing minigames, so I declared them in this region for organization
-
///
- /// Reel state of bobber
- /// ai[0] in bobber AI
+ /// Reel state of bobber.
+ /// ai[0] in bobber AI.
///
private float isReelingIn = 0;
///
- /// How long you have to catch a fish when bitten
- /// ai[1] in bobber AI
+ /// How long you have to catch a fish when bitten.
+ /// ai[1] in bobber AI.
///
private float CatchTime = 0;
///
- /// How long until a fish bites
- /// LocalAI[1] in bobber AI
+ /// How long until a fish bites.
+ /// LocalAI[1] in bobber AI.
///
private float TimerToCatch = 0;
- ///
- /// Item ID of hooked item for fishing minigames
- ///
+ /// Item ID of hooked item for fishing minigames.
public int CaughtItemID = -1;
- ///
- /// What this does depends on the fishing minigame. Used to store data between updates
- ///
+ /// What this does depends on the fishing minigame. Used to store data between updates.
public float PersistentFishingData = -1;
- ///
- /// What this does depends on the fishing minigame. Used to store data between updates
- ///
+ ///
public Vector2 PersistentFishingDataVector2 = Vector2.Zero;
public bool RunFishingMinigames(Projectile projectile)
{
@@ -2924,7 +2917,7 @@ namespace CalamityMod.Projectiles
{
if (projectile.localAI[1] == 1)
{
- if (Main.netMode != 1)
+ if (Main.netMode != NetmodeID.MultiplayerClient)
{
NPC.SpawnOnPlayer(owner.whoAmI, 370);
}
@@ -2939,9 +2932,9 @@ namespace CalamityMod.Projectiles
{
point.Y += 64;
}
- if (Main.netMode == 1)
+ if (Main.netMode == NetmodeID.MultiplayerClient)
{
- NetMessage.SendData(130, -1, -1, null, point.X / 16, point.Y / 16, num);
+ NetMessage.SendData(MessageID.FishOutNPC, -1, -1, null, point.X / 16, point.Y / 16, num);
}
else
{
@@ -3005,8 +2998,6 @@ namespace CalamityMod.Projectiles
//localAI[1] - The timer for fish to try and bite the hook. When it exceeds 660, it resets to 0.
//If ai[1] is not 0, this is set to the item ID of the hooked item/NPC
//If hooking an NPC, this is set to the NPC ID but negative. Still need to find how this gets treated upon reeling in.
-
-
switch (owner.Calamity().SelectedFishingMinigame)
{
case CalamityPlayer.FishingMinigames.WulfrumRod:
@@ -3287,6 +3278,17 @@ namespace CalamityMod.Projectiles
case CalamityPlayer.FishingMinigames.NavyFishingRod:
{
+ foreach (var item in Main.ActiveProjectiles)
+ {
+ if (item.bobber && item.owner == projectile.owner && item.whoAmI != projectile.whoAmI)
+ {
+ item.active = false;
+ }
+ }
+ if (CatchTime < 0 || (isReelingIn == 1 && CaughtItemID > 0))
+ {
+ owner.Calamity().ShouldHideControls = true;
+ }
if (isReelingIn != projectile.ai[0])
return false;
var waterline = GetWaterLine();