Jump to content

Warbot's missiles do not cause durability loss to Thermbells when striking them


Catapult 2.0
  • Fixed

  Thermbells should sustain durability damage when absorbing missile attacks


Steps to Reproduce
  1. Use a heated Thermbell to attract Warbot's missile attacks

  2. Observe the Thermbell's durability - it will remain unchanged

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

Oh, nice catch. Yeah the issue happens because the special handling cases for Thermal Stones (which does catch Thermal Dumbbells as they also have the "heatrock" tag) only checks for the fueled component to drain durability from there. Thermal Dumbbells use finiteuses instead.

An extra case handling with its own values needs to be added here:

elseif v:HasTag("heatrock") then
	if v.components.fueled then
		local pct = v.components.fueled:GetPercent()
		local deltapct = 2 / TUNING.HEATROCK_NUMUSES
		if pct < deltapct * 1.1 then
			local x1, y1, z1 = v.Transform:GetWorldPosition()
			v:Remove()
			v = SpawnPrefab("ash")
			v.Transform:SetPosition(x1, y1, z1)
		else
			v.components.fueled:SetPercent(pct - deltapct)
		end
	end

 

Share this comment


Link to comment
Share on other sites



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