-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMISC_quests.py
64 lines (50 loc) · 1.65 KB
/
MISC_quests.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
from imports import *
############
## QUESTS ##
############
class Quest:
def __init__(self, stage, pinned):
self.name = "Goran's Quest"
self.priority = 3
# 3 = Red (Main Questline)
# 2 = Yellow (High Priority)
# 1 = Blue (Medium Priority)
# 0 = Gray (Low Priority)
# self.acts = [0,1,2,3,4,5,6]
# 0 = Prologue/Tutorial/Whatever
# 1-6 = Acts I-VI
self.desc = "Help Goran Do Something"
self.subtasks = [
"Talk to Goran",
"Get Item",
"Talk again with Goran"
]
self.stage = stage
self.pinned = pinned
def getName(self):
return "|" + ("R", "Y", "LB", "DG")[3 - self.priority] + "| " + self.name + ("|R| 🝯" if self.pinned else "")
def printDesc(self, offset):
startStr = "\x1b[{}C".format(offset)
printC(startStr + "|{}".format(("R", "Y", "LB", "DG")[3 - self.priority]) + "|" + self.name)
print(startStr + "━" * 50)
#prioEndStr = (", |G|Pinned" if self.pinned else "")
if self.priority == 3:
printC(startStr + "|R|Main Questline")
elif self.priority == 2:
printC(startStr + "|Y|High Priority Quest")
elif self.priority == 1:
printC(startStr + "|LB|Medium Priority Quest")
else:
printC(startStr + "|DG|Low Priority Quest")
#printC(startStr + "|DG|*" + self.desc + "*")
print()
for i in range(len(self.subtasks)):
if i == self.stage:
printC(startStr + "|Y|! |W|" + self.subtasks[i])
break
else:
printC(startStr + "|G|√ |B|" + self.subtasks[i])
def toggleQuestPin(self):
self.pinned = not self.pinned
def isComplete(self):
return self.stage >= len(self.subtasks)