Skip to content

Commit 9662a1f

Browse files
Lua code format - (Stylua)
1 parent 98e7905 commit 9662a1f

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

data-global/monster/quests/the_secret_library/bosses/grand_master_oberon.lua

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -123,16 +123,16 @@ monster.immunities = {
123123
}
124124

125125
mType.onThink = function(monster, interval)
126-
if monster:getStorageValue(GrandMasterOberonConfig.Storage.Life) == -1 then
127-
monster:setStorageValue(GrandMasterOberonConfig.Storage.Life, 0)
128-
end
129-
local currentLifeStorage = monster:getStorageValue(GrandMasterOberonConfig.Storage.Life)
130-
if currentLifeStorage < GrandMasterOberonConfig.AmountLife then
131-
local percentageHealth = (monster:getHealth() * 100) / monster:getMaxHealth()
132-
if percentageHealth <= 20 then
133-
SendOberonAsking(monster)
134-
end
135-
end
126+
if monster:getStorageValue(GrandMasterOberonConfig.Storage.Life) == -1 then
127+
monster:setStorageValue(GrandMasterOberonConfig.Storage.Life, 0)
128+
end
129+
local currentLifeStorage = monster:getStorageValue(GrandMasterOberonConfig.Storage.Life)
130+
if currentLifeStorage < GrandMasterOberonConfig.AmountLife then
131+
local percentageHealth = (monster:getHealth() * 100) / monster:getMaxHealth()
132+
if percentageHealth <= 20 then
133+
SendOberonAsking(monster)
134+
end
135+
end
136136
end
137137

138138
mType.onSay = function(monster, creature, type, message)

data-global/monster/quests/the_secret_library/bosses/grand_master_oberon_functions.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ end
4848

4949
function SendOberonAsking(monster)
5050
local currentLife = monster:getStorageValue(GrandMasterOberonConfig.Storage.Life)
51-
if currentLife >= GrandMasterOberonConfig.AmountLife then
52-
return
53-
end
51+
if currentLife >= GrandMasterOberonConfig.AmountLife then
52+
return
53+
end
5454
monster:registerEvent("OberonImmunity")
5555
local random = math.random(#GrandMasterOberonAsking)
5656
monster:say(GrandMasterOberonAsking[random].msg, TALKTYPE_MONSTER_SAY)

0 commit comments

Comments
 (0)