battleman.py: Updated documentation, added new stub functions to command list
This commit is contained in:
parent
7a0505fdf1
commit
efff42c306
11
battleman.py
11
battleman.py
|
@ -11,7 +11,6 @@
|
||||||
# for resuming a battle later
|
# for resuming a battle later
|
||||||
# * an option for passing in multiple files that contain combatant definitions
|
# * an option for passing in multiple files that contain combatant definitions
|
||||||
# * down combatants go into a separate list
|
# * down combatants go into a separate list
|
||||||
# * Ability for commands to accept partial data, and continue with selection from there
|
|
||||||
|
|
||||||
|
|
||||||
from dice import Dice
|
from dice import Dice
|
||||||
|
@ -511,6 +510,8 @@ def do_prompt():
|
||||||
do_heal(data)
|
do_heal(data)
|
||||||
elif comm == 't':
|
elif comm == 't':
|
||||||
do_add_temp_hp(data)
|
do_add_temp_hp(data)
|
||||||
|
elif comm == 'T':
|
||||||
|
print('Sorry, this is still a stub function.')
|
||||||
elif comm == 's':
|
elif comm == 's':
|
||||||
do_surge(data)
|
do_surge(data)
|
||||||
elif comm == 'so':
|
elif comm == 'so':
|
||||||
|
@ -519,12 +520,14 @@ def do_prompt():
|
||||||
do_second_wind(data)
|
do_second_wind(data)
|
||||||
elif comm == 'c':
|
elif comm == 'c':
|
||||||
do_add_condition(data)
|
do_add_condition(data)
|
||||||
elif comm == 'r':
|
elif comm == 'C':
|
||||||
do_remove_condition(data)
|
do_remove_condition(data)
|
||||||
elif comm == 'n':
|
elif comm == 'n':
|
||||||
battle.next_combatant()
|
battle.next_combatant()
|
||||||
elif comm == 'w':
|
elif comm == 'w':
|
||||||
print('Sorry, this is still a stub function.')
|
print('Sorry, this is still a stub function.')
|
||||||
|
elif comm == 'W':
|
||||||
|
print('Sorry, this is still a stub function.')
|
||||||
elif comm == 'q':
|
elif comm == 'q':
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
|
@ -539,13 +542,15 @@ p - print info for combatant/group with initiative
|
||||||
d - deal damage to someone
|
d - deal damage to someone
|
||||||
h - heal someone
|
h - heal someone
|
||||||
t - add temporary hit points
|
t - add temporary hit points
|
||||||
|
T - remove temporary hit points [stub]
|
||||||
s - use a healing surge
|
s - use a healing surge
|
||||||
so - use a healing surge, but don't regain hit points
|
so - use a healing surge, but don't regain hit points
|
||||||
sw - use a second wind
|
sw - use a second wind
|
||||||
c - apply a condition
|
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)
|
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 - 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""")
|
q - quit""")
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user