第一范文网 - 专业文章范例文档资料分享平台

饥荒实用修改技巧更新

来源:用户分享 时间:2025/5/26 7:28:14 本文由loading 分享 下载这篇文档手机版
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:xxxxxxx或QQ:xxxxxx 处理(尽可能给您提供完整文档),感谢您的支持与谅解。

二十七.盔甲不用尽(用到剩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即可

搜索更多关于: 饥荒实用修改技巧更新 的文档
饥荒实用修改技巧更新.doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.diyifanwen.net/c6z8k99jrl46m3qo9y5ne_5.html(转载请注明文章来源)
热门推荐
Copyright © 2012-2023 第一范文网 版权所有 免责声明 | 联系我们
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:xxxxxx 邮箱:xxxxxx@qq.com
渝ICP备2023013149号
Top