-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
executable file
·32 lines (30 loc) · 1.07 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# -*- coding: utf-8 -*-
from human import Human
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...
# ...positive trait b