-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnpcClass.py
38 lines (33 loc) · 969 Bytes
/
npcClass.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
from SystemClass import all_npc
class npc:
def __init__(self, role, skillSet, level, highGain):
self.role = role
self.skillSet = skillSet
self.level = level
self.highGain = highGain
def tostring(self):
text = ''
text += all_npc['name'][self.role]
text += " LV:"
text += self.level
text += " 高收益:"
text += str(self.highGain)
return text
def toFullString(self):
text = ''
text += all_npc['name'][self.role]
text += " LV:"
text += self.level
text += " 难度:"
text += str(self.highGain)
text += self.skillSet.toString()
return text
def make_gu_text(self):
text = ""
text += all_npc['data'][self.role]
text += self.skillSet.make_gu_npc_text()
text += " "
text += self.level
text += " "
text += str(self.highGain)
return text