battleman.py: Updated documentation, added new stub functions to command list

This commit is contained in:
Anna Rose 2012-03-23 21:51:55 -04:00
parent 7a0505fdf1
commit efff42c306

View File

@ -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""")