summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFedja Beader <fedja@protonmail.ch>2025-02-11 23:15:14 +0100
committerFedja Beader <fedja@protonmail.ch>2025-02-11 23:15:14 +0100
commitcd32eeaae06e283301b0489e8b20005a6350ffc6 (patch)
tree505fefbd4a10f0229305f08aa011e4af90c29cd2
parente6932c30b2645ea896b1e90f84aa75da8e9cadf6 (diff)
downloadserverdata-cd32eeaae06e283301b0489e8b20005a6350ffc6.tar.gz
serverdata-cd32eeaae06e283301b0489e8b20005a6350ffc6.tar.bz2
serverdata-cd32eeaae06e283301b0489e8b20005a6350ffc6.tar.xz
serverdata-cd32eeaae06e283301b0489e8b20005a6350ffc6.zip
Fix fishy code
I did warn that it was fishy, didn't I??
-rw-r--r--npc/functions/fishing.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/npc/functions/fishing.txt b/npc/functions/fishing.txt
index 4a251dc2a..2d1e91088 100644
--- a/npc/functions/fishing.txt
+++ b/npc/functions/fishing.txt
@@ -175,9 +175,9 @@ function script fishing {
// Check weight & inventory slots. NPCEyes were 200g at moment of
// writing this, which exceeds any obtainable reward.
- inventoryplace NPCEyes, .@net_ratio +
- 1 + // ancient blueprint
- $EVENT$ == "Fishing" ? 1 : 0;
+ inventoryplace NPCEyes, (.@net_ratio +
+ 1 + // ancient blueprint
+ (($EVENT$ == "Fishing") ? 1 : 0));
if (.@account_id > 0 && !isloggedin(.@account_id, .@char_id))