Mercurial > boomslang
comparison gamelib/scenes/crew_quarters.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 | eed75a1d50c4 |
children |
comparison
equal
deleted
inserted
replaced
836:daecbd66d19c | 837:bdebe693453f |
---|---|
6 from pyntnclick.scenewidgets import ( | 6 from pyntnclick.scenewidgets import ( |
7 InteractNoImage, InteractImage, InteractAnimated, GenericDescThing, | 7 InteractNoImage, InteractImage, InteractAnimated, GenericDescThing, |
8 TakeableThing) | 8 TakeableThing) |
9 | 9 |
10 from gamelib.scenes.game_constants import PLAYER_ID | 10 from gamelib.scenes.game_constants import PLAYER_ID |
11 from gamelib.scenes.game_widgets import Door, BaseCamera, make_jim_dialog | 11 from gamelib.scenes.game_widgets import (Door, BaseCamera, make_jim_dialog, |
12 make_sentence_dialog) | |
12 | 13 |
13 | 14 |
14 class CrewQuarters(Scene): | 15 class CrewQuarters(Scene): |
15 | 16 |
16 FOLDER = "crew_quarters" | 17 FOLDER = "crew_quarters" |
87 | 88 |
88 def interact_with_stethoscope(self, item): | 89 def interact_with_stethoscope(self, item): |
89 if self.get_data('is_cracked'): | 90 if self.get_data('is_cracked'): |
90 return Result(_("It's already unlocked. " | 91 return Result(_("It's already unlocked. " |
91 "There's no more challenge.")) | 92 "There's no more challenge.")) |
92 # TODO: Add years to the sentence for safecracking. | |
93 # TODO: Wax lyrical some more about safecracking. | 93 # TODO: Wax lyrical some more about safecracking. |
94 self.set_data('is_cracked', True) | 94 self.set_data('is_cracked', True) |
95 self.set_interact() | 95 self.set_interact() |
96 self.state.increase_sentence(20) | |
96 return (Result(_("Even after centuries of neglect, the tumblers slide" | 97 return (Result(_("Even after centuries of neglect, the tumblers slide" |
97 " almost silently into place. Turns out the" | 98 " almost silently into place. Turns out the" |
98 " combination was '1 2 3 4 5'. An idiot must keep his" | 99 " combination was '1 2 3 4 5'. An idiot must keep his" |
99 " luggage in here.")), | 100 " luggage in here.")), |
100 make_jim_dialog(_("Prisoner %s, you have been observed" | 101 make_jim_dialog(_("Prisoner %s, you have been observed" |
101 " committing a felony violation. This will" | 102 " committing a felony violation. This will" |
102 " go onto your permanent record, and your" | 103 " go onto your permanent record, and your" |
103 " sentence may be extended by up to twenty" | 104 " sentence will be extended by twenty" |
104 " years.") % PLAYER_ID, self.game)) | 105 " years.") % PLAYER_ID, self.game), |
106 make_sentence_dialog(PLAYER_ID, self.game)) | |
105 | 107 |
106 def get_description(self): | 108 def get_description(self): |
107 return _("Ah, a vintage Knoxx & Co. model QR3. Quaint, but" | 109 return _("Ah, a vintage Knoxx & Co. model QR3. Quaint, but" |
108 " reasonably secure.") | 110 " reasonably secure.") |
109 | 111 |