Skip to content

Commit

Permalink
Some polish
Browse files Browse the repository at this point in the history
I actually remembered the version number this time
  • Loading branch information
Mode8fx committed Jun 23, 2021
1 parent a34e7fd commit 82a7055
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ __pycache__
build
dist
*.bat
randomizer not imported.py
2 changes: 1 addition & 1 deletion classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ def simplifyRule(self, rulesArray):
for j in range(i+1, len(self.left_side)):
newRule = Rule(description=newDescription, left_side=self.left_side[i], rule_type="!=", right_side=self.left_side[j], oldRuleNum=self.ruleNum)
rulesArray.append(newRule)
elif self.rule_type in ["ne","gt","ge","lt","le"]:
elif self.rule_type in ["eq","ne","gt","ge","lt","le"]:
for lVal in self.asList(self.left_side):
for rVal in self.asList(self.right_side):
newRule = Rule(description=newDescription, left_side=lVal, rule_type=self.rule_type, right_side=rVal, oldRuleNum=self.ruleNum)
Expand Down
4 changes: 3 additions & 1 deletion srm.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ def randomize():
defaultValue += ord(tempFile.read(1)) * (256**i) # little endian by default
if not att.is_little_endian:
defaultValue = swapEndianness(defaultValue, att.number_of_bytes)
if not (defaultValue in att.possible_values):
att.possible_values.append(defaultValue)
myRules.append(Rule(
description="Lock: "+att.name,
left_side=value(att.name),
Expand Down Expand Up @@ -819,7 +821,7 @@ def showAboutPopup(self):
showinfo("About", About_Page_Text)

def showSRMPopup(self):
showinfo("Simple Randomizer Maker v1.24", "This was made using\nGateGuy's Simple Randomizer Maker.\n\nhttps://github.com/GateGuy/SimpleRandomizerMaker")
showinfo("Simple Randomizer Maker v1.25", "This was made using\nGateGuy's Simple Randomizer Maker.\n\nhttps://github.com/GateGuy/SimpleRandomizerMaker")

# ======================================================
# Support code for Balloon Help (also called tooltips).
Expand Down

0 comments on commit 82a7055

Please sign in to comment.