Jump to content

Drying rack paused check for perish rate function is incorrect


hoxi
  • Fixed

self.paused is not used by the component, self.dryingpaused is.

	self._dryingperishratefn = function(containerinst, item)
		if self.isinacid then
			local perishtime = item.components.perishable and item.components.perishable.perishtime
			if perishtime then
				local rate = item.components.moisture and item.components.moisture:_GetMoistureRateAssumingRain() or TheWorld.state.precipitationrate
				rate = rate * TUNING.ACIDRAIN_PERISHABLE_ROT_PERCENT -- %/s
				rate = perishtime * rate --time/s ==> same as mult for perish rate
				return 1 + rate -- + 1 because acid perish stacks on top of basic perishing
			end
			return
		end
		return not self.paused and item and item.components.dryable and 0 or nil
	end

 


Steps to Reproduce

See that rain still pauses spoilage on items that are drying, contrary to what the patch notes state.

Quote
  • Fixed Drying Racks not resuming perishing when drying is paused (e.g. Raining)

 




User Feedback


A developer has marked this issue as fixed. This means that the issue has been addressed in the current development build and will likely be in the next update.


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...