Don't Starve Revision History Viewer

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

actions.lua

777879808182
CASTSPELL = Action(0, false, true, 20), BLINK = Action(10, false, true, 36), COMBINESTACK = Action(), } for k,v in pairs(ACTIONS) do
77787980818283
CASTSPELL = Action(0, false, true, 20), BLINK = Action(10, false, true, 36), COMBINESTACK = Action(), TOGGLE_DEPLOY_MODE = Action(), } for k,v in pairs(ACTIONS) do
136137138139140141142
end ACTIONS.PICKUP.fn = function(act) if act.doer.components.inventory and act.target.components.inventoryitem then act.doer:PushEvent("onpickup", {item = act.target}) --special case for trying to carry two backpacks
137138139140141142143
end ACTIONS.PICKUP.fn = function(act) if act.doer.components.inventory and act.target and act.target.components.inventoryitem and not act.target:IsInLimbo() then act.doer:PushEvent("onpickup", {item = act.target}) --special case for trying to carry two backpacks
211212213214215216217218
ACTIONS.DROP.strfn = function(act) if act.invobject and act.invobject.components.trap then return "SETTRAP" elseif act.invobject and act.invobject:HasTag("mine") then return "SETMINE" end end
212213214215216217218219
ACTIONS.DROP.strfn = function(act) if act.invobject and act.invobject.components.trap then return "SETTRAP" elseif act.invobject and act.invobject.prefab == "pumpkin_lantern" then return "PLACELANTERN" end end
233234235236237238239240
ACTIONS.READ.fn = function(act) local targ = act.target or act.invobject if targ and targ.components.book and act.doer and act.doer.components.reader then act.doer.components.reader:Read(targ) return true end end
234235236237238239240
ACTIONS.READ.fn = function(act) local targ = act.target or act.invobject if targ and targ.components.book and act.doer and act.doer.components.reader then return act.doer.components.reader:Read(targ) end end
290291292293294295296297
end end ACTIONS.CHOP.fn = function(act) if act.target.components.workable and act.target.components.workable.action == ACTIONS.CHOP then local numworks = 1
290291292293294295
end end ACTIONS.CHOP.fn = function(act) if act.target.components.workable and act.target.components.workable.action == ACTIONS.CHOP then local numworks = 1
524525526527528529530
act.target.components.container:Open(act.doer) end if not act.target.components.container:GiveItem(item) then act.doer.components.inventory:GiveActiveItem(item) return false end
522523524525526527528
act.target.components.container:Open(act.doer) end if not act.target.components.container:GiveItem(item,nil,nil,false) then act.doer.components.inventory:GiveActiveItem(item) return false end