第104页:用铲子挖掉池塘
展开一零四.用铲子挖掉池塘
用记事本打开游戏目录\data\scripts\prefabs\pond.lua文件,在inst:AddComponent("inspectable")的下一行插入以下内容:
local function dig_up(inst, chopper)
inst:Remove()
end
inst:AddComponent("workable")
inst.components.workable:SetWorkAction(ACTIONS.DIG)
inst.components.workable:SetOnFinishCallback(dig_up)
inst.components.workable:SetWorkLeft(1)
即可用铲子挖掉池塘
更多相关内容请关注:饥荒专区
责任编辑:Shy夏夏