예제 #1
0
    def generate_combat(self):

        combat_method_output = random_table_handler("combat_methods", random.randint(1, 100))
        combat_target_output = random_table_handler("combat_targets", random.randint(1, 100))

        output = "[COMBAT] \nCombat Method : {combat_method_output} \n" \
                 "Combat Target : {combat_target_output} \n".format(**locals())

        return output
예제 #2
0
    def generate_trap(self):

        trap_event_output = random_table_handler("delves_trap_event",
                                                 random.randint(1, 25))
        trap_component_output = random_table_handler("delves_trap_component",
                                                     random.randint(1, 25))

        output = "[Trap] \nTrap Event : {trap_event_output} \nTrap Component : {trap_component_output} \n".format(
            **locals())

        return output
예제 #3
0
    def generate_event(self):

        event_theme = random.randint(1, 100)
        event_actions = random.randint(1, 100)

        event_theme_output = random_table_handler("themes", event_theme)
        event_actions_output = random_table_handler("actions", event_actions)

        output = "[EVENT] \nTheme : {event_theme_output} \n" \
                 "Action : {event_actions_output} \n".format(**locals())

        return output
예제 #4
0
    def generate_tavern(self):

        tavern_type_output = random_table_handler("tavern",
                                                  random.randint(1, 20))
        tavern_name_prefix = random_table_handler("travern_prefix",
                                                  random.randint(1, 20))
        tavern_name_sufix = random_table_handler("travern_sufix",
                                                 random.randint(1, 20))
        tavern_name = tavern_name_prefix + " " + tavern_name_sufix

        output = "[BUILDING - TARVERN] \n{tavern_type_output}\n{tavern_name} \n".format(
            **locals())

        return output
예제 #5
0
    def generate_loot(self):

        loot_output = random_table_handler("loots", random.randint(1, 8))

        output = "[LOOT] \n{loot_output} \n".format(**locals())

        return output
예제 #6
0
    def generate_waypoint(self):

        location = random.randint(1, 100)
        location_desc_001 = random.randint(1, 100)
        location_desc_002 = random.randint(1, 100)

        location_output = random_table_handler("locations", location)
        location_desc_001_output = random_table_handler(
            "locations_descriptors", location_desc_001)
        location_desc_002_output = random_table_handler(
            "locations_descriptors", location_desc_002)

        output = "[WAYPOINT] \nAfter a day's travel, you have arrived at a \nLocation : {location_output} \n" \
                 "Location Descriptor : {location_desc_001_output} {location_desc_002_output} \n".format(**locals())

        return output
예제 #7
0
    def generate_dangers(self, theme, domain):

        danger_dice = random.randint(1, 100)

        if danger_dice <= 30:
            danger_output = random_table_handler(
                "theme_{}_dangers".format(theme), danger_dice)
        if danger_dice >= 31 and danger_dice <= 45:
            danger_output = random_table_handler(
                "domain_{}_dangers".format(domain), danger_dice)
        if danger_dice > 45:
            danger_output = random_table_handler("delves_dangers", danger_dice)

        output = "[Danger] \nDanger : {danger_output} \n".format(**locals())

        return output
예제 #8
0
    def generate_residence(self):

        residence_output = random_table_handler("residence",
                                                random.randint(1, 20))
        output = "[BUILDING - RESIDENCE] \n{residence_output} \n".format(
            **locals())

        return output
예제 #9
0
    def generate_religious(self):

        religious_output = random_table_handler("religious",
                                                random.randint(1, 20))
        output = "[BUILDING - RELIGIOUS] \n{religious_output} \n".format(
            **locals())

        return output
예제 #10
0
    def generate_warehouse(self):

        warehouse_output = random_table_handler("warehouse",
                                                random.randint(1, 20))
        output = "[BUILDING - WAREHOUSE] \n{warehouse_output} \n".format(
            **locals())

        return output
예제 #11
0
    def generate_opportunity(self):

        opportunity_output = random_table_handler("delves_opportunity",
                                                  random.randint(1, 100))

        output = "[Opportunity] \nOpportunity : {opportunity_output} \n".format(
            **locals())

        return output
예제 #12
0
    def generate_features(self, theme, domain):

        feature_dice = random.randint(1, 100)

        if feature_dice < 21:
            feature_output = random_table_handler(
                "theme_{}_features".format(theme), feature_dice)
        else:
            feature_output = random_table_handler(
                "domain_{}_features".format(domain), feature_dice)

        feature_aspect_output = random_table_handler("delves_features_aspect",
                                                     random.randint(1, 50))
        feature_focus_output = random_table_handler("delves_features_aspect",
                                                    random.randint(1, 50))

        output = "[Feature] \nFeature : {feature_output} \nFeature Aspect: {feature_aspect_output} \nFeature Focus: {feature_focus_output}\n".format(
            **locals())

        return output
예제 #13
0
    def __init__(self):

        self.npc_name = random_table_handler("npc_names",
                                             random.randint(1, 200))
        self.npc_desc_001 = random_table_handler("npc_descriptors",
                                                 random.randint(1, 100))
        self.npc_desc_002 = random_table_handler("npc_descriptors",
                                                 random.randint(1, 100))
        self.npc_desc_003 = random_table_handler("npc_descriptors",
                                                 random.randint(1, 100))
        self.npc_role = random_table_handler("npc_role",
                                             random.randint(1, 100))
        self.npc_goal = random_table_handler("npc_goal",
                                             random.randint(1, 100))
        self.npc_stance = random_table_handler("npc_stance",
                                               random.randint(1, 10))
예제 #14
0
    def __init__(self):

        name_prefix = random_table_handler("settlement_prefix",
                                           random.randint(1, 100))
        name_sufix = random_table_handler("settlement_sufix",
                                          random.randint(1, 100))

        self.stl_name = name_prefix + name_sufix
        self.stl_governement = random_table_handler("settlement_governement",
                                                    random.randint(1, 100))
        self.stl_known_for = random_table_handler("settlement_known_for",
                                                  random.randint(1, 20))
        self.stl_trait = random_table_handler("settlement_traits",
                                              random.randint(1, 20))
        self.stl_trouble = random_table_handler("settlement_trouble",
                                                random.randint(1, 20))
예제 #15
0
    def generate_shop(self):

        shop_output = random_table_handler("shop", random.randint(1, 20))
        output = "[BUILDING - SHOP] \n{shop_output} \n".format(**locals())

        return output
예제 #16
0
    def generate_urban_event(self):
        urban_event = random.randint(1, 12) + random.randint(1, 8)
        urban_event_output = random_table_handler("urban_events", urban_event)

        output = "[EVENT] \n{urban_event_output} \n".format(**locals())
        return output
예제 #17
0
    def generate_pay_the_price(self):
        pay_the_price_output = random_table_handler("pay_the_price", random.randint(1, 100))

        output = "[PAY THE PRICE] \n{pay_the_price_output} \n".format(**locals())

        return output