1 from character
import character
2 from being
import agility
, zen
8 def __init__(self
, chars
):
13 for char
in self
.chars
:
18 def living_chars(self
):
19 return [char
for char
in self
.chars
if char
.is_alive()]
21 def claim_chars(self
):
22 for char
in self
.chars
:
25 def find_max(self
, ability
):
28 for char
in self
.chars
:
29 if char
.stats
[ability
] > max:
30 max = char
.stats
[ability
]
36 return self
.find_max(zen
)[1]
39 max_zen
= self
.find_max(zen
)[0]
40 return max(int(max_zen
* .9), max_zen
- 5)
42 def agility_bleed(self
):
43 max_agility
= self
.find_max(agility
)[0]
44 return max(int(max_agility
* .9), max_agility
- 5)
46 class HeroParty(Party
):
50 chars
= [character(name
="FM", level
=1, character_number
=0, pronoun
="he")]
51 Party
.__init
__(self
, chars
)
53 def got_item(self
, item
):
54 for inv
in self
.items
:
56 inv
.count
+= item
.count
58 self
.items
.append(item
)
60 def lost_item(self
, item
, num
):
61 self
.items
[item
].count
-= num
62 if self
.items
[item
].count
<= 0:
70 if healing_stone
in self
.items
: