From 3c78f41b93b562d18231154c54b5cac5ee4eb03d Mon Sep 17 00:00:00 2001 From: Anna Wiggins Date: Fri, 23 Mar 2012 20:47:25 -0400 Subject: [PATCH] battleman.py: cleanup help function --- battleman.py | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/battleman.py b/battleman.py index f50c4d3..808a107 100755 --- a/battleman.py +++ b/battleman.py @@ -515,6 +515,26 @@ def do_prompt(): sys.exit(0) +def do_help(): + print("""Possible commands: +? - print this help menu (yay, you already figured that one out) +a - add more combatants (works during battle) [stub] +b - begin the battle +l - list combatants +p - print info for combatant/group with initiative +d - deal damage to someone +h - heal someone +t - add temporary hit points +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) +n - next (end the current combat group's turn) +w - wait (remove a combatant from the initiative order and into a separate pool) [stub] +q - quit""") + + def do_damage(data): if (data): if len(data) != 2: @@ -648,26 +668,6 @@ def do_remove_condition(data): c.remove_condition(index) -def do_help(): - print("""Possible commands: -? - print this help menu (yay, you already figured that one out) -a - add more combatants (works during battle) [stub] -b - begin the battle -l - list combatants -p - print info for combatant/group with initiative -d - deal damage to someone -h - heal someone -t - add temporary hit points -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 [stub] -r - remove a condition (this can also happen automatically) [stub] -n - next (end the current combat group's turn) -w - wait (remove a combatant from the initiative order and into a separate pool) [stub] -q - quit""") - - def input_str(prompt, default=None, show_default=False, prompt_str=':'): full_prompt = prompt if default != None and show_default: