# HG changeset patch # User Neil Muller # Date 1282732862 -7200 # Node ID 179913efac8570f5010689e25073a4c21d1df9a0 # Parent 3cb71ab6404ebbe320de933bafab335236ed9fbd Add dented can image to item diff -r 3cb71ab6404e -r 179913efac85 gamelib/scenes/mess.py --- 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.")