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

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

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

第237页:节日礼花

展开

二三七.节日礼花(点燃荧光果放礼花)

  用记事本打开游戏目录\data\scripts\prefabs\lightbulb.lua文件,在inst:AddComponent("inventoryitem")的下一行插入以下内容:

  local function OnIgniteFn(inst)

  GetPlayer().SoundEmitter:PlaySound("dontstarve/common/blackpowder_explo")

  inst:DoTaskInTime(1.5, function() inst.Physics:SetMotorVelOverride(0,42,0) end)

  end

  local function OnExplodeFn(inst)

  GetPlayer().components.sanity:DoDelta(5)

  inst:StartThread(function()

  for k = 1,3 do

  GetPlayer().SoundEmitter:PlaySound("dontstarve/creatures/eyeballturret/shotexplo")

  TheCamera:Shake("FULL", 0.3, 0.02, .5, 40)

  Sleep(.1)

  end

  end)

  end

  inst:AddComponent("explosive")

  inst.components.explosive:SetOnExplodeFn(OnExplodeFn)

  inst.components.explosive:SetOnIgniteFn(OnIgniteFn)

  即可用火炬点燃放在地上的荧光果,荧光果会飞上天空爆炸,每放一颗补5点脑,为你的节日增加一点气氛吧。在地洞里放礼花可以引起地震。如果想连续燃放,就将荧光果摆成一排(距离要近一些),点燃一个,其他就会陆续被点燃

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

责任编辑:Shy夏夏

上一页 231 232 233 234 235 236 237 238 239 240 241 下一页
友情提示:支持键盘左右键“← →”翻页

本文是否解决了您的问题

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