游民星空 > 攻略秘籍 > 攻略 > 正文

饥荒 全人物解锁及主角自动回血等实用修改教程

2015-01-21 11:28:46 来源:互联网 作者:易宁 我要投稿

第46页:树桩继续长成树

展开

四十六.树桩继续长成树

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

  1.将下列内容:

  local function chop_down_tree(inst, chopper)

  inst:RemoveComponent("burnable")

  MakeSmallBurnable(inst)

  inst:RemoveComponent("propagator")

  MakeSmallPropagator(inst)

  inst:RemoveComponent("workable")

  替换为:

  MakeLargeBurnable(inst)

  MakeLargePropagator(inst)

  2.将下列内容:

  RemovePhysicsColliders(inst)

  inst.AnimState:PushAnimation(inst.anims.stump)

  inst:AddComponent("workable")

  inst.components.workable:SetWorkAction(ACTIONS.DIG)

  inst.components.workable:SetOnFinishCallback(dig_up_stump)

  inst.components.workable:SetWorkLeft(1)

  inst:AddTag("stump")

  if inst.components.growable then

  inst.components.growable:StopGrowing()

  end

  替换为:

  inst.AnimState:PushAnimation(inst.anims.stump)

  即可让树桩继续长成树,取消用铲子挖树桩,如果不想要树桩了,烧掉即可。注意这种再生树不会烧成枯树,烧完只会剩一团灰。不要与“砍树无树桩”一同修改

更多相关内容请关注:饥荒专区

责任编辑:Shy夏夏

上一页 41 42 43 44 45 46 47 48 49 50 51 下一页
友情提示:支持键盘左右键“← →”翻页

本文是否解决了您的问题

文章内容导航
游民星空APP
随手浏览游戏攻略
code
攻略合集
单机游戏下载
休闲娱乐
综合热点资讯
游民星空联运游戏