nitrpg: fix PlayerXCommits achievement trigger
authorAlexandre Terrasa <alexandre@moz-code.org>
Mon, 10 Aug 2015 22:24:18 +0000 (18:24 -0400)
committerAlexandre Terrasa <alexandre@moz-code.org>
Sat, 28 Nov 2015 17:59:21 +0000 (12:59 -0500)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

contrib/nitrpg/src/achievements.nit

index 24b50ad..5ce317a 100644 (file)
@@ -356,7 +356,7 @@ abstract class PlayerXCommits
                if not event.action == "closed" then return
                if not event.pull.merged then return
                var player = event.pull.user.player(game)
-               if player.stats["commits"] == threshold then
+               if player.stats["commits"] >= threshold then
                        var a = new_achievement(game)
                        player.unlock_achievement(a, event)
                end