diff --git a/FE Weapon Triangle Randomizer.py b/FE Weapon Triangle Randomizer.py index 084fa00..e7e2ab8 100644 --- a/FE Weapon Triangle Randomizer.py +++ b/FE Weapon Triangle Randomizer.py @@ -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() @@ -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()): @@ -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: '''