Jump to content

Dupe "likewateroffducksback" tag check in floater component


hoxi
  • Fixed

This tag can prevent the inventory item temperature functionality here from going through despite only being intended for moisture (at least it just seems like an oversight):

local hotsplash
if self.inst.components.inventoryitem ~= nil and not self.inst.components.inventoryitem:IsHeld() and not self.inst:HasTag("likewateroffducksback") then
	if not self.inst:HasTag("likewateroffducksback") then
		self.inst.components.inventoryitem:MakeMoistureAtLeast(TUNING.OCEAN_WETNESS)
	end
	local oldtemperature = self.inst.components.inventoryitem:GetTemperaturePercent()
	self.inst.components.inventoryitem:SetTemperaturePercentAtMost(TUNING.OCEAN_TEMPERATURE_PENALTY_PERCENT)
	local newtemperature = self.inst.components.inventoryitem:GetTemperaturePercent()
	if oldtemperature - newtemperature > TUNING.FLOATER_HOT_SIZZLE_THRESHOLD then
		hotsplash = true
	end
end

 


Steps to Reproduce

Self-explanatory.

  • Big Ups 1



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...