comparison skaapsteker/sprites/items.py @ 473:14cab059bf39

More tails.
author Simon Cross <hodgestar@gmail.com>
date Sat, 09 Apr 2011 21:29:13 +0200
parents 3b680634c546
children 9e85c30dd12f
comparison
equal deleted inserted replaced
472:2375bc040e63 473:14cab059bf39
222 222
223 class Tail(Item): 223 class Tail(Item):
224 224
225 image_file = None 225 image_file = None
226 tail_type = None 226 tail_type = None
227 help_msg = None
227 228
228 def player_action(self, player): 229 def player_action(self, player):
229 player.add_tail(self.tail_type) 230 player.add_tail(self.tail_type)
231 notify(self.help_msg)
230 self.remove() 232 self.remove()
231 233
232 234
233 class ShapeshiftTail(Tail): 235 class ShapeshiftTail(Tail):
234 image_file = 'icons/tails/shapeshifted.png' 236 image_file = 'icons/tails/shapeshifted.png'
235 tail_type = 'shapeshift' 237 tail_type = 'shapeshift'
238 help_msg = "Shapeshifting tail. Press C to shape shift." \
239 " Your powers are more limited while in human form."
236 240
237 241
238 class FireballTail(Tail): 242 class FireballTail(Tail):
239 image_file = 'icons/tails/fireball.png' 243 image_file = 'icons/tails/fireball.png'
240 tail_type = 'fireball' 244 tail_type = 'fireball'
245 help_msg = "Fireball tail. The X attack key now shoots fireballs."
246
247
248 class 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
255 class 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
262 class 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
269 class 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
276 class 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
283 class 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."