Mercurial > skaapsteker
diff skaapsteker/sprites/items.py @ 470:3b680634c546
Start of tails.
author | Simon Cross <hodgestar@gmail.com> |
---|---|
date | Sat, 09 Apr 2011 21:10:16 +0200 |
parents | a084af91d5dc |
children | 14cab059bf39 |
line wrap: on
line diff
--- a/skaapsteker/sprites/items.py Sat Apr 09 21:10:04 2011 +0200 +++ b/skaapsteker/sprites/items.py Sat Apr 09 21:10:16 2011 +0200 @@ -217,3 +217,24 @@ class Documents(Item): image_file = 'props/haiku-scroll.png' +################################################## +# Tails + +class Tail(Item): + + image_file = None + tail_type = None + + def player_action(self, player): + player.add_tail(self.tail_type) + self.remove() + + +class ShapeshiftTail(Tail): + image_file = 'icons/tails/shapeshifted.png' + tail_type = 'shapeshift' + + +class FireballTail(Tail): + image_file = 'icons/tails/fireball.png' + tail_type = 'fireball'