Changeset 562:91ad18a5acf1


Ignore:
Timestamp:
04/10/11 00:09:19 (12 years ago)
Author:
Jeremy Thurgood <firxen@…>
Branch:
default
Phase:
public
Message:

Celestial Doorway now counts tails.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • data/levels/town.json

    r541 r562  
    4848        "to_tea_house": {"type": "Doorway", "pos": [29, 3], "facing": "right", "leadsto": "tea_house.starting"},
    4949        "to_market": {"type": "Doorway", "pos": [44, 6], "facing": "right", "leadsto": "market.starting"},
    50         "to_celestial_plane": {"type": "Doorway", "pos": [59, 14], "facing": "left", "leadsto": "celestial_plane.starting"}
     50        "to_celestial_plane": {"type": "CelestialDoorway", "pos": [59, 14], "facing": "left", "leadsto": "celestial_plane.starting"}
    5151    },
    5252    "music" : {
  • skaapsteker/levelscene.py

    r561 r562  
    6060        for sprite in self._level.sprites:
    6161            # XXX: NOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO!
    62             if isinstance(sprite, base.Monster):
     62            if isinstance(sprite, base.Monster) or isinstance(sprite, base.CelestialDoorway):
    6363                sprite.world = game_state.world
    6464            self._world.add(sprite)
  • skaapsteker/sprites/base.py

    r551 r562  
    451451
    452452
     453class CelestialDoorway(Doorway):
     454    def player_action(self, player):
     455        from .. import engine
     456        if len(self.world.fox.tails) < 8:
     457            engine.OpenNotification.post(text="You need eight tails to enter the Celestial Plane.")
     458            return
     459        super(CelestialDoorway, self).player_action(player)
     460
     461
     462
    453463class StartingDoorway(Doorway):
    454464    actionable = False
Note: See TracChangeset for help on using the changeset viewer.