More map system progress, still broken.
[realism.git] / engine / maps.py
blob71539e80cbd71577833eed5cd11b7fa8d73398af
1 from args import mod
2 from random import choice as randchoice
4 try:
5 map_module = __import__('mods.%s.maps' % mod, globals(), locals(), [''])
6 except ImportError:
7 import main_game.maps as map_module
9 # Yes, this is ugly. Unfortunately, this is the only way to emulate
10 # from mods.<modname>.monsters import *. Since this is the cleanest way to use
11 # monsters, items, etc., this is what we do.
12 globals().update(map_module.__dict__)
14 for game_map in maps.values():
15 game_map.validate(maps)