Skip to content

Commit

Permalink
Minor tweaks to sheet commands
Browse files Browse the repository at this point in the history
  • Loading branch information
esampson committed Apr 30, 2020
1 parent 524ea40 commit bbddbb5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions codes/commands/stat_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ def produce_sheet(target):
sub_block.append(' ' + line)
block.append(sub_block)
frailties = target.get('Frailties', 'Sphere')
if not(frailties == False):
if frailties != -1 and frailties != False:
if len(frailties) != 0:
sub_block = ['Frailties:']
for item in frailties:
Expand Down Expand Up @@ -724,7 +724,7 @@ def produce_sheet(target):
block.append(sub_block)

banes = target.get('Banes', 'Sphere')
if not(banes == False):
if banes != -1 and banes != False:
if len(banes) != 0:
sub_block = ['Banes:']
for item in banes:
Expand Down
6 changes: 3 additions & 3 deletions codes/sidebars.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ def changeling_template_block(target):
elif list_length >= 6 and len(motley_list) == 0:
for line in range(6):
block.append(entitlement_list[line])
elif list_length > 6 and len(entitlement_list) == 1:
elif list_length >= 6 and len(entitlement_list) == 2:
for line in range(4):
block.append(motley_list[line])
block.append(entitlement_list[0])
block.append(entitlement_list[1])
elif list_length > 6 and len(motley_list) == 1:
elif list_length >= 6 and len(motley_list) == 2:
block.append(motley_list[0])
block.append(motley_list[0])
block.append(motley_list[1])
for line in range(4):
block.append(entitlement_list[line])
elif list_length > 6:
Expand Down

0 comments on commit bbddbb5

Please sign in to comment.