battleman.py: cleanup help function
This commit is contained in:
parent
55feb9b55c
commit
3c78f41b93
40
battleman.py
40
battleman.py
|
@ -515,6 +515,26 @@ def do_prompt():
|
||||||
sys.exit(0)
|
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):
|
def do_damage(data):
|
||||||
if (data):
|
if (data):
|
||||||
if len(data) != 2:
|
if len(data) != 2:
|
||||||
|
@ -648,26 +668,6 @@ def do_remove_condition(data):
|
||||||
c.remove_condition(index)
|
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=':'):
|
def input_str(prompt, default=None, show_default=False, prompt_str=':'):
|
||||||
full_prompt = prompt
|
full_prompt = prompt
|
||||||
if default != None and show_default:
|
if default != None and show_default:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user