diff --git a/battleman.py b/battleman.py index 5c784fc..199fbc8 100755 --- a/battleman.py +++ b/battleman.py @@ -511,7 +511,7 @@ def do_prompt(): elif comm == 't': do_add_temp_hp(data) elif comm == 'T': - print('Sorry, this is still a stub function.') + do_remove_temp_hp(data) elif comm == 's': do_surge(data) elif comm == 'so': @@ -525,8 +525,9 @@ def do_prompt(): elif comm == 'n': battle.next_combatant() elif comm == 'w': - print('Sorry, this is still a stub function.') + do_wait(data) elif comm == 'W': + do_unwait(data) print('Sorry, this is still a stub function.') elif comm == 'q': sys.exit(0) @@ -612,6 +613,10 @@ def do_add_temp_hp(data): c.add_temp_hp(amount) +def do_remove_temp_hp(data): + do_stub() + + def do_surge(data, heal=True): if len(data) >= 1: c = battle.get_combatant(int(data[0])) @@ -680,6 +685,18 @@ def do_remove_condition(data): c.remove_condition(index) +def do_wait(data): + do_stub() + + +def do_unwait(data): + do_stub() + + +def do_stub(): + print("Sorry, this is a stub function") + + def input_str(prompt, default=None, show_default=False, prompt_str=':'): full_prompt = prompt if default != None and show_default: