楗ヨ崚瀹炵敤淇敼鎶宸ф洿鏂?- 鐧惧害鏂囧簱 联系客服

发布时间 : 星期日 文章楗ヨ崚瀹炵敤淇敼鎶宸ф洿鏂?- 鐧惧害鏂囧簱更新完毕开始阅读b2dc19f4bb68a98270fefa1a

七十六.缩短煮料理时间

用记事本打开游戏目录\\data\\scripts\\tuning.lua文件,将BASE_COOK_TIME = night_time*.3333,修改为BASE_COOK_TIME = seg_time*.01,即可

七十七.缩短钓鱼时间

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

FISHING_MINWAIT = 2, FISHING_MAXWAIT = 20, 修改为:

FISHING_MINWAIT = 1, FISHING_MAXWAIT = 5,

即可缩短钓鱼时间

七十八.收获蜂箱不被蛰

用记事本打开游戏目录\\data\\scripts\\prefabs\\beebox.luainst.components.childspawner:ReleaseAllChildren(picker)替换为以下内容:

--inst.components.childspawner:ReleaseAllChildren(picker)

即可在收获蜂箱时不飞出蜜蜂

七十九.空手抓蜜蜂、杀人蜂、蝴蝶、萤火虫(用橙色护身符可以快速吸取)

1.空手抓蜜蜂、杀人蜂:用记事本打开游戏目录\\data\\scripts\\prefabs\\bee.lua文件,将inst.components.inventoryitem.canbepickedup inst.components.inventoryitem.canbepickedup = true

2.空手抓蝴蝶:用记事本打开游戏目录\\data\\scripts\\prefabs\\butterfly.lua文件,将

=

false

文件,将

inst.components.inventoryitem.canbepickedup inst.components.inventoryitem.canbepickedup = true

= false替换为

3.空手抓萤火虫:用记事本打开游戏目录\\data\\scripts\\prefabs\\fireflies.lua文件,将inst.components.inventoryitem.canbepickedup inst.components.inventoryitem.canbepickedup = true

即可空手抓蜜蜂、杀人蜂、蝴蝶、萤火虫(用小网也太娘了吧)

八十.装备捕鸟器可吸鸟(它绝不罕有,往街里绕过一周,它便化乌有)

1.用记事本打开游戏目录\\data\\scripts\\prefabs\\birdtrap.lua文件,在--this should be redone as a periodic test, probably, so that we can control the expected return explicitly的下一行插入以下内容:

local function SpawnEffect(inst) local pt = inst:GetPosition()

local fx = SpawnPrefab("small_puff") fx.Transform:SetPosition(pt.x, pt.y, pt.z) fx.Transform:SetScale(0.5,0.5,0.5) end

local function getitem(player, amulet, item) SpawnEffect(item)

if item.components.stackable then item = item.components.stackable:Get() end

player.components.invento

ry:GiveItem(item) end

local function pickup(inst, owner) local pt = owner:GetPosition()

local ents = TheSim:FindEntities(pt.x, pt.y, pt.z, TUNING.ORANGEAMULET_RANGE*5)

for k,v in pairs(ents) do if

v.components.inventoryitem

and

v.components.inventoryitem.canbepickedup

and

v.components.inventoryitem.cangoincontainer and v:HasTag("bird") and not v.components.inventoryitem:IsHeld() then

=

false

if not owner.components.inventory:IsFull() then getitem(owner, inst, v) return

elseif v.components.stackable then

local stack = owner.components.inventory:FindItem(function(item) return (item.prefab == v.prefab and not item.components.stackable:IsFull()

and item ~= owner.components.inventory.activeitem) end) if stack then

getitem(owner, inst, v) return end end end end end

local function onequip(inst, owner)

owner.AnimState:OverrideSymbol("swap_body", "swap_birdtrap")

inst.task = inst:DoPeriodicTask(TUNING.ORANGEAMULET_ICD*.1, function() pickup(inst, owner) end) end

local function onunequip(inst, owner)

owner.AnimState:ClearOverrideSymbol("swap_body") if inst.task then inst.task:Cancel() inst.task = nil end end

2.在inst:AddComponent("inventoryitem")的下一行插入以下内容:

inst:AddComponent("equippable") inst.components.equippable:SetOnEquip( onequip ) inst.components.equippable:SetOnUnequip( onunequip ) inst.components.equippable.equipslot = EQUIPSLOTS.BODY

3.用记事本打开游戏目录\\data\\scripts\\prefabs\\birds.luainst.components.inventoryitem.canbepickedup inst.components.inventoryitem.canbepickedup = true

4.在inst:AddComponent("occupier")的下一行插入以下内容:

=

false

文件,将

"swap_birdtrap",

inst:AddComponent("stackable")

inst.components.stackable.maxsize = TUNING.STACK_SIZE_SMALLITEM

即可装备捕鸟器可吸鸟

八十一.白天也能睡帐篷,睡帐篷不减饥饿

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

1.删除下列内容:

if GetClock():IsDay() then if sleeper.components.talker then

sleeper.components.talker:Say(GetString(inst.prefab, "ANNOUNCE_NODAYSLEEP")) return end end

2.删除下列内容:

if GetClock():IsDay() then

if sleeper.components.talker then

sleeper.components.talker:Say(GetString(inst.prefab, "ANNOUNCE_NODAYSLEEP")) sleeper.components.health:SetInvincible(false) sleeper.components.playercontroller:Enable(true) return end end 3.将

即可白天也能睡帐篷,睡帐篷不减饥饿

sleeper.components.hunger:DoDelta(-TUNING.CALORIES_HUGE,

false,

true)替换为

--sleeper.components.hunger:DoDelta(-TUNING.CALORIES_HUGE, false, true)