Mercurial > pyntnclick
comparison 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 |
comparison
equal
deleted
inserted
replaced
836:daecbd66d19c | 837:bdebe693453f |
---|---|
11 from pyntnclick.state import Scene, Thing, Result | 11 from pyntnclick.state import Scene, Thing, Result |
12 from pyntnclick.scenewidgets import (InteractRectUnion, InteractUnion, | 12 from pyntnclick.scenewidgets import (InteractRectUnion, InteractUnion, |
13 InteractText, InteractNoImage) | 13 InteractText, InteractNoImage) |
14 | 14 |
15 from gamelib.scenes.game_constants import PLAYER_ID | 15 from gamelib.scenes.game_constants import PLAYER_ID |
16 from gamelib.scenes.game_widgets import make_jim_dialog | 16 from gamelib.scenes.game_widgets import make_jim_dialog, make_sentence_dialog |
17 | 17 |
18 | 18 |
19 class Map(Scene): | 19 class Map(Scene): |
20 | 20 |
21 FOLDER = "map" | 21 FOLDER = "map" |
42 _("Under the terms of the emergency conscription " | 42 _("Under the terms of the emergency conscription " |
43 "act, I have downloaded the ship's schematics to your " | 43 "act, I have downloaded the ship's schematics to your " |
44 "neural implant to help you navigate around the ship."), | 44 "neural implant to help you navigate around the ship."), |
45 self.game) | 45 self.game) |
46 if ai1: | 46 if ai1: |
47 self.state.increase_sentence(3) | |
47 return ai1, make_jim_dialog(_("Prisoner %s, you are a " | 48 return ai1, make_jim_dialog(_("Prisoner %s, you are a " |
48 "class 1 felon. Obtaining access to the ship's schematics " | 49 "class 1 felon. Obtaining access to the ship's schematics " |
49 "constitutes a level 2 offence and carries a minimal penalty " | 50 "constitutes a level 2 offence and carries a minimal penalty " |
50 "of an additional 3 years on your sentence.") % PLAYER_ID, | 51 "of an additional 3 years on your sentence.") % PLAYER_ID, |
51 self.game) | 52 self.game), make_sentence_dialog(PLAYER_ID, self.game) |
52 | 53 |
53 | 54 |
54 class DoorThing(Thing): | 55 class DoorThing(Thing): |
55 | 56 |
56 # name of destination | 57 # name of destination |