home · contact · privacy
For available map directions, remove dependency on map 0,0.
authorChristian Heller <c.heller@plomlompom.de>
Sat, 27 Apr 2019 19:07:31 +0000 (21:07 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Sat, 27 Apr 2019 19:07:31 +0000 (21:07 +0200)
new/plomrogue/game.py

index de6f0c03d00f22a23f278b5c8dfa4c08b8c05e52..d1c9c665ffb18649f5819831ef2193e48a0b3cdf 100755 (executable)
@@ -199,7 +199,7 @@ class Game:
 
     def get_string_options(self, string_option_type):
         if string_option_type == 'direction':
-            return self.world.maps[YX(0,0)].get_directions()
+            return self.map_type().get_directions()
         elif string_option_type == 'thingtype':
             return list(self.thing_types.keys())
         return None