diff gamelib/scenes/game_widgets.py @ 837:bdebe693453f pyntnclick

Track total sentence
author Neil Muller <neil@dip.sun.ac.za>
date Tue, 29 Jan 2013 21:45:27 +0200
parents 43b49f1de828
children
line wrap: on
line diff
--- a/gamelib/scenes/game_widgets.py	Tue Jan 29 17:45:41 2013 +0200
+++ b/gamelib/scenes/game_widgets.py	Tue Jan 29 21:45:27 2013 +0200
@@ -39,6 +39,12 @@
         return None
 
 
+def make_sentence_dialog(prisoner, game):
+    return make_jim_dialog(
+            _("Prisoner %(id)s, your total sentence is now %(sen)d years.") % {
+                "id": prisoner, 'sen': game.data.get_total_sentence()}, game) 
+
+
 class BaseCamera(Thing):
     "Base class for the camera puzzles"