From 69aacabfb82ff74fa39b325c3ca121a67a7e8fd7 Mon Sep 17 00:00:00 2001 From: Ghom <42542238+Ghommie@users.noreply.github.com> Date: Tue, 9 Jul 2024 17:57:28 +0200 Subject: [PATCH] [NO GBP] Fixing fishing bait-related calculations (#84784) ## About The Pull Request I subtracted the wrong way around. I should have probably tested it properly before. ## Why It's Good For The Game We want a positive integer, not a negative one. ## Changelog :cl: fix: Fixed a whoopsie with bait-related calculations for fishing. /:cl: --- code/modules/fishing/sources/_fish_source.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/fishing/sources/_fish_source.dm b/code/modules/fishing/sources/_fish_source.dm index 3c94ff8277d..059a5320722 100644 --- a/code/modules/fishing/sources/_fish_source.dm +++ b/code/modules/fishing/sources/_fish_source.dm @@ -310,7 +310,7 @@ GLOBAL_LIST(fishing_property_cache) highest_fish_weight = fish_weight for(var/fish in collected_fish_weights) - var/difference = collected_fish_weights[fish] - highest_fish_weight + var/difference = highest_fish_weight - collected_fish_weights[fish] if(!difference) continue final_table[fish] += round(difference**leveling_exponent, 1)