饥荒实用修改技巧更新 下载本文

六十七.自养高鸟不用喂食(不要与喂自养高鸟产便便同时修改)

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

inst:AddComponent("hunger")

inst.components.hunger:SetMax(TUNING.SMALLBIRD_HUNGER)

inst.components.hunger:SetRate(TUNING.SMALLBIRD_HUNGER/TUNING.SMALLBIRD_STARVE_TIME) inst.components.hunger:SetKillRate(TUNING.SMALLBIRD_HEALTH/TUNING.SMALLBIRD_STARVE_KILL_TIME)

inst.components.hunger:SetMax(TUNING.TEENBIRD_HUNGER)

inst.components.hunger:SetRate(TUNING.TEENBIRD_HUNGER/TUNING.TEENBIRD_STARVE_TIME) inst.components.hunger:SetKillRate(TUNING.TEENBIRD_HEALTH/TUNING.TEENBIRD_STARVE_KILL_TIME)

修改为:

--inst:AddComponent("hunger")

--inst.components.hunger:SetMax(TUNING.SMALLBIRD_HUNGER)

--inst.components.hunger:SetRate(TUNING.SMALLBIRD_HUNGER/TUNING.SMALLBIRD_STARVE_TIME)

--inst.components.hunger:SetKillRate(TUNING.SMALLBIRD_HEALTH/TUNING.SMALLBIRD_STARVE_KILL_TIME)

--inst.components.hunger:SetMax(TUNING.TEENBIRD_HUNGER)

--inst.components.hunger:SetRate(TUNING.TEENBIRD_HUNGER/TUNING.TEENBIRD_STARVE_TIME) --inst.components.hunger:SetKillRate(TUNING.TEENBIRD_HEALTH/TUNING.TEENBIRD_STARVE_KILL_TIME)

即可让自养高鸟不用喂食

六十八.牙齿陷阱不伤害自养高鸟

用记事本打开游戏目录\\data\\scripts\\prefabs\\trap_teeth.lua文件,将if target then替换为if target and not target:HasTag("smallbird") then即可

六十九.主角带肉不被兔人攻击

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

文件,将

if

guy:HasTag("player")替换为if guy:HasTag("monster")即可,注意替换的只是

一句中的一部分,语句其他部分不要动

七十.猪人永久跟随

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

--inst.components.follower:AddLoyaltyTime(item.components.edible:GetHunger() TUNING.PIG_LOYALTY_PER_HUNGER)

2.将inst.components.follower.maxfollowtime = TUNING.PIG_LOYALTY_MAXTIME替换为以下内容:

--inst.components.follower.maxfollowtime = TUNING.PIG_LOYALTY_MAXTIME

即可让猪人永久跟随,饿了也不会离开。但晚上一样需要给它点火,它会呆在火旁,到白天继续跟随

七十一.喂鸟疯肉得宝石

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

1.将if item.prefab == "egg" or item.prefab == "bird_egg" or item.prefab == "rottenegg" or item.prefab == "monstermeat" then替换为以下内容:

if item.prefab == "egg" or item.prefab == "bird_egg" or item.prefab == "rottenegg" then

2.在inst:DoTaskInTime(60*FRAMES, function()的下一行插入以下内容:

if item.prefab == "monstermeat" then

inst.components.lootdropper:SpawnLootPrefab("redgem") inst.components.lootdropper:SpawnLootPrefab("bluegem")

*

inst.components.follower:AddLoyaltyTime(item.components.edible:GetHunger()

*

TUNING.PIG_LOYALTY_PER_HUNGER)替换为以下内容:

inst.components.lootdropper:SpawnLootPrefab("orangegem") inst.components.lootdropper:SpawnLootPrefab("yellowgem") inst.components.lootdropper:SpawnLootPrefab("greengem") inst.components.lootdropper:SpawnLootPrefab("purplegem") end

即可给鸟笼中的鸟喂疯肉得宝石。修改其中redgem、bluegem、orangegem、yellowgem、greengem、purplegem宝石名称为其他物品名称,即可喂鸟吃疯肉得其他物品

七十二.农田收获更多产品

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

harvester.components.inventory:GiveItem(product) 替换为:

harvester.components.inventory:GiveItem(SpawnPrefab(self.product_prefab)) harvester.components.inventory:GiveItem(SpawnPrefab(self.product_prefab)) harvester.components.inventory:GiveItem(SpawnPrefab(self.product_prefab))

即可一次收获

七十三.农作物1秒长出来

1.用记事本打开游戏目录\\data\\scripts\\prefabs\\seeds.luainst.components.plantable.growtime

2.用记事本打开游戏目录\\data\\scripts\\prefabs\\veggies.luainst.components.plantable.growtime

即可让所有农作物1秒长出

七十四.晾肉无需等待(将肉放在晾肉架上即干)

=

TUNING.SEEDS_GROW_TIME

inst.components.plantable.growtime = TUNING.SEEDS_GROW_TIME*0

文件,将修

=

TUNING.SEEDS_GROW_TIME

inst.components.plantable.growtime = TUNING.SEEDS_GROW_TIME*0

文件,将修

3

个产品,想收获多少,就复制多少行

harvester.components.inventory:GiveItem(SpawnPrefab(self.product_prefab))即可

1.用记事本打开游戏目录\\data\\scripts\\prefabs\\meats.luainst.components.dryable:SetDryTime(TUNING.DRY_FAST)inst.components.dryable:SetDryTime(TUNING.DRY_FAST*0) 将

2.用记事本打开游戏目录\\data\\scripts\\prefabs\\fish.luainst.components.dryable:SetDryTime(TUNING.DRY_FAST)inst.components.dryable:SetDryTime(TUNING.DRY_FAST*0)

3.用记事本打开游戏目录\\data\\scripts\\prefabs\\froglegs.luainst.components.dryable:SetDryTime(TUNING.DRY_FAST)inst.components.dryable:SetDryTime(TUNING.DRY_FAST*0)

即可晾肉无需等待,包括肉类、鱼、蛙腿

七十五.煮一锅收多个料理

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

if loot and loot.components.perishable then

loot.components.perishable:SetPercent( self.product_spoilage) end harvester.

components.inventory:GiveItem(loot, Vector3(TheSim:GetScreenPos(self.inst.Transform:GetWorldPosition()))) 替换为:

local pt = Vector3(TheSim:GetScreenPos(self.inst.Transform:GetWorldPosition())) harvester.components.inventory:GiveItem(SpawnPrefab(self.product), nil, pt) harvester.components.inventory:GiveItem(SpawnPrefab(self.product), nil, pt) harvester.components.inventory:GiveItem(SpawnPrefab(self.product), nil, pt)

即可煮一锅收

3

个料理,想收多少,就复制多少行

harvester.components.inventory:GiveItem(SpawnPrefab(self.product), nil, pt)即可

nil,

文件,将改

文件,将改

inst.components.dryable:SetDryTime(TUNING.DRY_MED)

inst.components.dryable:SetDryTime(TUNING.DRY_MED*0)

文件,将共三句