Skip to content

Commit

Permalink
Update FE Weapon Triangle Randomizer.py
Browse files Browse the repository at this point in the history
for some reason random.choices made the exe version not work properly
  • Loading branch information
Teraspark committed Jul 6, 2021
1 parent 71c674a commit 5a37423
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions FE Weapon Triangle Randomizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,8 @@ def randomize(self):
random.seed(self.seed.get())

if self.singleroll.get():
ratk = random.choices(ratk)
rhit = random.choices(rhit)
ratk = [random.choice(ratk)]
rhit = [random.choice(rhit)]
random.seed(self.seed.get())

m = self.randomode.get()
Expand All @@ -215,7 +215,6 @@ def randomize(self):
# print('WeaponRelationEnd')
self.writefile(wrlist,weapons,m)

prompt = messagebox.showinfo(title='Randomizing Complete!',message='Randomzing Complete!')

def writefile(self,relations,weapons,mode):
if not (self.outfile.get()):
Expand All @@ -242,6 +241,7 @@ def writefile(self,relations,weapons,mode):
output += '\n// **Any Relation that is not shown here is neutral**\n'
Path(self.outfile.get()).write_text(output)
genDefs(Path(self.outfile.get()))
prompt = messagebox.showinfo(title='Randomizing Complete!',message='Randomzing Complete!')

class Relation:
'''
Expand Down

0 comments on commit 5a37423

Please sign in to comment.