comparison skaapsteker/sprites/npcs.py @ 551:40a104ca0a69

Tear kimono
author Neil Muller <drnlmuller@gmail.com>
date Sun, 10 Apr 2011 01:28:03 +0200
parents ebd51cb1d672
children c4b14a517500
comparison
equal deleted inserted replaced
550:ebd51cb1d672 551:40a104ca0a69
1 from .base import NPC, BlockingNPC 1 from .base import NPC, BlockingNPC, PC_LAYER, notify
2 from pygame import transform 2 from pygame import transform
3 3
4 4
5 class Monk(NPC): 5 class Monk(NPC):
6 image_dir = 'sprites/monk' 6 image_dir = 'sprites/monk'
99 99
100 animation_regexes = [ 100 animation_regexes = [
101 ("standing", r"^.*_01.png$"), 101 ("standing", r"^.*_01.png$"),
102 ] 102 ]
103 103
104 collides_with = set([PC_LAYER])
105
106 def damage(self, damage):
107 """Destroy the kimono"""
108 if not self.world.missions.kumikos_kimono_torn:
109 self.world.missions.kumikos_kimono_torn = True
110 notify("Shoo, dirty fox! Oh, look what you've done"
111 "- you've made a great big tear in my finest silk kimono")
112
104 113
105 class FishMonger(NPC): 114 class FishMonger(NPC):
106 image_dir = 'sprites/fishmonger' 115 image_dir = 'sprites/fishmonger'
107 animation_regexes = [ 116 animation_regexes = [
108 ("standing", r"^.*_standing.png$"), 117 ("standing", r"^.*_standing.png$"),