Mercurial > pyntnclick
diff 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 |
line wrap: on
line diff
--- a/gamelib/scenes/mess.py Thu Aug 26 20:34:57 2010 +0200 +++ b/gamelib/scenes/mess.py Thu Aug 26 20:53:19 2010 +0200 @@ -34,10 +34,10 @@ return Result("You bang the cans togther. It sounds like two cans being banged togther.", soundfile="can_hit.ogg") def interact_with_dented_can(self, item, state): - return Result("You bang the cans togther. It sounds like two cans being banged togther.", soundfile="can_hit.ogg") + return self.interact_with_full_can(item, state) def interact_with_empty_can(self, item, state): - return Result("You bang the cans togther. It sounds like two cans being banged togther.", soundfile="can_hit.ogg") + return self.interact_with_full_can(item, state) class FullCan(CloneableItem): @@ -56,10 +56,10 @@ return Result("You bang the cans togther. It sounds like two cans being banged togther.", soundfile="can_hit.ogg") def interact_with_dented_can(self, item, state): - return Result("You bang the cans togther. It sounds like two cans being banged togther.", soundfile="can_hit.ogg") + return self.interact_with_full_can(item, state) def interact_with_empty_can(self, item, state): - return Result("You bang the cans togther. It sounds like two cans being banged togther.", soundfile="can_hit.ogg") + return self.interact_with_full_can(item, state) class DentedCan(CloneableItem): @@ -75,10 +75,10 @@ return Result("You bang the cans togther. It sounds like two cans being banged togther.", soundfile="can_hit.ogg") def interact_with_dented_can(self, item, state): - return Result("You bang the cans togther. It sounds like two cans being banged togther.", soundfile="can_hit.ogg") + return self.interact_with_full_can(item, state) def interact_with_empty_can(self, item, state): - return Result("You bang the cans togther. It sounds like two cans being banged togther.", soundfile="can_hit.ogg") + return self.interact_with_full_can(item, state) class TubeFragments(Item):