inst.components.inventoryitem.cangoincontainer = true
2.同时携带多个小猪包:用记事本打开游戏目录\\data\\scripts\\prefabs\\piggyback.lua文件,将inst.components.inventoryitem.cangoincontainer = false替换为inst.components.inventoryitem.cangoincontainer = true
3.同时携带多个坎普斯背包:用记事本打开游戏目录\\data\\scripts\\prefabs\\krampus_sack.lua文件,将inst.components.inventoryitem.cangoincontainer = false替换为inst.components.inventoryitem.cangoincontainer = true
即可同时携带多个背包
二十三.背包格子增大至39格
用记事本打开游戏目录\\data\\scripts\\prefabs\\backpack.lua文件,
1.将下列内容:
for y = 0, 3 do table.insert(slotpos, Vector3(-162, -y*75 + 114 ,0)) table.insert(slotpos, Vector3(-162 +75, -y*75 + 114 ,0))
替换为:
for y = 0, 12 do table.insert(slotpos, Vector3(-162, -y*75 + 435 ,0)) table.insert(slotpos, Vector3(-162 +75, -y*75 + 435 ,0)) table.insert(slotpos, Vector3(-162 +150, -y*75 + 435 ,0))
2.将下列内容:
inst.components.container.widgetanimbank = \ inst.components.container.widgetanimbuild = \ inst.components.container.widgetpos = Vector3(-5,-50,0)
替换为:
--inst.components.container.widgetanimbank = \ --inst.components.container.widgetanimbuild = \ inst.components.container.widgetpos = Vector3(-25,-50,0)
即可让普通背包格子增大至39格
二十四.制造坎普斯背包(18版及以后游戏使用)
用记事本打开游戏目录\\data\\scripts\\recipes.lua文件,在Recipe(\{Ingredient(\4), Ingredient(\6), Ingredient(\2)}, RECIPETABS.SURVIVAL, TECH.SCIENCE_TWO)的下一行插入以下内容:
Recipe(\{Ingredient(\5),Ingredient(\5)}, RECIPETABS.SURVIVAL, TECH.NONE)
即可在生存选项下(画着绳套)下用5个草、5个树杈制造坎普斯背包
二十五.伍迪砍树不会变海狸
用记事本打开游戏目录\\data\\scripts\\prefabs\\woodie.lua文件,将inst.components.beaverness:DoDelta(3)替换为inst.components.beaverness:DoDelta(0)
即可让伍迪砍树不会变海狸
二十六.伍迪吃疯肉立即变海狸且随身物品不掉落
用记事本打开游戏目录\\data\\scripts\\prefabs\\woodie.lua文件,
1.将inst.components.inventory:DropEverything()替换为--inst.components.inventory:DropEverything()
2.在inst.Light:SetColour(245/255,40/255,0/255)的下一行插入以下内容:
local function OnEat(inst, food)
if food.prefab == \ if not inst.components.beaverness.doing_transform then inst.components.beaverness:SetPercent(1) end end end
inst.components.eater:SetOnEatFn(OnEat)
即可让伍迪吃疯肉立即变海狸,随身物品还保留在身上(只是看不见),等变回伍迪即可使用。不要在伍迪佩戴橙色护身符时变海狸,否则砍的木头都自动被吸走,海狸无法吃到
二十七.图书管理员不再失眠(老太太可以睡帐篷)
用记事本打开游戏目录\\data\\scripts\\prefabs\\wickerbottom.lua文件,将inst:AddTag(\替换为--inst:AddTag(\
即可让老太太也可以睡帐篷
二十八.麦斯威尔用魔法书召唤分身不减脑上限(22版及以后游戏使用)
1.用记事本打开游戏目录\\data\\scripts\\prefabs\\waxwelljournal.lua文件,将reader.components.sanity:RecalculatePenalty()替换为--reader.components.sanity:RecalculatePenalty()
2.用记事本打开游戏目录\\data\\scripts\\prefabs\\shadowwaxwell.lua文件,将下列内容:
inst:ListenForEvent(\ inst:AddComponent(\
inst.components.inventory.dropondeath = false
inst:AddComponent(\
inst.components.sanityaura.penalty = TUNING.SHADOWWAXWELL_SANITY_PENALTY
替换为:
--inst:ListenForEvent(\ inst:AddComponent(\
inst.components.inventory.dropondeath = false
--inst:AddComponent(\
--inst.components.sanityaura.penalty = TUNING.SHADOWWAXWELL_SANITY_PENALTY
即可在麦斯威尔用魔法书召唤分身时不减脑上限
二十九.全部物品无限使用(工具、武器、盔甲、魔杖、护身符、衣服、帽子、照明物品等全部无限使用,89685版及以后游戏使用)
1.用记事本打开游戏目录\\data\\scripts\\widgets\\itemtile.lua文件,将下列内容:
if invitem.components.fueled then
self:SetPercent(invitem.components.fueled:GetPercent()) end
if invitem.components.finiteuses then
self:SetPercent(invitem.components.finiteuses:GetPercent()) end
if invitem.components.perishable then
if self:HasSpoilage() then
self:SetPerishPercent(invitem.components.perishable:GetPercent()) else
self:SetPercent(invitem.components.perishable:GetPercent()) end end
if invitem.components.armor then
self:SetPercent(invitem.components.armor:GetPercent()) end
替换为:
--if invitem.components.fueled then
--self:SetPercent(invitem.components.fueled:GetPercent()) --end
--if invitem.components.finiteuses then
--self:SetPercent(invitem.components.finiteuses:GetPercent()) --end
if invitem.components.perishable then if self:HasSpoilage() then
self:SetPerishPercent(invitem.components.perishable:GetPercent()) else
self:SetPercent(invitem.components.perishable:GetPercent()) end end
--if invitem.components.armor then
--self:SetPercent(invitem.components.armor:GetPercent()) --end
2.用记事本打开游戏目录\\data\\scripts\\components\\finiteuses.lua文件,将self:SetUses(self.current - (num or 1))替换为self:SetUses(self.current - 0)
3.用记事本打开游戏目录\\data\\scripts\\components\\fueled.lua文件,将self.consuming = true替换为self.consuming = false
4.用记事本打开游戏目录\\data\\scripts\\components\\armor.lua文件,将下列内容:
function Armor:SetCondition(amount) self.condition = amount
替换为:
function Armor:SetCondition(amount) self.condition = self.maxcondition
即可让全部物品无限使用。其中火堆和石头营火会无限燃烧,直到睡过帐篷或下地洞后熄灭
三十.修改装备使用次数及时间
用记事本打开游戏目录\\data\\scripts\\tuning.lua文件,分别查找以下内容:
斧头 AXE_USES = 100, 锤 HAMMER_USES = 75, 铲子 SHOVEL_USES = 25, 草叉 PITCHFORK_USES = 25, 镐 PICKAXE_USES = 33, 捕虫网 BUGNET_USES = 10, 矛 SPEAR_USES = 150, 狼牙棒 SPIKE_USES = 100,
鱼杆 FISHINGROD_USES = 9, 陷阱 TRAP_USES = 8,
回旋镖 BOOMERANG_USES = 10, 暗影剑 NIGHTSWORD_USES = 100, 冰魔杖 ICESTAFF_USES = 20, 火魔杖 FIRESTAFF_USES = 20, 传送魔杖 TELESTAFF_USES = 5, 黄色魔杖 YELLOWSTAFF_USES = 20, 橙色魔杖 ORANGESTAFF_USES = 20, 绿色魔杖 GREENSTAFF_USES = 5, 火腿棍棒 HAMBAT_USES = 100, 蝙蝠棒 BATBAT_USES = 75,
多功能工具斧头和锄头 MULTITOOL_AXE_PICKAXE_USES = 400, 遗迹短棍 RUINS_BAT_USES = 150, 红色护身符 REDAMULET_USES = 20, 蓝色护身符 BLUEAMULET_FUEL = total_day_time * 0.75, 紫色护身符 PURPLEAMULET_FUEL = total_day_time * 0.4, 黄色护身符 YELLOWAMULET_FUEL = total_day_time, 橙色护身符 ORANGEAMULET_USES = 225, 绿色护身符 GREENAMULET_USES = 5, 排箫 PANFLUTE_USES = 10, 牛角 HORN_USES = 10, 牙齿陷阱 TRAP_TEETH_USES = 10, 帐篷 TENT_USES = 6, 伞 UMBRELLA_USES = 20, 针线包 SEWINGKIT_USES = 5,
火炬 TORCH_FUEL = night_time*1.25,
矿工帽 MINERHAT_LIGHTTIME = (night_time+dusk_time)*2.6, 提灯 LANTERN_LIGHTTIME = (night_time+dusk_time)*2.6,