Skip to content

Commit

Permalink
Update ose_retainer_gen.py
Browse files Browse the repository at this point in the history
fixed rangers not getting weapons or armor
  • Loading branch information
boombaklops committed Oct 25, 2022
1 parent 6dd5dc5 commit f4a2b6e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ose_retainer_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -408,4 +412,4 @@ def get_sheet(self):
file.write(retainer.get_sheet() + '\n\n')

file.close()
print('Retainers exported to "retainers.txt".')
input('Retainers exported to "retainers.txt". Press Enter to exit.')

0 comments on commit f4a2b6e

Please sign in to comment.