nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge: nitdoc: prepare the migration of nitdoc component to new phases
[nit.git]
/
contrib
/
nitrpg
/
src
/
statistics.nit
diff --git
a/contrib/nitrpg/src/statistics.nit
b/contrib/nitrpg/src/statistics.nit
index
580023a
..
e8afccc
100644
(file)
--- 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