Changeset 470:3b680634c546


Ignore:
Timestamp:
04/09/11 19:10:16 (12 years ago)
Author:
Simon Cross <hodgestar@…>
Branch:
default
Phase:
public
Rebase:
66326561303336666132356133353931366435386564313930306436363933313235393035343234
Message:

Start of tails.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • skaapsteker/sprites/items.py

    r442 r470  
    218218    image_file = 'props/haiku-scroll.png'
    219219
     220##################################################
     221# Tails
     222
     223class Tail(Item):
     224
     225    image_file = None
     226    tail_type = None
     227
     228    def player_action(self, player):
     229        player.add_tail(self.tail_type)
     230        self.remove()
     231
     232
     233class ShapeshiftTail(Tail):
     234    image_file = 'icons/tails/shapeshifted.png'
     235    tail_type = 'shapeshift'
     236
     237
     238class FireballTail(Tail):
     239    image_file = 'icons/tails/fireball.png'
     240    tail_type = 'fireball'
Note: See TracChangeset for help on using the changeset viewer.