饥荒可种兔子洞mod

如题所述

第1个回答  2015-07-22
不用mod,修改就行。
用记事本打开游戏目录\data\DLC0001\scripts\prefabs\rabbit.lua文件,在inst:AddComponent("inspectable")的下一行插入以下内容:
  local function OnDeploy (inst, pt)
  SpawnPrefab("rabbithole").Transform:SetPosition(pt.x, pt.y, pt.z)
  inst.components.stackable:Get():Remove()
  end
  inst:AddComponent("deployable")
  inst.components.deployable.ondeploy = OnDeploy
  inst:AddComponent("stackable")
  inst.components.stackable.maxsize = TUNING.STACK_SIZE_LARGEITEM
  即可种兔子得兔子洞、兔子可堆叠本回答被提问者采纳
相似回答