mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-17 02:54:44 +01:00
[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 🆑 fix: Fixed a whoopsie with bait-related calculations for fishing. /🆑
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user