Did I find the right examples for you? yes no

All Samples(5)  |  Call(5)  |  Derive(0)  |  Import(0)

src/d/a/darktower-rl-HEAD/storytelling/npc.py   darktower-rl(Download)
    def generate_description(self, which, world):
        """Generates a random description for kill-dude background"""
        global parsed_kd_des
        if parsed_kd_des is None:
            parsed_kd_des = util.parseDes('killdude_background', KillDudeBackground)[0]
    def generate_scenario(self, world):
        global parsed_vp_des
        if not parsed_vp_des:
            parsed_vp_des = util.parseDes('sightseeing', util.Des)[0]
 

src/d/a/darktower-rl-HEAD/storytelling/world.py   darktower-rl(Download)
    target = None
    while True:
        whats = util.parseDes(what, dungeon_generators.MapDef, 'rooms')
        target = random.choice(whats)
        if not unique: break

src/d/a/darktower-rl-HEAD/storytelling/background.py   darktower-rl(Download)
class WordsVocab(object):
    pass
v = util.parseDes('words', WordsVocab)[0]
adjectives = map(lambda x: x.strip() , v.adjectives_def.splitlines())
nouns = map(lambda x: x.strip() , v.nouns_def.splitlines())
def make_story():
    background = util.parseDes('background', Background)[0]
    parts = []
    for part in (background.born, background.fillers, background.teachers):
        phraselist = map(lambda x: x.strip(), part.splitlines())