comparison gamelib/scenes/machine.py @ 372:3aee5895c2c6

remove random out of 1 choice
author Neil Muller <neil@dip.sun.ac.za>
date Sat, 28 Aug 2010 17:42:40 +0200
parents 81f5fb9f50e4
children 56a05ae56574
comparison
equal deleted inserted replaced
371:3838f4a563a8 372:3aee5895c2c6
1 """Machine room where tools and machines are found.""" 1 """Machine room where tools and machines are found."""
2
3 import random
4 2
5 from gamelib.state import Scene, Item, Thing, Result 3 from gamelib.state import Scene, Item, Thing, Result
6 from gamelib.cursor import CursorSprite 4 from gamelib.cursor import CursorSprite
7 from gamelib.scenes.scene_widgets import (Door, InteractText, InteractNoImage, 5 from gamelib.scenes.scene_widgets import (Door, InteractText, InteractNoImage,
8 InteractRectUnion, InteractImage, 6 InteractRectUnion, InteractImage,
205 } 203 }
206 204
207 INITIAL = 'lights' 205 INITIAL = 'lights'
208 206
209 def get_description(self): 207 def get_description(self):
210 return random.choice([ 208 return "The power lights pulse expectantly."
211 "The power lights pulse expectantly.",
212 ])
213 209
214 210
215 class CryoPipesOne(Item): 211 class CryoPipesOne(Item):
216 "A single cryo pipe (made from a tube fragment and can)." 212 "A single cryo pipe (made from a tube fragment and can)."
217 213