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

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

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

第159页:瑞士手杖

展开

一五九.瑞士手杖(砍树、凿石、锤墙、挖草、祛暑、取暖、防雨、补脑、瞬移、10倍攻击力、2倍速度、照明)

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

  1.在local function onequip(inst, owner)的下一行插入以下内容:

  inst.Light:Enable(true)

  GetPlayer().components.temperature:SetTemp(20)

  GetPlayer():PushEvent("stopfreezing")

  GetPlayer():PushEvent("stopoverheating")

  GetPlayer().components.moisture:SetMoistureLevel(0)

  2.在local function onunequip(inst, owner)的下一行插入以下内容:

  inst.Light:Enable(false)

  GetPlayer().components.temperature:SetTemp(nil)

  3.在anim:PlayAnimation("idle")的下一行插入以下内容:

  inst:AddComponent("tool")

  inst.components.tool:SetAction(ACTIONS.CHOP, 15)

  inst.components.tool:SetAction(ACTIONS.MINE, 15)

  inst.components.tool:SetAction(ACTIONS.HAMMER,15)

  inst.components.tool:SetAction(ACTIONS.DIG)

  inst:AddComponent("waterproofer")

  inst.components.waterproofer:SetEffectiveness(TUNING.WATERPROOFNESS_ABSOLUTE)

  inst:AddComponent("blinkstaff")

  local light = inst.entity:AddLight()

  light:SetFalloff(0.4)

  light:SetIntensity(.7)

  light:SetRadius(2.5)

  light:SetColour(180/255, 195/255, 150/255)

  light:Enable(true)

  4.将inst.components.weapon:SetDamage(TUNING.CANE_DAMAGE)替换为inst.components.weapon:SetDamage(TUNING.CANE_DAMAGE*10)

  5.将inst.components.equippable.walkspeedmult = TUNING.CANE_SPEED_MULT替换为以下内容:

  inst.components.equippable.walkspeedmult = TUNING.CANE_SPEED_MULT*2

  inst.components.equippable.dapperness = TUNING.DAPPERNESS_HUGE

  即可让手杖拥有瑞士军刀般的多功能。装备手杖时,在空地上点鼠标右键可瞬移,借此可跳过较窄沟壑,少走冤枉路

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

责任编辑:Shy夏夏

上一页 151 152 153 154 155 156 157 158 159 160 161 下一页
友情提示:支持键盘左右键“← →”翻页

本文是否解决了您的问题

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