Mercurial > pyntnclick
comparison gamelib/scenes/map.py @ 212:2b820b4ba3bf
Add constant for player id. Make IDs uppercase
author | Neil Muller <neil@dip.sun.ac.za> |
---|---|
date | Thu, 26 Aug 2010 19:33:23 +0200 |
parents | eb101b6fb3dd |
children | 8d8aef45db4e |
comparison
equal
deleted
inserted
replaced
211:969b1cb4b567 | 212:2b820b4ba3bf |
---|---|
6 | 6 |
7 Many parts of the ship are derelict and inaccessible. | 7 Many parts of the ship are derelict and inaccessible. |
8 """ | 8 """ |
9 | 9 |
10 from gamelib.state import Scene, Item, Thing, InteractText, Result | 10 from gamelib.state import Scene, Item, Thing, InteractText, Result |
11 from gamelib.scenes.game_constants import PLAYER_ID | |
11 | 12 |
12 | 13 |
13 class Map(Scene): | 14 class Map(Scene): |
14 | 15 |
15 FOLDER = "map" | 16 FOLDER = "map" |
37 "JIM say 'Under the terms of the emergency conscription " | 38 "JIM say 'Under the terms of the emergency conscription " |
38 "act, I have downloaded the ship schematics to your " | 39 "act, I have downloaded the ship schematics to your " |
39 "neural implant to help you navigate around the ship. " | 40 "neural implant to help you navigate around the ship. " |
40 "Please report to the bridge.'", style="JIM"), | 41 "Please report to the bridge.'", style="JIM"), |
41 Result( | 42 Result( |
42 "JIM continues 'Prisoner 84c7-d10dcfda0878. You are classed " | 43 "JIM continues 'Prisoner %s. You are classed " |
43 "as a class 1 felon. Obtaining access to the ship shematics " | 44 "as a class 1 felon. Obtaining access to the ship shematics " |
44 "consitutes a level 2 offence and carries a minimal penalty " | 45 "consitutes a level 2 offence and carries a minimal penalty " |
45 "of an additional 3 years on you sentence.'", style="JIM")) | 46 "of an additional 3 years on you sentence.'" % PLAYER_ID, |
47 style="JIM")) | |
46 | 48 |
47 | 49 |
48 class DoorThing(Thing): | 50 class DoorThing(Thing): |
49 | 51 |
50 # name of destination | 52 # name of destination |