Fixed some bugs with Second Wind and with recharge formatting
This commit is contained in:
parent
23de097725
commit
261304d78b
|
@ -557,12 +557,13 @@ class Combatant():
|
||||||
return
|
return
|
||||||
|
|
||||||
self.surges -= 1
|
self.surges -= 1
|
||||||
|
self.sw -= 1
|
||||||
|
|
||||||
print '{} got their second wind!'.format(self)
|
print '{} got their second wind!'.format(self)
|
||||||
|
|
||||||
# Now the actual effects of the SW
|
# Now the actual effects of the SW
|
||||||
self.use_surge()
|
self.use_surge()
|
||||||
self.add_condition('Second Wind (+2 all def)', 't', 1)
|
self.add_condition('Second Wind (+2 all def)', 't', 1, 's')
|
||||||
|
|
||||||
|
|
||||||
def use_recharge_power(self, index):
|
def use_recharge_power(self, index):
|
||||||
|
@ -638,7 +639,7 @@ recharge powers:
|
||||||
|
|
||||||
return summary.rstrip()
|
return summary.rstrip()
|
||||||
|
|
||||||
def format_recharge_summary(self, initial):
|
def format_recharge_summary(self, initial=''):
|
||||||
summary = ''
|
summary = ''
|
||||||
for (index, r) in self.recharges.items():
|
for (index, r) in self.recharges.items():
|
||||||
summary = summary + '{}{}: {} (Recharge: {}, Available: {})\n'.format(initial, index, r['name'], r['value'], ['Yes', 'No'][ r['used'] ])
|
summary = summary + '{}{}: {} (Recharge: {}, Available: {})\n'.format(initial, index, r['name'], r['value'], ['Yes', 'No'][ r['used'] ])
|
||||||
|
|
Loading…
Reference in New Issue
Block a user