diff gamelib/scenes/map.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 108eeb4d8f65
children
line wrap: on
line diff
--- a/gamelib/scenes/map.py	Tue Jan 29 17:45:41 2013 +0200
+++ b/gamelib/scenes/map.py	Tue Jan 29 21:45:27 2013 +0200
@@ -13,7 +13,7 @@
         InteractText, InteractNoImage)
 
 from gamelib.scenes.game_constants import PLAYER_ID
-from gamelib.scenes.game_widgets import make_jim_dialog
+from gamelib.scenes.game_widgets import make_jim_dialog, make_sentence_dialog
 
 
 class Map(Scene):
@@ -44,11 +44,12 @@
                   "neural implant to help you navigate around the ship."),
                 self.game)
             if ai1:
+                self.state.increase_sentence(3)
                 return ai1, make_jim_dialog(_("Prisoner %s, you are a "
                 "class 1 felon. Obtaining access to the ship's schematics "
                 "constitutes a level 2 offence and carries a minimal penalty "
                 "of an additional 3 years on your sentence.") % PLAYER_ID,
-                self.game)
+                self.game), make_sentence_dialog(PLAYER_ID, self.game)
 
 
 class DoorThing(Thing):