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

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

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

第178页:巨人帽

展开

一七八.巨人帽(带猪皮帽变巨人,攻击、防御上升,可撞毁建筑、树、石头)

  用记事本打开游戏目录\data\DLC0001\scripts\prefabs\hats.lua文件,将下列内容:

  local function football()

  local inst = simple()

  inst:AddComponent("armor")

  inst:AddComponent("waterproofer")

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

  inst.components.armor:InitCondition(TUNING.ARMOR_FOOTBALLHAT, TUNING.ARMOR_FOOTBALLHAT_ABSORPTION)

  return inst

  end

  替换为:

  local function football_equip(inst, owner)

  onequip(inst, owner)

  if owner == GetPlayer() then

  owner.Transform:SetScale(3, 3, 3)

  owner.components.combat:SetDefaultDamage(500)

  owner.Physics:SetCollisionCallback(function(owner, other)

  if other and other.components.workable and other.components.workable.workleft > 0 then

  other.components.workable:Destroy(owner)

  end

  end)

  end

  end

  local function football_unequip(inst, owner)

  onunequip(inst, owner)

  if owner == GetPlayer() then

  owner.Transform:SetScale(1, 1, 1)

  owner.components.combat:SetDefaultDamage(TUNING.UNARMED_DAMAGE)

  owner.Physics:SetCollisionCallback( nil )

  end

  end

  local function football()

  local inst = simple()

  inst:AddComponent("armor")

  inst.components.armor:InitCondition(TUNING.ARMOR_FOOTBALLHAT, 0.95)

  inst:AddComponent("waterproofer")

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

  inst.components.equippable:SetOnEquip( football_equip )

  inst.components.equippable:SetOnUnequip( football_unequip )

  return inst

  end

  即可戴猪皮帽变巨人,空手攻击力达到500点(空手按Ctrl + 鼠标左键攻击,或按住F反击),防御敌人95%的伤害(只掉5%的血),可撞毁建筑、树、石头。猪皮帽在战斗选项(画着两把剑)下,用1个绳子、1个猪皮制造,制造时须靠近炼金术引擎

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

责任编辑:Shy夏夏

上一页 171 172 173 174 175 176 177 178 179 180 181 下一页
友情提示:支持键盘左右键“← →”翻页

本文是否解决了您的问题

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