def alter_dungeon(self, layout): self.build_furnisher('prison').furnish(layout) trap_source = TrapSource(self.level) self.build_populator('jailers', trap_source=trap_source, wandering=False).populate(layout) return layout
def alter_dungeon(self, layout): self.build_furnisher('temple').furnish(layout) trap_source = TrapSource(self.level, trap_class='magical') self.build_populator(self.get_monster_sets(), trap_source=trap_source, wandering=True).populate(layout) return layout
def alter_dungeon(self, layout): self.build_furnisher('treasure vault').furnish(layout) trap_source = TrapSource(self.level) self.build_populator(self.get_monster_sets(), trap_source=trap_source, wandering=False).populate(layout) return layout
def alter_dungeon(self, layout): self.build_furnisher(self.type, self.theme).furnish(layout) Library().add_special_furnishing(layout) trap_source = TrapSource(1) self.build_populator(layout.theme, trap_source=trap_source, wandering=False).populate(layout) return layout
def alter_dungeon(self, layout): self.build_furnisher('stronghold').furnish(layout) trap_source = TrapSource(self.level, trap_class='mechanical', random_state=self.random_state) populator = self.build_populator(monster_sets=None, trap_source=trap_source) populator.populate(layout) return layout
def alter_dungeon(self, layout): self.build_furnisher('ossuary').furnish(layout) trap_source = TrapSource(self.level) self.build_populator('dead', trap_source=trap_source, wandering=False).populate(layout) return layout
def alter_dungeon(self, layout): self.build_furnisher('temple').furnish(layout) trap_source = TrapSource(self.level) self.build_populator(self.get_monster_sets(), trap_source=trap_source).populate(layout) return layout
def test_trap_api(): source = TrapSource(5)