Quantcast
Channel: [Don't Starve Together] Suggestions and Feedback Latest Topics
Viewing all articles
Browse latest Browse all 8116

Thulecite Club and Ham Bat as hammers

$
0
0

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)

Viewing all articles
Browse latest Browse all 8116

Trending Articles