-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGod.py
97 lines (82 loc) · 3.4 KB
/
God.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
#Fantaworld Building-Up by Noah Hodgson 2019-2021
#Goal is to convert the proof of concept code from the god generator into the fantasy world generator
#Version swaps over from dictionaries to classes.
#stores values needed for creating and using god's in order for them to interact with (evenetual) world
class God:
name: str = None
sphere: str = None
gender: str = None
god_of1: str = None
god_of2: str = None
involvement_level: int = None
has_angel_like: bool = None
has_pantheon: bool = None
has_incarnate: bool = None
appearance = {
"base": None,
"form": None,
"phys": None,
"item": None,
"countenance":None
}
is_alive = True
events = []
def print_god(self):
if(self.sphere == "force"):
print("This is " + self.name + ", the force of " + self.god_of1 + " and " + self.god_of2 + ". ")
elif(self.sphere == "eldritch"):
print("This is " + self.name + ", the ancient one, known for " + self.god_of1 + " and " + self.god_of2 + ". ")
else:
print("This is " + self.name + ", god of " + self.god_of1 + " and " + self.god_of2 + ". ")
#appearance will go here.
if(self.gender == "male"):
print("He has ", end = '')
elif (self.gender == "female"):
print("She has ", end = '')
elif(self.gender == "force"):
print("It has ", end = '')
else:
print("They have ", end = '')
#^^^Will be used in appearance as well^^^
#involve-level check
if(self.involvement_level == 0):
print("no interaction with the world. ")
elif(self.involvement_level > 0 and self.involvement_level <= 3):
print("little interaction with the world. ")
elif(self.involvement_level > 3 and self.involvement_level<= 6):
print("has decent interaction with the world. ")
elif(self.involvement_level > 6 and self.involvement_level <= 9):
print("has a lot of interaction with the world. ")
elif(self.involvement_level == 10):
print("lives among the people of the world. ")
else:
print("EXIT ERROR. YOU FORGOT HOW PYTHON WORKS")
#update to include sphere cases
if(self.has_angel_like == True):
print(self.name + " has angels. ")
else:
print(self.name +" does not have angels. ")
#has pantheon (pan might be a passed in argument)
if(self.has_pantheon == True):
print(self.name + " is part of a pantheon. ")
else:
print(self.name +" is not part of a pantheon. ")
#incarnates
if(self.has_incarnate == True):
print(self.name + " has an incarnate form. ")
else:
print(self.name +" does not have incarnate form. ")
print(self.appearance) ###Temporary
print("This is " + self.name + "'s overview.")
# constructor
def __init__(self, nm, sphr, gndr, g_of1, g_of2, inv_lvl, has_ang, has_pan, has_inc, appearance_dict):
self.name = nm
self.sphere = sphr
self.gender = gndr
self.god_of1 = g_of1
self.god_of2 = g_of2
self.involvement_level = inv_lvl
self.has_angel_like = has_ang
self.has_pantheon = has_pan
self.has_incarnate = has_inc
self.appearance = appearance_dict