2 from random
import choice
as randchoice
5 map_module
= __import__('mods.%s.maps' % mod
, globals(), locals(), [''])
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
)