Mercurial > pyntnclick
comparison gamelib/scenes/mess.py @ 224:8d8aef45db4e
fixed some typos
author | Adrianna Pińska <adrianna.pinska@gmail.com> |
---|---|
date | Thu, 26 Aug 2010 22:25:42 +0200 |
parents | 10d3265f0bfa |
children | a5325919342e |
comparison
equal
deleted
inserted
replaced
223:10d3265f0bfa | 224:8d8aef45db4e |
---|---|
26 | 26 |
27 class BaseCan(CloneableItem): | 27 class BaseCan(CloneableItem): |
28 """Base class for the cans""" | 28 """Base class for the cans""" |
29 | 29 |
30 def interact_with_full_can(self, item, state): | 30 def interact_with_full_can(self, item, state): |
31 return Result("You bang the cans togther. It sounds like two cans being banged togther.", soundfile="can_hit.ogg") | 31 return Result("You bang the cans together. It sounds like two cans being banged together.", soundfile="can_hit.ogg") |
32 | 32 |
33 def interact_with_dented_can(self, item, state): | 33 def interact_with_dented_can(self, item, state): |
34 return self.interact_with_full_can(item, state) | 34 return self.interact_with_full_can(item, state) |
35 | 35 |
36 def interact_with_empty_can(self, item, state): | 36 def interact_with_empty_can(self, item, state): |
37 return self.interact_with_full_can(item, state) | 37 return self.interact_with_full_can(item, state) |
38 | 38 |
39 def interact_with_machete(self, item, state): | 39 def interact_with_machete(self, item, state): |
40 return Result("You'd managle it beyond usefulness") | 40 return Result("You'd mangle it beyond usefulness.") |
41 | 41 |
42 | 42 |
43 class EmptyCan(BaseCan): | 43 class EmptyCan(BaseCan): |
44 "After emptying the full can." | 44 "After emptying the full can." |
45 | 45 |
112 self.state.add_item(can) | 112 self.state.add_item(can) |
113 self.state.add_inventory_item(can.name) | 113 self.state.add_inventory_item(can.name) |
114 self.set_data('cans_available', starting_cans - 1) | 114 self.set_data('cans_available', starting_cans - 1) |
115 self.set_interact('%icans' % (starting_cans - 1)) | 115 self.set_interact('%icans' % (starting_cans - 1)) |
116 return Result({ | 116 return Result({ |
117 3: "Best before along time in the past. Better not eat these.", | 117 3: "Best before a long time in the past. Better not eat these.", |
118 2: "Mmmm. Nutritious Bacteria Stew.", | 118 2: "Mmmm. Nutritious bacteria stew.", |
119 1: "Candied silkworms. Who stocked this place!?", | 119 1: "Candied silkworms. Who stocked this place?!", |
120 }[starting_cans]) | 120 }[starting_cans]) |
121 else: | 121 else: |
122 return Result("The rest of the cans are rusted beyond usefulness.") | 122 return Result("The rest of the cans are rusted beyond usefulness.") |
123 | 123 |
124 def get_description(self): | 124 def get_description(self): |
125 return "The contents of these cans looks synthetic." | 125 return "The contents of these cans look synthetic." |
126 | 126 |
127 | 127 |
128 class Tubes(Thing): | 128 class Tubes(Thing): |
129 | 129 |
130 NAME = "mess.tubes" | 130 NAME = "mess.tubes" |