Jump to content

Thulecite Club and Ham Bat as hammers


Recommended Posts

Thulecite Club is twice as efficient

Ham Bat scales from half to quarter efficiency

1085238644_GIF10-May-2118-11-45.gif.28552f2910647c1a1bdb3d217f4b16cc.gif

local function OnPerishChange(inst, data)
	local mod = TUNING.HAMBAT_MIN_DAMAGE_MODIFIER
	inst.components.tool:SetAction(ACTIONS.HAMMER, Remap(mod * data.percent, 0, mod, mod ^ 2, mod))
end

inst:AddComponent("tool")
inst.components.tool:SetAction(ACTIONS.HAMMER, TUNING.HAMBAT_MIN_DAMAGE_MODIFIER)
	
inst:ListenForEvent("perishchange", OnPerishChange)
inst:AddComponent("tool")
inst.components.tool:SetAction(ACTIONS.HAMMER, 2)
	
inst.components.finiteuses:SetConsumption(ACTIONS.HAMMER, 1)
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...