第114页:南瓜灯永不坏
展开一一四.南瓜灯永不坏(无限使用)
用记事本打开游戏目录\data\scripts\prefabs\pumpkin_lantern.lua文件,
1.将共2句inst.components.perishable:StopPerishing()均替换为--inst.components.perishable:StopPerishing()
2.将下列内容:
inst:AddComponent("perishable")
inst.components.perishable:SetPerishTime(30*TUNING.SEG_TIME)
inst.components.perishable:SetOnPerishFn(onperish)
inst.components.inventoryitem:SetOnDroppedFn(function(inst)
inst.components.perishable:StartPerishing()
替换为:
--inst:AddComponent("perishable")
--inst.components.perishable:SetPerishTime(30*TUNING.SEG_TIME)
--inst.components.perishable:SetOnPerishFn(onperish)
inst.components.inventoryitem:SetOnDroppedFn(function(inst)
--inst.components.perishable:StartPerishing()
即可让南瓜灯无限使用
更多相关内容请关注:饥荒专区
责任编辑:Shy夏夏