comparison gamelib/scenes/map.py @ 203:12c66793db8f

Add neural implant text
author Neil Muller <neil@dip.sun.ac.za>
date Thu, 26 Aug 2010 10:55:02 +0200
parents 0530547a131f
children eb101b6fb3dd
comparison
equal deleted inserted replaced
202:6c84eb5ff80a 203:12c66793db8f
15 FOLDER = "map" 15 FOLDER = "map"
16 BACKGROUND = None # TODO 16 BACKGROUND = None # TODO
17 17
18 INITIAL_DATA = { 18 INITIAL_DATA = {
19 'accessible': True, 19 'accessible': True,
20 'implant': True,
20 } 21 }
21 22
22 def __init__(self, state): 23 def __init__(self, state):
23 super(Map, self).__init__(state) 24 super(Map, self).__init__(state)
24 self.add_thing(ToCryo()) 25 self.add_thing(ToCryo())
28 self.add_thing(ToMachine()) 29 self.add_thing(ToMachine())
29 30
30 def enter(self): 31 def enter(self):
31 for door_thing in self.things.values(): 32 for door_thing in self.things.values():
32 door_thing.check_dest() 33 door_thing.check_dest()
34 if self.get_data('implant'):
35 self.set_data('implant', False)
36 return (Result(
37 "JIM say 'Under the terms of the emergency conscription "
38 "act, I have downloaded the ship schematics to your "
39 "neural implant to help you navigate around the ship. "
40 "Please report to the bridge.'"),
41 Result(
42 "JIM continues 'Prisoner 84c7-d10dcfda0878. You are classed "
43 "as a class 1 felon. Obtaining access to the ship shematics "
44 "consitutes a level 2 offence and carries a minimal penalty "
45 "of an additional 3 years on you sentence.'"))
33 46
34 47
35 class DoorThing(Thing): 48 class DoorThing(Thing):
36 49
37 # name of destination 50 # name of destination