diff skaapsteker/sprites/base.py @ 562:91ad18a5acf1

Celestial Doorway now counts tails.
author Jeremy Thurgood <firxen@gmail.com>
date Sun, 10 Apr 2011 02:09:19 +0200
parents 40a104ca0a69
children b8bed508036f
line wrap: on
line diff
--- a/skaapsteker/sprites/base.py	Sun Apr 10 02:02:53 2011 +0200
+++ b/skaapsteker/sprites/base.py	Sun Apr 10 02:09:19 2011 +0200
@@ -450,6 +450,16 @@
 
 
 
+class CelestialDoorway(Doorway):
+    def player_action(self, player):
+        from .. import engine
+        if len(self.world.fox.tails) < 8:
+            engine.OpenNotification.post(text="You need eight tails to enter the Celestial Plane.")
+            return
+        super(CelestialDoorway, self).player_action(player)
+
+
+
 class StartingDoorway(Doorway):
     actionable = False