From ce600e453cf44fc9cfc644c7bf86fca4e8e2a420 Mon Sep 17 00:00:00 2001 From: Alexandre Terrasa Date: Wed, 25 Feb 2015 22:31:43 +0100 Subject: [PATCH] contrib/nitrpg: use stats to store player nitcoins So podium and stats can be displayed by time periods. Signed-off-by: Alexandre Terrasa --- contrib/nitrpg/src/statistics.nit | 3 +++ 1 file changed, 3 insertions(+) diff --git a/contrib/nitrpg/src/statistics.nit b/contrib/nitrpg/src/statistics.nit index 580023a..e8afccc 100644 --- a/contrib/nitrpg/src/statistics.nit +++ b/contrib/nitrpg/src/statistics.nit @@ -57,6 +57,9 @@ redef class Player stats.save_in(self.key) end + redef fun nitcoins do return stats["nitcoins"] + redef fun nitcoins=(nc) do stats["nitcoins"] = nc + redef fun pretty do var res = new FlatBuffer res.append super -- 1.7.9.5