饥荒实用修改技巧更新

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

inst.components.sleeper:AddSleepiness(10, TUNING.PANFLUTE_SLEEPTIME*1) end end

inst:AddComponent("tool") inst.components.tool:SetAction(ACTIONS.PLAY)

inst:AddComponent("instrument")

inst.components.instrument.range = TUNING.PANFLUTE_SLEEPRANGE*2 inst.components.instrument:SetOnHeardFn(HearPanFlute)

即可用芦苇吹出催眠曲。其中*1为催眠时间20秒,想催眠60秒就*3即可。其中*2为催眠范围30格,想扩大至60格就*4即可

四十.装备猪皮包能补脑

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

容:

inst:AddComponent("dapperness")

inst.components.dapperness.dapperness = TUNING.DAPPERNESS_HUGE

即可使猪皮包具备补脑功能

四十一.全人物可制造打火机(原来只有薇洛专用)

1.用记事本打开游戏目录\\data\\scripts\\recipes.lua文件,在Recipe("torch", {Ingredient("cutgrass",

2),Ingredient("twigs",

2)},

RECIPETABS.LIGHT,

TECH.NONE)的下一行插入Recipe("lighter", {Ingredient("goldnugget", 1),Ingredient("nitre", 1)}, RECIPETABS.LIGHT, TECH.NONE)

2.用记事本打开游戏目录\\data\\scripts\\prefabs\\lighter.lua文件,将inst:DoTaskInTime(0, function() if not GetPlayer() or GetPlayer().prefab ~= "willow" then inst:Remove() end end)修改为--inst:DoTaskInTime(0, function() if not GetPlayer() or GetPlayer().prefab ~= "willow" then

文件,在

inst:Remove() end end)

即可用1个金块、1个硝石在照明选项里制造打火机

四十二.全人物可制造伍迪的斧子(8下砍倒1棵树,普通斧子15下)

1.用记事本打开游戏目录\\data\\scripts\\recipes.lua文件,在Recipe("razor", {Ingredient("twigs",

2),

Ingredient("flint",

2)},

RECIPETABS.TOOLS,

TECH.SCIENCE_ONE)的下一行插入Recipe("Lucy", {Ingredient("twigs", 4), Ingredient("goldnugget", 4)}, RECIPETABS.TOOLS, TECH.SCIENCE_ONE)

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

inst:AddComponent("sentientaxe")

inst:DoTaskInTime(0, function() if not GetPlayer() or GetPlayer().prefab ~= "woodie" then inst:Remove() end end) 修改为:

--inst:AddComponent("sentientaxe")

--inst:DoTaskInTime(0, function() if not GetPlayer() or GetPlayer().prefab ~= "woodie" then inst:Remove() end end)

即可用4个树杈、4个金块在工具选项里制造伍迪的斧子

四十三.全人物可制造魔法书

1.用记事本打开游戏目录\\data\\scripts\\recipes.lua文件,在Recipe("batbat", {Ingredient("batwing", 下内容:

Recipe("book_birds", Recipe("book_gardening", Ingredient("seeds", TECH.MAGIC_TWO)

Recipe("book_sleep", Recipe("book_brimstone",

{Ingredient("papyrus", {Ingredient("papyrus",

2), 2),

Ingredient("nightmarefuel", 2)}, RECIPETABS.MAGIC, TECH.MAGIC_TWO)

1),

{Ingredient("papyrus", {Ingredient("papyrus",

Ingredient("poop",

1)},

2), 2),

Ingredient("bird_egg", 2)}, RECIPETABS.MAGIC, TECH.MAGIC_TWO)

RECIPETABS.MAGIC,

5),

Ingredient("livinglog",

2),

Ingredient("purplegem", 1)}, RECIPETABS.MAGIC, TECH.MAGIC_THREE)的下一行插入以

Ingredient("redgem", 1)}, RECIPETABS.MAGIC, TECH.MAGIC_TWO) Recipe("book_tentacles",

2.用记事本打开游戏目录\\data\\scripts\\prefabs\\player_common.luainst:AddComponent("temperature")inst:AddComponent("reader")

即可在魔法选项里制造魔法书

四十四.延长冰箱保鲜时间

用记事本

打开游戏目录\\data\\scripts\\tuning.lua文件,将PERISH_FRIDGE_MULT = .5修改为PERISH_FRIDGE_MULT = .01即可

四十五.背包可冷藏食品

1.普通背包可冷藏食品:用记事本打开游戏目录\\data\\scripts\\prefabs\\backpack.lua文件,在local inst = CreateEntity()的下一行插入inst:AddTag("fridge")

2.小猪包可冷藏食品:用记事本打开游戏目录\\data\\scripts\\prefabs\\piggyback.lua文件,在local inst = CreateEntity()的下一行插入inst:AddTag("fridge")

3.坎普斯背包可冷藏食品:用记事本打开游戏目录\\data\\scripts\\prefabs\\krampus_sack.lua文件,在local inst = CreateEntity()的下一行插入inst:AddTag("fridge")

即可让背包具备冷藏功能

四十六.种子腐烂变慢

用记事本打开游戏目录\\data\\scripts\\tuning.lua文件,将PERISH_SUPERSLOW =

文件,在插

{Ingredient("papyrus",

2),

Ingredient("tentaclespots", 1)}, RECIPETABS.MAGIC, TECH.MAGIC_TWO)

40*total_day_time*perish_warp,修改为PERISH_SUPERSLOW = 200*total_day_time*perish_warp,即可

四十七.穿墙术(都圈起来吧,不需要留门了)

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

1.在下列内容:

local function onremoveentity(inst) --print("walls - onremoveentity") clearobstacle(inst) end

的下一行插入以下内容:

local function turnon(inst)

inst.components.machine.ison = true clearobstacle(inst) end

local function turnoff(inst)

inst.components.machine.ison = false makeobstacle(inst) end

2.在inst.components.workable:SetOnWorkCallback(onhit)的下一行插入以下内容:

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

对墙按鼠标右键即可通过,再按鼠标右键则恢复墙的阻挡

四十八.增加墙的耐久力

用记事本打开游戏目录\\data\\scripts\\tuning.lua文件,将以下内容: HAYWALL_HEALTH = 100,

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