From f4a2b6e623c0ba9c7edea168f5f6d865c5115ce9 Mon Sep 17 00:00:00 2001 From: boombaklops <116023863+boombaklops@users.noreply.github.com> Date: Mon, 24 Oct 2022 23:39:07 -0500 Subject: [PATCH] Update ose_retainer_gen.py fixed rangers not getting weapons or armor --- ose_retainer_gen.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ose_retainer_gen.py b/ose_retainer_gen.py index 58f122e..0c7904c 100644 --- a/ose_retainer_gen.py +++ b/ose_retainer_gen.py @@ -333,6 +333,10 @@ def __init__(self): self.breath_save = 15 self.spell_save = 16 self.alignment = choice(['Lawful', 'Neutral']) + self.inventory.append(choice(['leather armor AC 7 [12]', 'chain armor AC 5 [14]'])) + weapon = choice(two_handed_weapons + one_handed_weapons) + self.inventory.append(weapon) + if weapon not in two_handed_weapons and weapon != 'sling 1d4': self.inventory.append('shield AC +1') if self.job == 'Thief': self.hp = randint(1, 4) + self.get_conmod() @@ -408,4 +412,4 @@ def get_sheet(self): file.write(retainer.get_sheet() + '\n\n') file.close() -print('Retainers exported to "retainers.txt".') \ No newline at end of file +input('Retainers exported to "retainers.txt". Press Enter to exit.')