Mercurial > skaapsteker
diff skaapsteker/sprites/items.py @ 525:8087e95ade2f
More cannon stuff
author | Neil Muller <drnlmuller@gmail.com> |
---|---|
date | Sat, 09 Apr 2011 23:40:50 +0200 |
parents | 4de4f94c326d |
children | 0ffb493a6fa4 |
line wrap: on
line diff
--- a/skaapsteker/sprites/items.py Sat Apr 09 23:46:07 2011 +0200 +++ b/skaapsteker/sprites/items.py Sat Apr 09 23:40:50 2011 +0200 @@ -197,6 +197,15 @@ liftable = False + def setup(self, block, **opts): + super(Cannon, self).setup(**opts) + self.block = block + + def smash(self): + self._me.block = False + self.block = False + super(Cannon, self).smash() + self.world.missions.cannon_destroyed = True ##################################################