From efff42c3063d03372b305f939806303a740b79f2 Mon Sep 17 00:00:00 2001 From: Anna Wiggins Date: Fri, 23 Mar 2012 21:51:55 -0400 Subject: [PATCH] battleman.py: Updated documentation, added new stub functions to command list --- battleman.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/battleman.py b/battleman.py index 89da090..5c784fc 100755 --- a/battleman.py +++ b/battleman.py @@ -11,7 +11,6 @@ # for resuming a battle later # * an option for passing in multiple files that contain combatant definitions # * down combatants go into a separate list -# * Ability for commands to accept partial data, and continue with selection from there from dice import Dice @@ -511,6 +510,8 @@ def do_prompt(): do_heal(data) elif comm == 't': do_add_temp_hp(data) + elif comm == 'T': + print('Sorry, this is still a stub function.') elif comm == 's': do_surge(data) elif comm == 'so': @@ -519,12 +520,14 @@ def do_prompt(): do_second_wind(data) elif comm == 'c': do_add_condition(data) - elif comm == 'r': + elif comm == 'C': do_remove_condition(data) elif comm == 'n': battle.next_combatant() elif comm == 'w': print('Sorry, this is still a stub function.') + elif comm == 'W': + print('Sorry, this is still a stub function.') elif comm == 'q': sys.exit(0) @@ -539,13 +542,15 @@ p - print info for combatant/group with initiative d - deal damage to someone h - heal someone t - add temporary hit points +T - remove temporary hit points [stub] s - use a healing surge so - use a healing surge, but don't regain hit points sw - use a second wind c - apply a condition -r - remove a condition (this can also happen automatically) +C - remove a condition n - next (end the current combat group's turn) w - wait (remove a combatant from the initiative order and into a separate pool) [stub] +W - unwait (put a combatant back into the active battle) [stub] q - quit""")