comparison gamelib/scenes/crew_quarters.py @ 485:5bd6bd3d42fa

Tweak description when fishbowl is taken
author Neil Muller <neil@dip.sun.ac.za>
date Sun, 29 Aug 2010 19:40:10 +0200
parents af2a23b9787d
children 9f488671c02e
comparison
equal deleted inserted replaced
484:a7ed199f69d5 485:5bd6bd3d42fa
119 self.set_data('has_bowl', False) 119 self.set_data('has_bowl', False)
120 self.state.add_inventory_item('fishbowl') 120 self.state.add_inventory_item('fishbowl')
121 return Result("The fishbowl is useful, but its contents aren't.") 121 return Result("The fishbowl is useful, but its contents aren't.")
122 122
123 def get_description(self): 123 def get_description(self):
124 return "This fishbowl looks exactly like an old science fiction space helmet." 124 if self.get_data('has_bowl'):
125 return "This fishbowl looks exactly like an old science fiction space helmet."
126 else:
127 return "An evicted dead fish and some sand lie forlornly on the table"
125 128
126 class Fishbowl(Item): 129 class Fishbowl(Item):
127 "A bowl. Sans fish." 130 "A bowl. Sans fish."
128 131
129 INVENTORY_IMAGE = 'fishbowl.png' 132 INVENTORY_IMAGE = 'fishbowl.png'