Changeset 473:14cab059bf39


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

More tails.

Location:
skaapsteker/sprites
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • skaapsteker/sprites/items.py

    r470 r473  
    225225    image_file = None
    226226    tail_type = None
     227    help_msg = None
    227228
    228229    def player_action(self, player):
    229230        player.add_tail(self.tail_type)
     231        notify(self.help_msg)
    230232        self.remove()
    231233
     
    234236    image_file = 'icons/tails/shapeshifted.png'
    235237    tail_type = 'shapeshift'
     238    help_msg = "Shapeshifting tail. Press C to shape shift." \
     239               " Your powers are more limited while in human form."
    236240
    237241
     
    239243    image_file = 'icons/tails/fireball.png'
    240244    tail_type = 'fireball'
     245    help_msg = "Fireball tail. The X attack key now shoots fireballs."
     246
     247
     248class SprintTail(Tail):
     249    image_file = 'icons/tails/sprint.png'
     250    tail_type = 'sprint'
     251    help_msg = "Sprint tail. Double-tap the left or right arrow key to" \
     252               " sprint for a few seconds."
     253
     254
     255class InvisibilityTail(Tail):
     256    image_file = 'icons/tails/invisibility.png'
     257    tail_type = 'invisibility'
     258    help_msg = "Invisibility tail. Press V to become invisible for a few seconds." \
     259               " You become visible again if you attack or interact with others."
     260
     261
     262class FlightTail(Tail):
     263    image_file = 'icons/tails/flight.png'
     264    tail_type = 'flight'
     265    help_msg = "Flight tail. Double-tap up to fly. Press down while on the ground to land." \
     266               " If you stay in the air too long you'll tire and fall."
     267
     268
     269class ShieldTail(Tail):
     270    image_file = 'icons/tails/shield.png'
     271    tail_type = 'shield'
     272    help_msg = "Shield tail. If you get hit, your mystical shield will protect you for" \
     273               " one second. After that it'll need a little time to recharge."
     274
     275
     276class StealTail(Tail):
     277    image_file = 'icons/tails/steal.png'
     278    tail_type = 'steal'
     279    help_msg = "Life-stealing tail. If you projectiles hit your enemies, you steal some" \
     280               " of their life."
     281
     282
     283class LightningTail(Tail):
     284    image_file = 'icons/tails/lightning.png'
     285    tail_type = 'lightning'
     286    help_msg = "Lightning tail. The Z attack now shoots lightning bolts."
  • skaapsteker/sprites/player.py

    r450 r473  
    361361            self.drop_item()
    362362
     363    def add_tail(self, tail_type):
     364        if tail_type not in self._me.tails:
     365            self._me.tails.append(tail_type)
     366
    363367    def _bite_attack(self):
    364368        self.invisible = 0
Note: See TracChangeset for help on using the changeset viewer.