Don't Starve Revision History Viewer

Comparing Six Feet Under (Rev 86935) to All's Well That Maxwell (Rev 88237)

prefabs/woodie.lua

25262728293031323334353637
local function BeaverActionButton(inst) local attack_target = inst.components.playercontroller:GetAttackTarget() if attack_target then if inst.components.combat.target ~= attack_target or inst.sg:HasStateTag("idle") then return BufferedAction(inst, attack_target, ACTIONS.ATTACK) end end local action_target = FindEntity(inst, 6, function(guy) return (guy.components.edible and inst.components.eater:CanEat(guy)) or (guy.components.workable and inst.components.worker:CanDoAction(guy.components.workable.action)) end)
252627282930
local function BeaverActionButton(inst) local action_target = FindEntity(inst, 6, function(guy) return (guy.components.edible and inst.components.eater:CanEat(guy)) or (guy.components.workable and inst.components.worker:CanDoAction(guy.components.workable.action)) end)
182183184185186187188189
inst.components.beaverness:DoDelta(3) --local dist = easing.linear(inst.components.beaverness:GetPercent(), 0, .1, 1) --TheCamera:Shake("SIDE", .15, .05, dist*.66) else TheCamera:Shake("SIDE", .15, .05, .1) end end
175176177178179180181182
inst.components.beaverness:DoDelta(3) --local dist = easing.linear(inst.components.beaverness:GetPercent(), 0, .1, 1) --TheCamera:Shake("SIDE", .15, .05, dist*.66) --else --TheCamera:Shake("SIDE", .15, .05, .1) end end