《饑荒》海難黑曜石科技我們都知道只能在工作臺(tái)制造,離開(kāi)工作臺(tái)后就不可以了,但是我們的玩家總是有驚喜,這不為大家?guī)?lái)了饑荒海難黑曜石科技重復(fù)制造方法,而且不需要工作臺(tái)哦,小伙伴們想不想知道是怎么組到的呢?一起來(lái)看看吧。
饑荒海難的黑曜石科技沒(méi)有辦法重復(fù)制造,即他不像其他科技一樣,制造一個(gè)原型體后,即可不依靠科技建筑重復(fù)制造,而是一直要在黑曜石工作臺(tái)身邊才能制造。再此,提供一個(gè)修改方法。
打開(kāi)dont_starve\data\DLC0002\scripts\prefabs\obsidian_workbench.lua文件。
在
inst.components.prototyper.trees = TUNING.PROTOTYPER_TREES.OBSIDIAN_BENCH
inst.components.prototyper.onactivate = function()
inst.AnimState:PlayAnimation("use")
inst.AnimState:PushAnimation("proximity_loop", true)
end
之后添加
inst:ListenForEvent( "onbuilt", function()
inst.components.prototyper.on = true
anim:PlayAnimation("place")
anim:PushAnimation("idle")
anim:PushAnimation("proximity_loop", true)
inst:DoTaskInTime(sounddelay, function()
inst.SoundEmitter:PlaySound("dontstarve/common/researchmachine_"..soundprefix.."_place")
inst.SoundEmitter:PlaySound("dontstarve/common/researchmachine_"..soundprefix.."_idle_LP","idlesound")
end)
end)
即可。