Mercurial > pyntnclick
comparison gamelib/scenes/mess.py @ 219:326300c218a6
Choppable cryopipes and can refactoring.
author | Jeremy Thurgood <firxen@gmail.com> |
---|---|
date | Thu, 26 Aug 2010 20:53:19 +0200 |
parents | 6ad6575b501c |
children | bcb7b2093118 |
comparison
equal
deleted
inserted
replaced
218:6ad6575b501c | 219:326300c218a6 |
---|---|
32 | 32 |
33 def interact_with_full_can(self, item, state): | 33 def interact_with_full_can(self, item, state): |
34 return Result("You bang the cans togther. It sounds like two cans being banged togther.", soundfile="can_hit.ogg") | 34 return Result("You bang the cans togther. It sounds like two cans being banged togther.", soundfile="can_hit.ogg") |
35 | 35 |
36 def interact_with_dented_can(self, item, state): | 36 def interact_with_dented_can(self, item, state): |
37 return Result("You bang the cans togther. It sounds like two cans being banged togther.", soundfile="can_hit.ogg") | 37 return self.interact_with_full_can(item, state) |
38 | 38 |
39 def interact_with_empty_can(self, item, state): | 39 def interact_with_empty_can(self, item, state): |
40 return Result("You bang the cans togther. It sounds like two cans being banged togther.", soundfile="can_hit.ogg") | 40 return self.interact_with_full_can(item, state) |
41 | 41 |
42 | 42 |
43 class FullCan(CloneableItem): | 43 class FullCan(CloneableItem): |
44 "Found on the shelf." | 44 "Found on the shelf." |
45 | 45 |
54 | 54 |
55 def interact_with_full_can(self, item, state): | 55 def interact_with_full_can(self, item, state): |
56 return Result("You bang the cans togther. It sounds like two cans being banged togther.", soundfile="can_hit.ogg") | 56 return Result("You bang the cans togther. It sounds like two cans being banged togther.", soundfile="can_hit.ogg") |
57 | 57 |
58 def interact_with_dented_can(self, item, state): | 58 def interact_with_dented_can(self, item, state): |
59 return Result("You bang the cans togther. It sounds like two cans being banged togther.", soundfile="can_hit.ogg") | 59 return self.interact_with_full_can(item, state) |
60 | 60 |
61 def interact_with_empty_can(self, item, state): | 61 def interact_with_empty_can(self, item, state): |
62 return Result("You bang the cans togther. It sounds like two cans being banged togther.", soundfile="can_hit.ogg") | 62 return self.interact_with_full_can(item, state) |
63 | 63 |
64 | 64 |
65 class DentedCan(CloneableItem): | 65 class DentedCan(CloneableItem): |
66 "A can banged on with the femur" | 66 "A can banged on with the femur" |
67 | 67 |
73 | 73 |
74 def interact_with_full_can(self, item, state): | 74 def interact_with_full_can(self, item, state): |
75 return Result("You bang the cans togther. It sounds like two cans being banged togther.", soundfile="can_hit.ogg") | 75 return Result("You bang the cans togther. It sounds like two cans being banged togther.", soundfile="can_hit.ogg") |
76 | 76 |
77 def interact_with_dented_can(self, item, state): | 77 def interact_with_dented_can(self, item, state): |
78 return Result("You bang the cans togther. It sounds like two cans being banged togther.", soundfile="can_hit.ogg") | 78 return self.interact_with_full_can(item, state) |
79 | 79 |
80 def interact_with_empty_can(self, item, state): | 80 def interact_with_empty_can(self, item, state): |
81 return Result("You bang the cans togther. It sounds like two cans being banged togther.", soundfile="can_hit.ogg") | 81 return self.interact_with_full_can(item, state) |
82 | 82 |
83 | 83 |
84 class TubeFragments(Item): | 84 class TubeFragments(Item): |
85 "Old tubes that need repair." | 85 "Old tubes that need repair." |
86 | 86 |