当前位置: 18183首页 > 饥荒 > 海难DLC >

饥荒海难黑曜石科技重复制造方法分享

来源: 18183

责任编辑: 7把刀

发布时间: 2016-05-24 14:46:55

饥荒》海难黑曜石科技不需要工作台怎么制造?下面小编为你带来黑曜石科技重复制造方法,一起来看吧!

饥荒海难的黑曜石科技没有办法重复制造,即他不像其他科技一样,制造一个原型体后,即可不依靠科技建筑重复制造,而是一直要在黑曜石工作台身边才能制造。再此,提供一个修改方法。

打开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)

即可。

热门游戏

关于我们 | 联系我们| 加入我们 | 网站地图| 自助投稿