饥荒实用修改技巧更新

内容发布更新时间 : 2024/12/23 22:58:47星期一 下面是文章的全部内容请认真阅读。

八十二.用腐烂食物种出池塘

用记事本打开游戏目录\\data\\scripts\\prefabs\\spoiledfood.lua

local function OnDeploy (inst, pt)

local pond = SpawnPrefab("pond") if pond then

pond:PushEvent("growfromspoiledfood") pond.Transform:SetPosition(pt.x, pt.y, pt.z) inst.components.stackable:Get():Remove() end end

inst:AddComponent("deployable") inst.components.deployable.ondeploy = OnDeploy

即可用腐烂食物种出池塘

八十三.用铲子挖掉池塘

用记事本打开游戏目录\\data\\scripts\\prefabs\\pond.lua文件,

1.在下列内容的下一行:

local prefabs = {

"marsh_plant", "fish", "frog", "mosquito", }

插入以下内容:

local function dig_up(inst, chopper) inst:Remove() end

文件,在

inst.components.edible.hungervalue = TUNING.SPOILED_HUNGER的下一行插入下列内容:

2.在inst.components.fishable:SetRespawnTime(TUNING.FISH_RESPAWN_TIME)的下一行插入以下内容:

inst:AddComponent("workable")

inst.components.workable:SetWorkAction(ACTIONS.DIG) inst.components.workable:SetOnFinishCallback(dig_up) inst.components.workable:SetWorkLeft(1)

即可将池塘用铲子挖掉

八十四.除掉全部企鹅及企鹅冰(世界从此清静了) 用

\\data\\scripts\\prefabs\\forest.lua

文换

将为

inst:AddComponent("penguinspawner")鹅不会再生

八十五.延长燃料燃烧时间

用记事本打开游戏目录\\data\\scripts\\tuning.lua文件,将以下内容: TINY_FUEL = seg_time*.25, SMALL_FUEL = seg_time * .5, MED_FUEL = seg_time * 1.5, MED_LARGE_FUEL = seg_time * 3, LARGE_FUEL = seg_time * 6, 修改为:

TINY_FUEL = seg_time*1.25, SMALL_FUEL = seg_time * 2.5, MED_FUEL = seg_time * 7.5, MED_LARGE_FUEL = seg_time * 12, LARGE_FUEL = total_day_time*1,

游戏中seg_time(小时)数不要超过16,会跳出。如果想改超过一天就用total_day_time*1,这样的格式

--inst:AddComponent("penguinspawner")即可,存档中已经上岸的企鹅请手动消灭,企

联系客服:779662525#qq.com(#替换为@) 苏ICP备20003344号-4 ceshi