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

《饥荒》这款生存游戏,很多玩家都想觉得游戏有些难,就想修改一些内容,比如解锁全人物,主角自动回血,主角不会饿之类的,下面小编为大家奉上最全的修改教程,内容简单易懂,希望各位玩家喜欢。目录

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

二十一.双层主角物品条(60格)

  1.用记事本打开游戏目录\data\DLC0001\scripts\components\inventory.lua文件,将local MAXSLOTS = 15替换为local MAXSLOTS = 60

  2.用记事本打开游戏目录\data\scripts\widgets\inventorybar.lua文件,将self.bg:SetScale(1.15,1,1)替换为self.bg:SetScale(1.86,1.85,1)

  3.将下列内容:

  local num_intersep = math.floor(num_slots / 5) + 1

  local total_w = (num_slots + num_equip)*(W) + (num_slots + num_equip - 2 - num_intersep) *(SEP) + INTERSEP*num_intersep

  for k, v in ipairs(self.equipslotinfo) do

  local slot = EquipSlot(v.slot, v.atlas, v.image, self.owner)

  self.equip[v.slot] = self.toprow:AddChild(slot)

  local x = -total_w/2 + (num_slots)*(W)+num_intersep*(INTERSEP - SEP) + (num_slots-1)*SEP + INTERSEP + W*(k-1) + SEP*(k-1)

  slot:SetPosition(x,0,0)

  table.insert(eslot_order, slot)

  local item = self.owner.components.inventory:GetEquippedItem(v.slot)

  if item then

  slot:SetTile(ItemTile(item))

  end

  end

  for k = 1,num_slots do

  local slot = InvSlot(k, HUD_ATLAS, "inv_slot.tex", self.owner, self.owner.components.inventory)

  self.inv[k] = self.toprow:AddChild(slot)

  local interseps = math.floor((k-1) / 5)

  local x = -total_w/2 + W/2 + interseps*(INTERSEP - SEP) + (k-1)*W + (k-1)*SEP

  slot:SetPosition(x,0,0)

  slot.top_align_tip = W*0.5 + YSEP

  local item = self.owner.components.inventory:GetItemInSlot(k)

  if item then

  slot:SetTile(ItemTile(item))

  end

  end

  替换为:

  local num_intersep = math.floor(num_slots / 10) + 1

  local total_w = (num_slots -30.85)*(W) + (num_slots -30.85 - 2 - num_intersep) *(SEP) + INTERSEP*num_intersep

  for k, v in ipairs(self.equipslotinfo) do

  local slot = EquipSlot(v.slot, v.atlas, v.image, self.owner)

  self.equip[v.slot] = self.toprow:AddChild(slot)

  local x = -total_w/2 + (num_slots*0+14.07)*(W)+num_intersep*(INTERSEP - SEP) + (num_slots-1)*SEP + INTERSEP + W*(k-1) + SEP*(k-1)

  slot:SetPosition(x+341,190,0)

  table.insert(eslot_order, slot)

  local item = self.owner.components.inventory:GetEquippedItem(v.slot)

  if item then

  slot:SetTile(ItemTile(item))

  end

  end

  for k = 1,30 do

  local slot = InvSlot(k, HUD_ATLAS, "inv_slot.tex", self.owner, self.owner.components.inventory)

  self.inv[k] = self.toprow:AddChild(slot)

  local interseps = math.floor((k-1) / 10)

  local x = -total_w/2 + W/2 + interseps*(INTERSEP - SEP) + (k-1)*W + (k-1)*SEP

  slot:SetPosition(x,0,0)

  local item = self.owner.components.inventory:GetItemInSlot(k)

  if item then

  slot:SetTile(ItemTile(item))

  end

  end

  for k = 31,60 do

  local slot = InvSlot(k, HUD_ATLAS, "inv_slot.tex", self.owner, self.owner.components.inventory)

  self.inv[k] = self.toprow:AddChild(slot)

  local interseps = math.floor((k-1-30) / 10)

  local x = -total_w/2 + W/2 + interseps*(INTERSEP - SEP) + (k-1-30)*W + (k-1-30)*SEP

  slot:SetPosition(x,80,0)

  local item = self.owner.components.inventory:GetItemInSlot(k)

  if item then

  slot:SetTile(ItemTile(item))

  end

  end

  即可获得双层主角物品条(60格),注意必须将游戏设置(options) - (Settings) - HUD size项设为0,即显示最小物品条,才可完整显示60格哦

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

作者:易宁     责任编辑:Shy夏夏

本文是否解决了您的问题

APP精彩推荐打开游民APP查看更多

  • 谁家女主罩杯越播越小啊?巨乳玩法多的囧图
    谁家女主罩杯越播越小啊?巨乳玩法多的囧图

  • 顶流Coser转行当演员 不如国产区女神的动态图
    顶流Coser转行当演员 不如国产区女神的动态图

  • 擦边新花样!成人英语网络“性感教学”引争议
    擦边新花样!成人英语网络“性感教学”引争议

攻略合集
近期更新
人物图鉴

相关内容

在线玩推荐更多

游民星空

打开App阅读体验更佳,攻略、资讯实时更新

下载APP