Fixed some bugs with Second Wind and with recharge formatting

This commit is contained in:
Anna Rose 2012-07-06 21:25:11 -04:00
parent 23de097725
commit 261304d78b

View File

@ -557,12 +557,13 @@ class Combatant():
return
self.surges -= 1
self.sw -= 1
print '{} got their second wind!'.format(self)
# Now the actual effects of the SW
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):
@ -638,7 +639,7 @@ recharge powers:
return summary.rstrip()
def format_recharge_summary(self, initial):
def format_recharge_summary(self, initial=''):
summary = ''
for (index, r) in self.recharges.items():
summary = summary + '{}{}: {} (Recharge: {}, Available: {})\n'.format(initial, index, r['name'], r['value'], ['Yes', 'No'][ r['used'] ])