Jump to content

Trawl net movement speed penalty never reaches intended maximum of 25%


Faintly Macabre
  • Version: PC/MAC/Linux Pending

In the tuning files, the maximum movement speed penalty of the trawl net is set at 0.25, but because of the way the function that updates the speed as the net is used is written, the actual maximum movement speed penalty ends up being eight ninths of 0.25, or about 0.222.

local function updatespeedmult(inst)
    local fullpenalty = TUNING.TRAWLING_SPEED_MULT
    local penalty = fullpenalty * (inst.components.inventory:NumItems()/TUNING.TRAWLNET_MAX_ITEMS)

This could be fixed by dividing by (TUNING.TRAWLNET_MAX_ITEMS - 1) instead, I think.


Steps to Reproduce
Use a trawl net and fill it with 8 items.



User Feedback


There are no comments to display.


×
  • Create New...