第88页:蜂箱快速产蜂蜜
展开八十八.蜂箱快速产蜂蜜
用记事本打开游戏目录\data\DLC0001\scripts\prefabs\beebox.lua文件,
1.将下列内容:
inst.components.harvestable:SetGrowTime(TUNING.BEEBOX_HONEY_TIME)
inst.components.harvestable:StartGrowing()
end
end
end
local function stopsleep(inst)
if not inst:HasTag("burnt") then
if inst.components.harvestable then
inst.components.harvestable:SetGrowTime(nil)
inst.components.harvestable:StopGrowing()
替换为:
inst.components.harvestable:SetGrowTime(TUNING.BEEBOX_HONEY_TIME*.01)
inst.components.harvestable:StartGrowing()
end
end
end
local function stopsleep(inst)
if not inst:HasTag("burnt") then
if inst.components.harvestable then
inst.components.harvestable:SetGrowTime(TUNING.BEEBOX_HONEY_TIME*.01)
inst.components.harvestable:StartGrowing()
2.将inst:ListenForEvent( "dusktime", StopSpawningFn(inst), GetWorld())替换为inst:ListenForEvent( "dusktime", StartSpawningFn(inst), GetWorld())
即可让蜂箱快速产蜂蜜,几秒钟一箱就满了
更多相关内容请关注:饥荒专区
责任编辑:Shy夏夏