def __init__(self, *args, **kwargs): lvl_gen = LevelGenerator(w=5, h=5, lit=True) lvl_gen.add_sink() des_file = lvl_gen.get_des() reward_manager = RewardManager() reward_manager.add_positional_event("sink", "quaff") super().__init__( *args, des_file=des_file, reward_manager=reward_manager, **kwargs )
def __init__(self, *args, **kwargs): lvl_gen = LevelGenerator(w=5, h=5, lit=True) lvl_gen.add_altar("random", "neutral", "altar") des_file = lvl_gen.get_des() reward_manager = RewardManager() reward_manager.add_positional_event("altar", "pray") super().__init__( *args, des_file=des_file, reward_manager=reward_manager, **kwargs )