首先玩家要在手機里安裝mt管理器2.0,百度搜索下就有,然后使用mt管理器按照下面教程操作:

一.mt管理器打開儲存盤/android/obb/com.kleientertainment.doNotStarvePocket/main.19.com.kleientertainment.doNotStarvePocket.obb文件,打開方式選zip查看

打開scripts/widgets/badge.lua用XML編輯

1.找到self:SetScale(1,1,1)

替換為self:SetScale(0.9,0.9,0.9)

嫌大可以全改0.8或者更小

2.找到

local usedLanguage = TheSim:GetUsedLanguage()

if usedLanguage == "korean" or usedLanguage == "simplified_chinese" or usedLanguage == "traditional_chinese" or usedLanguage == "japanese" then

self.num = self:AddChild(Text(NUMBERFONT, 33))

else

self.num = self:AddChild(Text(BODYTEXTFONT, 33))

end

self.num:SetHAlign(ANCHOR_MIDDLE)

self.num:SetPosition(5, 0, 0)

self.num:Hide()

替換為

self.num = self:AddChild(Text(BODYTEXTFONT, 28))

self.num:SetHAlign(ANCHOR_MIDDLE)

self.num:SetScale(1,.8,1)

self.num:SetPosition(0, -40.5, 0)

self.num:Show()

以上兩步是修改字體大小,可改可不改,也可以根據(jù)自己的喜好調(diào)整。

3.找到

function Badge:OnGainFocus()

Badge._base.OnGainFocus(self)

self.num:Show()

end

function Badge:OnLoseFocus()

Badge._base.OnLoseFocus(self)

self.num:Hide()

end

替換為

--function Badge:OnGainFocus()

-- Badge._base.OnGainFocus(self)

-- self.num:Show()

--end

--function Badge:OnLoseFocus()

-- Badge._base.OnLoseFocus(self)

-- self.num:Hide()

--end

或直接刪除

4.最后的return Badge

替換為

function Badge:SetTemperature(val)

self.num:SetString("溫度:"..tostring(math.ceil(val/2)))

end

function Badge:SetNaughty(val, max)

self.num:SetString(tostring(val).."/"..tostring(max))

end

return Badge

退出保存,更新選是。

二.打開DLC0001/scripts/components/kramped.lua

1.文首插入

local naughtyness = 0

local limit = 0

改完記得換行

2.找到

self.actions = 0

self.threshold = nil

替換為

self.actions = 0

self.threshold = 30

naughtyness = self.actions --mod

limit = self.threshold --mod

有些語錄后面的--mod代表數(shù)顯mod加入的內(nèi)容,方便你們學(xué)習(xí)跟修改

3.找到

function Kramped:OnLoad(data)

self.actions = data.actions or self.actions

self.threshold = data.threshold or self.threshold

end

替換為

function Kramped:OnLoad(data)

self.actions = data.actions or self.actions

self.threshold = data.threshold or self.threshold

naughtyness = self.actions --mod

limit = self.threshold --mod

end

4.找到

function Kramped:OnUpdate(dt)

if self.actions > 0 then

self.timetodecay = self.timetodecay - dt

if self.timetodecay < 0 then

self.timetodecay = TUNING.KRAMPUS_NAUGHTINESS_DECAY_PERIOD

self.actions = self.actions - 1

end

end

end

替換為

function Kramped:OnUpdate(dt)

if self.actions > 0 then

self.timetodecay = self.timetodecay - dt

if self.timetodecay < 0 then

self.timetodecay = TUNING.KRAMPUS_NAUGHTINESS_DECAY_PERIOD

self.actions = self.actions - 1

naughtyness = self.actions --mod

self:DoDelta() --mod

end

end

end

5.找到

function Kramped:OnNaughtyAction(how_naughty)

if TUNING.KRAMPUS_INCREASE_RAMP < 1 or TUNING.KRAMPUS_THRESHOLD_VARIANCE < 1 then return end

if self.threshold == 30 then

self.threshold = TUNING.KRAMPUS_THRESHOLD + math.random(TUNING.KRAMPUS_THRESHOLD_VARIANCE)

end

self.actions = self.actions + (how_naughty or 1)

self.timetodecay = TUNING.KRAMPUS_NAUGHTINESS_DECAY_PERIOD

if self.actions >= self.threshold and self.threshold > 0 then

local day = GetClock().numcycles

local num_krampii = 1

self.threshold = TUNING.KRAMPUS_THRESHOLD + math.random(TUNING.KRAMPUS_THRESHOLD_VARIANCE)

self.actions = 0

if day > TUNING.KRAMPUS_INCREASE_LVL1 then

num_krampii = num_krampii + math.random(TUNING.KRAMPUS_INCREASE_RAMP)

elseif day > TUNING.KRAMPUS_INCREASE_LVL2 then

num_krampii = num_krampii + 1 + math.random(TUNING.KRAMPUS_INCREASE_RAMP)

end

for k = 1, num_krampii do

self:MakeAKrampus()

end

else

self.inst:DoTaskInTime(1 + math.random()*2, function()

local snd = CreateEntity()

snd.entity:AddTransform()

snd.entity:AddSoundEmitter()

snd.persists = false

local theta = math.random() * 2 * PI

local radius = 15

local offset = Vector3(self.inst.Transform:GetWorldPosition()) + Vector3(radius * math.cos( theta ), 0, -radius * math.sin( theta ))

snd.Transform:SetPosition(offset.x,offset.y,offset.z)

local left = self.threshold - self.actions

if left < 5 then

snd.SoundEmitter:PlaySound("dontstarve/creatures/krampus/beenbad_lvl3")

elseif left < 15 then

snd.SoundEmitter:PlaySound("dontstarve/creatures/krampus/beenbad_lvl2")

elseif left < 20 then

snd.SoundEmitter:PlaySound("dontstarve/creatures/krampus/beenbad_lvl1")

end

snd:Remove()

end)

end

end

替換為

function Kramped:OnNaughtyAction(how_naughty)

if TUNING.KRAMPUS_INCREASE_RAMP < 1 or TUNING.KRAMPUS_THRESHOLD_VARIANCE < 1 then return end

if self.threshold == 30 then

self.threshold = TUNING.KRAMPUS_THRESHOLD + math.random(TUNING.KRAMPUS_THRESHOLD_VARIANCE)

end

self.actions = self.actions + (how_naughty or 1)

self.timetodecay = TUNING.KRAMPUS_NAUGHTINESS_DECAY_PERIOD

naughtyness = self.actions --mod

if self.actions >= self.threshold and self.threshold > 0 then

local day = GetClock().numcycles

local num_krampii = 1

self.threshold = TUNING.KRAMPUS_THRESHOLD + math.random(TUNING.KRAMPUS_THRESHOLD_VARIANCE)

self.actions = 0

limit = self.threshold --mod

naughtyness = self.actions --mod

if day > TUNING.KRAMPUS_INCREASE_LVL1 then

num_krampii = num_krampii + math.random(TUNING.KRAMPUS_INCREASE_RAMP)

elseif day > TUNING.KRAMPUS_INCREASE_LVL2 then

num_krampii = num_krampii + 1 + math.random(TUNING.KRAMPUS_INCREASE_RAMP)

end

for k = 1, num_krampii do

self:MakeAKrampus()

end

else

self.inst:DoTaskInTime(1 + math.random()*2, function()

local snd = CreateEntity()

snd.entity:AddTransform()

snd.entity:AddSoundEmitter()

snd.persists = false

local theta = math.random() * 2 * PI

local radius = 15

local offset = Vector3(self.inst.Transform:GetWorldPosition()) + Vector3(radius * math.cos( theta ), 0, -radius * math.sin( theta ))

snd.Transform:SetPosition(offset.x,offset.y,offset.z)

local left = self.threshold - self.actions

if left < 5 then

snd.SoundEmitter:PlaySound("dontstarve/creatures/krampus/beenbad_lvl3")

elseif left < 15 then

snd.SoundEmitter:PlaySound("dontstarve/creatures/krampus/beenbad_lvl2")

elseif left < 20 then

snd.SoundEmitter:PlaySound("dontstarve/creatures/krampus/beenbad_lvl1")

end

snd:Remove()

end)

end

self:DoDelta() --mod

end

6.文尾return Kramped前一行

插入

function Kramped:GetNaughtyness()

return naughtyness

end

function Kramped:GetLimit()

return limit

end

function Kramped:DoDelta()

self.inst:PushEvent("naughtydelta")

end

退出保存更新選是.

三.打開DLC0001/scripts/widgets/statusdisplays.lua

1.找到local MoistureMeter = require "widgets/moisturemeter"

后面插入一行

local Badge = require "widgets/badge"

local kramped = require "components/kramped"

local NaughtyBadge = Class(Badge, function(self, owner)

Badge._ctor(self, "naughty", owner)

end)

local TemperatureBadge = Class(Badge, function(self, owner)

Badge._ctor(self, "temperature", owner)

end)

2.找到self.heart:SetPercent(self.owner.components.health:GetPercent(), self.owner.components.health.maxhealth, self.owner.components.health:GetPenaltyPercent())

后面插入一行

self.naughty = self:AddChild(NaughtyBadge(owner))

self.naughty:SetPosition(-110,15,0)

self.naughty:SetNaughty(self.owner.components.kramped:GetNaughtyness(), self.owner.components.kramped:GetLimit())

self.temperature = self:AddChild(TemperatureBadge(owner))

self.temperature:SetPosition(30,15,0)

self.temperature:SetTemperature(self.owner.components.temperature:GetCurrent())

3.找到

if GetWorld() and GetWorld():IsCave() then

self.brain:SetPosition(30, -0,0)

self.stomach:SetPosition(-110, -0,0)

self.heart:SetPosition(-40, -0,0)

self.moisturemeter:SetPosition(30, -70,0)

end

替換為

if GetWorld() and GetWorld():IsCave() then

self.brain:SetPosition(30, -40,0)

self.stomach:SetPosition(-110, -40,0)

self.heart:SetPosition(-40, -70,0)

self.moisturemeter:SetPosition(-40, 0,0)

end

這里是修改進入洞穴后幾個槽的位置,同樣是可改可不改,而且我改的也不好,位置有點不對,建議自己調(diào)整

4.找到

self.inst:ListenForEvent("sanitydelta", function(inst, data) self:SanityDelta(data) end, self.owner)

后面插入一行

self.inst:ListenForEvent("temperaturedelta", function(inst, data) self.temperature:SetTemperature(self.owner.components.temperature:GetCurrent()) end, self.owner)

self.inst:ListenForEvent("naughtydelta", function(inst) self.naughty:SetNaughty(self.owner.components.kramped.GetNaughtyness(), self.owner.components.kramped.GetLimit()) end, self.owner)

退出保存更新,進入游戲數(shù)據(jù)顯示即修改完成。

ps:修改還是有風(fēng)險的,如何不成功有可能損壞數(shù)據(jù)包,當(dāng)進入游戲后,系統(tǒng)會提示玩家在重新下載數(shù)據(jù)包,所以在試之前建議先備份下數(shù)據(jù)包。

好了以上就是小編給大家?guī)淼酿嚮氖謾C版狀態(tài)顯示修改 手機版mod移植。

相關(guān)攻略

饑荒巨人王朝潮濕機制解析 潮濕解決辦法 饑荒手游寒冷機制解析 游戲機制簡析 饑荒手機版機器人WX78新手攻略 生存指南 饑荒手游地圖各式福利一覽 大神帶你玩轉(zhuǎn)饑荒 饑荒手游第一個冬天怎么過 實用過冬攻略 饑荒手機版狀態(tài)顯示修改 手機版mod移植 饑荒手機版強力武器推薦 新手進階攻略 饑荒手游鸚鵡與沉船的機制解析 饑荒手游爐子怎么做 爐子制造方法介紹 饑荒手機版克勞斯擊殺攻略 克勞斯怎么殺

相關(guān)閱讀

新聞熱榜

游戲評測

熱門攻略

熱門游戲