Mercurial > pyntnclick
changeset 170:179913efac85
Add dented can image to item
author | Neil Muller <neil@dip.sun.ac.za> |
---|---|
date | Wed, 25 Aug 2010 12:41:02 +0200 |
parents | 3cb71ab6404e |
children | a1162ea4ad67 |
files | gamelib/scenes/mess.py |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/gamelib/scenes/mess.py Wed Aug 25 12:37:13 2010 +0200 +++ b/gamelib/scenes/mess.py Wed Aug 25 12:41:02 2010 +0200 @@ -37,13 +37,17 @@ CURSOR = CursorSprite('full_can_cursor.png', 20, 30) def interact_with_titanium_leg(self, tool, state): - state.replace_inventory_item(self, DentedCan("dented_can")) + dented = DentedCan("dented_can") + state.replace_inventory_item(self, dented) return Result("You club the can with the femur. The can gets dented, but doesn't open.") class DentedCan(FullCan): "A can banged on with the femur" + INVENTORY_IMAGE = "dented_can.png" + CURSOR = CursorSprite('dented_can_cursor.png', 20, 30) + def interact_with_titanium_leg(self, tool, inventory): return Result("You club the can with the femur. The dents shift around, but it still doesn't open.")