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

Achievements are not gained in debug mode

parent 4b7d13b0
No related branches found
No related tags found
No related merge requests found
......@@ -150,7 +150,7 @@ function _M:gainAchievement(id, src, ...)
self:gainPersonalAchievement(true, id, src, ...)
self.achieved[id] = {turn=game.turn, who=self:achievementWho(src), when=os.date("%Y-%m-%d %H:%M:%S")}
profile:saveModuleProfile("achievements", {id=id, turn=game.turn, who=self:achievementWho(src), gained_on=os.date("%Y-%m-%d %H:%M:%S")})
if not config.settings.cheat then profile:saveModuleProfile("achievements", {id=id, turn=game.turn, who=self:achievementWho(src), gained_on=os.date("%Y-%m-%d %H:%M:%S")}) end
local color = a.huge and "GOLD" or "LIGHT_GREEN"
game.log("#"..color.."#New Achievement: %s!", a.name)
self:showAchievement("New Achievement: #"..color.."#"..a.name, a)
......
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