Skip to content
Snippets Groups Projects
Commit 57987f3e authored by DarkGod's avatar DarkGod
Browse files

fix

parent ee2bf948
No related branches found
No related tags found
No related merge requests found
......@@ -161,6 +161,7 @@ end
-- Some common colors
local subtleMessageErrorColor = {r=255, g=100, b=100}
local subtleMessageWarningColor = {r=255, g=255, b=80}
local subtleMessageOtherColor = {r=255, g=215, b=0}
function _M:finish()
local ok, dep_miss = self:checkDeps(true, true)
......@@ -229,7 +230,7 @@ function _M:incStat(sid, v)
return
end
if self.actor:getStat(sid, nil, nil, true) >= self.actor.level * 1.4 + 20 then
self:subtleMessage("Stat is at the maximum for your level", "You cannot increase this stat further until next level!", 255, 215, 0)
self:subtleMessage("Stat is at the maximum for your level", "You cannot increase this stat further until next level!", subtleMessageOtherColor)
return
end
if self.actor:isStatMax(sid) or self.actor:getStat(sid, nil, nil, true) >= 60 + math.max(0, (self.actor.level - 50)) then
......
......@@ -57,7 +57,7 @@ function _M:setTextColor(text, color)
self.color = color or self.color
self.text_surf:erase(0, 0, 0, 0)
self.text_surf:drawColorStringCentered(self.font, self.text, 0, 0, self.iw, self.ih, self.color.r, self.color.g, self.color.b)
self.text_surf:drawColorStringCentered(self.font_bold, self.text, 0, 0, self.iw, self.ih, self.color.r, self.color.g, self.color.b)
self.text_surf:updateTexture(self.text_tex[1])
self.frame_decay = 0
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment