饥荒实用修改技巧更新

发布时间 : 星期二 文章饥荒实用修改技巧更新更新完毕开始阅读

二十七.盔甲不用尽(用到剩0%不消失,可继续用)

用记事本打开游戏目录\\data\\scripts\\components\\armor.lua文件,将self.inst:Remove()修改为--self.inst:Remove()即可实现盔甲不用

二十八.火炬不用尽(用到剩0%不消失,可继续用)

用记事本打开游戏目录\\data\\scripts\\prefabs\\torch.lua文件,依次查找以下内容: inst:Remove()

inst.components.fueled:SetDepletedFn(function(inst) inst:Remove() end) 修改为: --inst:Remove()

--inst.components.fueled:SetDepletedFn(function(inst) inst:Remove() end)

即可让火炬不用尽,在语句前加入--的功能就是将该句废掉

二十九.矿工灯无限使用

用记事本打开游戏目录\\data\\scripts\\prefabs\\hats.lua文件,先查找local function miner()后,再向下查找以下内容:

inst:AddComponent("fueled")

inst.components.fueled.fueltype = "MINERHAT"

inst.components.fueled:InitializeFuelLevel(TUNING.MINERHAT_LIGHTTIME) inst.components.fueled:SetDepletedFn(miner_perish) 修改为:

--inst:AddComponent("fueled")

--inst.components.fueled.fueltype = "MINERHAT"

--inst.components.fueled:InitializeFuelLevel(TUNING.MINERHAT_LIGHTTIME) --inst.components.fueled:SetDepletedFn(miner_perish)

即可让矿工灯无限使用

三十.提灯可以点50天

用记事本打开游戏目录\\data\\scripts\\tuning.lua文件,依次查找以下内容: MED_LARGE_FUEL = seg_time * 3,

LANTERN_LIGHTTIME = (night_time+dusk_time)*2.6, 修改为:

MED_LARGE_FUEL = total_day_time*50, LANTERN_LIGHTTIME = total_day_time*50,

即可使提灯可以点50天,当然改999天也行

三十一.南瓜灯永不坏(无限使用)

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

三十二.石头营火永不灭(保留最小长明火)

用记事本打开游戏目录\\data\\scripts\\prefabs\\firepit.lua文件,将if section == 0 then修改为if section < 0 then即可

三十三.用草种个小太阳(黑夜变白昼,可烧烤食物,适用18版)

1.用记事本打开游戏目录\\data\\scripts\\prefabs\\cutgrass.luainst:AddComponent("inspectable")的下一行插入以下内容:

local function OnDeploy (inst, pt)

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

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

文件,在文件,将

inst.components.perishable:StartPerishing()修改为inst.components.perishable:StopPerishing()即可

end

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

2.用记事本打开游戏目录\\data\\scripts\\prefabs\\stafflight.lua文件,将下列内容:

local rad = Lerp(4, 5, s)

local intentsity = Lerp(0.8, 0.7, s)

替换为以下内容:

local rad = Lerp(4, 50, 1) local intentsity = Lerp(0.8, 0.7, 1)

3.将inst.init_time = 1

20替换为inst.init_time = 360

4.将inst.components.propagator.heatoutput = 15替换为inst.components.propagator.heatoutput = 0

三十四.锅可随身携带

1.用记事本打开游戏目录\\data\\scripts\\prefabs\\cookpot.lua文件,在下列内容:

local function onbuilt(inst)

inst.AnimState:PlayAnimation("place") inst.AnimState:PushAnimation("idle_empty") end

的下一行插入以下内容:

local function onequip(inst, owner)

owner.AnimState:OverrideSymbol("swap_body", "swap_body") end

local function onunequip(inst, owner)

owner.AnimState:ClearOverrideSymbol("swap_body")

"swap_backpack",

end

local function turnon(inst)

inst.components.machine.ison = true

inst:AddComponent("inventoryitem") end

local function turnoff(inst)

inst.components.machine.ison = false

inst:RemoveComponent("inventoryitem") end

local function ondropped(inst) turnoff(inst) turnon(inst) end

2.在inst.AnimState:PlayAnimation("idle_empty")的下一行插入以下内容:

inst:AddComponent("machine") inst.components.machine.turnonfn = turnon inst.components.machine.turnofffn = turnoff

inst:AddComponent("equippable") inst.components.equippable:SetOnEquip( onequip ) inst.components.equippable:SetOnUnequip( onunequip )

对放在地上的锅按鼠标右键解除固定,即可将锅随身携带。要煮东西时,先把锅放在地上,再对其按鼠标右键固定后,就可正常使用

三十五.保温石保温时间延长1倍

用记事本打开游戏目录\\data\\scripts\\prefabs\\heatrock.luainst.components.temperature.inherentinsulation

三十六.魔杖、护身符无限使用

=

TUNING.INSULATION_MED

文件,将

inst.components.temperature.inherentinsulation = TUNING.INSULATION_MED*2即可

联系合同范文客服:xxxxx#qq.com(#替换为@)