Changeset 551:40a104ca0a69


Ignore:
Timestamp:
04/09/11 23:28:03 (12 years ago)
Author:
Neil Muller <drnlmuller@…>
Branch:
default
Phase:
public
Rebase:
33623066306464636562346434306138376362666436356335656632303338343163336638666465
Message:

Tear kimono

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • data/npcs/kumiko.json

    r502 r551  
    2323    },
    2424    "torn" : {
    25         "text" : "Shoo, dirty fox! Oh, look what you’ve done – you’ve made a great big tear in my finest silk kimono. What will the businessman think of a ragged dress like this?",
     25        "text" : "What will the businessman think of a ragged dress like this?",
    2626        "events" : [
    2727            { "matches" : "npcs.kaneda.state == 'kumiko'", "next": "state.kaneda" }
  • skaapsteker/sprites/base.py

    r549 r551  
    99from ..physics import Sprite
    1010from ..constants import Layers
    11 from ..engine import OpenDialog, AddSpriteEvent
     11from ..engine import OpenDialog, AddSpriteEvent, OpenNotification
    1212from .. import data
    1313from .. import dialogue
     
    2222NPC_LAYER = 2
    2323PROJECTILE_LAYER = 3
     24
     25def notify(text):
     26    OpenNotification.post(text=text)
    2427
    2528
  • skaapsteker/sprites/items.py

    r543 r551  
    11from .. import engine, data, sound
    2 from .base import Item, PC_LAYER, PROJECTILE_LAYER
     2from .base import Item, PC_LAYER, PROJECTILE_LAYER, notify
    33
    44import time
    55
    66
    7 
    8 def notify(text):
    9     engine.OpenNotification.post(text=text)
    107
    118
  • skaapsteker/sprites/npcs.py

    r550 r551  
    1 from .base import NPC, BlockingNPC
     1from .base import NPC, BlockingNPC, PC_LAYER, notify
    22from pygame import transform
    33
     
    102102    ]
    103103
     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
    104113
    105114class FishMonger(NPC):
Note: See TracChangeset for help on using the changeset viewer.