Beispiel #1
0
 def generate_extra_info(self, char, print_extra_info):
     char.generate_info("build", Roll.a_dice("3d6"))
     char.generate_info("age", Roll.a_dice("3d6"))
     char.generate_info("appearence", Roll.a_dice("3d6"))
     if print_extra_info:
         print("Age: " + char.char_age)
         print("Appearence: " + char.char_appearence)
         print("Build: " + char.char_build)
Beispiel #2
0
 def generate_extra_info(self, char, print_extra_info):
     char.generate_info("form", Roll.a_dice("3d6"))
     char.generate_info("appearence", Roll.a_dice("3d6"))
     char.generate_info("purpose", Roll.a_dice("1d20"))
     char.generate_info("age", Roll.a_dice("3d6"))
     if print_extra_info:
         print("Form: " + char.char_form)
         print("Appearence: " + char.char_appearence)
         print("Purpose: " + char.char_purpose)
         print("Age: " + char.char_age)
Beispiel #3
0
 def generate_extra_info(self, char, print_extra_info):
     char.generate_info("build", Roll.a_dice("3d6"))
     char.generate_info("odd_habit", Roll.a_dice("1d20"))
     char.generate_info("age", Roll.a_dice("3d6"))
     char.generate_info("appearence", Roll.a_dice("1d20"))
     if print_extra_info:
         print("Age: " + char.char_age)
         print("Distinctive Appearence: " + char.char_appearence)
         print("Build: " + char.char_build)
         print("Odd Habit: " + char.char_odd_habit)
 def generate_extra_info(self, char, print_extra_info):
     char.generate_info("apparent_ancestry", Roll.a_dice("3d6"))
     char.generate_info("apparent_gender", Roll.a_dice("1d6"))
     char.generate_info("true_age", Roll.a_dice("3d6"))
     char.generate_info("quirk", Roll.a_dice("1d20"))
     print("Apparent Ancestry: " + char.char_apparent_ancestry)
     print("Apparent Gender: " + char.char_apparent_gender)
     print("True Age: " + char.char_true_age)
     print("Quirk: " + char.char_quirk)
     if "human" in char.char_apparent_ancestry:
         apparent_Ancestry = Human()
     elif "dwarf" in char.char_apparent_ancestry:
         apparent_Ancestry = Dwarf()
     elif "goblin" in char.char_apparent_ancestry:
         apparent_Ancestry = Goblin()
     elif "orc" in char.char_apparent_ancestry:
         apparent_Ancestry = Orc()
     apparent_Ancestry.generate_extra_info(apparent_Ancestry, False)
     print("Apparent Age: " + apparent_Ancestry.char_age)
     print("Apparent Build: " + apparent_Ancestry.char_build)
     print("Apparent Appearence: " + apparent_Ancestry.char_appearence)
Beispiel #5
0
def create_char():
    character = random.choice(
        [Human(), Changeling(),
         Clockwork(),
         Dwarf(), Goblin(),
         Orc()])
    character.generate_name()
    character.char_level = 0
    character.generate_info("background", Roll.a_dice("1d20"))
    character.generate_info("personality", Roll.a_dice("3d6"))
    character.generate_profession(Roll.a_dice("1d20"))
    character.generate_personality(Roll.a_dice("1d20"), Roll.a_dice("1d20"),
                                   Roll.a_dice("1d20"))
    character.generate_interesting_things(Roll.a_dice("1d6"),
                                          Roll.a_dice("1d20"))
    character.generate_wealth(Roll.a_dice("3d6"))
    Printer.print_common_info(character)
    character.generate_extra_info(character, True)
    return render_template('index.html', character=character)
Beispiel #6
0
from changeling import Changeling
from clockwork import Clockwork
from dwarf import Dwarf
from goblin import Goblin
from orc import Orc
from roll import Roll
from printer import Printer
import random

character = random.choice(
    [Human(), Changeling(),
     Clockwork(), Dwarf(),
     Goblin(), Orc()])
character.generate_name()
character.char_level = 0
character.generate_info("background", Roll.a_dice("1d20"))
character.generate_info("personality", Roll.a_dice("3d6"))
character.generate_profession(Roll.a_dice("1d20"))
character.generate_personality(Roll.a_dice("1d20"), Roll.a_dice("1d20"),
                               Roll.a_dice("1d20"))
character.generate_interesting_things(Roll.a_dice("1d6"), Roll.a_dice("1d20"))
character.generate_wealth(Roll.a_dice("3d6"))
Printer.print_common_info(character)
character.generate_extra_info(character, True)

# to-dos
# add seed database generator
# add pdf cheet generator
# add ancestry descriptions
# configure view for changeling
# remove the generated positive trait a from the list when generate the...