示例#1
0
    def __init__(self):
        self.name = self.generate_setting()

        self.adjective = words.get_place_adj()

        self.props = [i[1].replace('_', ' ') for i in conceptnet_searcher.get_concept_relations(self.name) if i[0] == 'HasA']

        for i in range(2):
            self.props.append(words.get_fantasy_prop())

        random.shuffle(self.props)
        self.props = self.props[:2]

        print self.props

        self.old_name = (old_language_generator.translate_word(self.name) + ' ' + old_language_generator.random_word()).title()
        self.known_props = []

        self.race = words.get_fantasy_race()

        self.occupation = words.get_fantasy_occupation()

        self.danger = random.choice(['very dangerous', 'dangerous', 'safe'])

        self.lore_facts = ["This place was once known as *" + self.old_name + "*",
                           self.race.title() + " " + self.occupation + " once ruled this place",
                           "This is a " + self.danger + " " + random.choice(["place", self.name])]
        random.shuffle(self.lore_facts)
    def __init__(self):
        self.characters = [Person(), Person(), Person()]

        self.setting_map = []
        self.setting_map_location = 0
        for i in range(325):
            self.setting_map.append(Setting())

        self.food = random.randint(6, 12)
        self.energy = random.randint(6, 20)
        self.enemy_patrols = []

        self.wizard_name = old_language_generator.random_word().title() + " The " + words.get_living_thing_adj().title()

        self.macguffin_name = "The " + words.get_adj().title() + " " + words.get_fantasy_prop().title()

        self.goal_setting_name = "The " + words.get_place_adj().title() + random.choice([" Volcano", " Chasm", " Geyser" " Abyss"])
    def __init__(self):
        self.characters = [Person(), Person(), Person()]

        self.setting_map = []
        self.setting_map_location = 0
        for i in range(325):
            self.setting_map.append(Setting())

        self.food = random.randint(6, 12)
        self.energy = random.randint(6, 20)
        self.enemy_patrols = []

        self.wizard_name = old_language_generator.random_word().title(
        ) + " The " + words.get_living_thing_adj().title()

        self.macguffin_name = "The " + words.get_adj().title(
        ) + " " + words.get_fantasy_prop().title()

        self.goal_setting_name = "The " + words.get_place_adj().title(
        ) + random.choice([" Volcano", " Chasm", " Geyser"
                           " Abyss"])
示例#4
0
    def __init__(self):
        self.name = self.generate_setting()

        self.adjective = words.get_place_adj()

        self.props = [
            i[1].replace('_', ' ')
            for i in conceptnet_searcher.get_concept_relations(self.name)
            if i[0] == 'HasA'
        ]

        for i in range(2):
            self.props.append(words.get_fantasy_prop())

        random.shuffle(self.props)
        self.props = self.props[:2]

        print self.props

        self.old_name = (old_language_generator.translate_word(self.name) +
                         ' ' + old_language_generator.random_word()).title()
        self.known_props = []

        self.race = words.get_fantasy_race()

        self.occupation = words.get_fantasy_occupation()

        self.danger = random.choice(['very dangerous', 'dangerous', 'safe'])

        self.lore_facts = [
            "This place was once known as *" + self.old_name + "*",
            self.race.title() + " " + self.occupation +
            " once ruled this place", "This is a " + self.danger + " " +
            random.choice(["place", self.name])
        ]
        random.shuffle(self.lore_facts)