Mercurial > skaapsteker
comparison skaapsteker/sprites/base.py @ 584:b8bed508036f
Don't steal life from skulls
author | Stefano Rivera <stefano@rivera.za.net> |
---|---|
date | Sun, 10 Apr 2011 16:17:21 +0200 |
parents | 91ad18a5acf1 |
children | 1386cae4cc15 |
comparison
equal
deleted
inserted
replaced
583:194f71cc0689 | 584:b8bed508036f |
---|---|
357 def collided(self, other): | 357 def collided(self, other): |
358 if not isinstance(other, self.hits): | 358 if not isinstance(other, self.hits): |
359 return | 359 return |
360 if hasattr(other, 'damage'): | 360 if hasattr(other, 'damage'): |
361 other.damage(self.DAMAGE) | 361 other.damage(self.DAMAGE) |
362 if hasattr(self.source, 'steal_life'): | 362 if hasattr(self.source, 'steal_life'): |
363 self.source.steal_life(self.DAMAGE) | 363 self.source.steal_life(self.DAMAGE) |
364 self.explode() | 364 self.explode() |
365 | 365 |
366 | 366 |
367 class Item(GameSprite): | 367 class Item(GameSprite): |
368 mobile = False | 368 mobile = False |