Skip to content

Commit

Permalink
Merge 'Fix Ruleparser being unaware of True and False constants in ne…
Browse files Browse the repository at this point in the history
…wer py versions' (OoTRandomizer#1480)
  • Loading branch information
Zannick committed Jan 16, 2022
2 parents d59880f + 0eb85cb commit 53e31ea
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,15 +103,17 @@ do that.

#### New Features

* **Gameplay Settings**
* **Settings**
* New setting `Dungeon Shortcuts` opens shortcuts in blue warp dungeons to the boss room. This is toggleable per-dungeon, and affects glitchless logic.
* New setting `Shopsanity Prices` adds additional price range options when Shopsanity is enabled, including "Affordable" which sets all prices to 10 rupees (to match the same option in Scrub Shuffle).
* `Chest Size Matches Content` has been replaced with `Chest Appearance Matches Content`. Unique textures are applied to chests containing major items, small keys, boss keys, skulltula tokens, and remaining items. An additional option also changes chest sizes like the previous setting.
* New cosmetic setting `Disable battle music` turns off the battle music from being near enemies, allowing the background music to continue uninterrupted.

* **Gameplay**
* Shortened the animation for equipping magic arrows.

* **Cosmetics**
* New setting `Disable battle music` turns off the battle music from being near enemies, allowing the background music to continue uninterrupted.

* **Bug Fixes**
#### Bug fixes
* Return the color of the "OK" and "No" options of the warp song prompts to their correct colors in Warp Song Shuffle.
* Horseback Archery will no longer delay ending based on the fanfare.
* Prevent Dead Hand from spawning outside the room collision.
Expand All @@ -121,11 +123,10 @@ do that.
* Fix MQ Fire Temple missing the Hammer chest from the map and minimap.
* Add correct default Goals for Ganon's Boss Key when Light Arrow Cutscene is non-vanilla.

* **Misc**
#### Other changes
* Added an auto-tracker context area to memory, so auto-trackers can find certain symbols much easier.
* Shortened the animation for equipping magic arrows.
* Warp song prompts (in Warp Song Shuffle) now use the hint area of the destination rather than a separate description.
* Improve some error messages when running the generator.
* Fix logic parser shortcuts not working right in newer Python versions.

### 6.2

Expand Down
8 changes: 4 additions & 4 deletions RuleParser.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,12 +381,12 @@ def create_delayed_rules(self):
self.current_spot = event
# This could, in theory, create further subrules.
access_rule = self.make_access_rule(self.visit(node))
if access_rule is self.rule_cache.get('NameConstant(False)'):
if access_rule is self.rule_cache.get('NameConstant(False)') or access_rule is self.rule_cache.get('Constant(False)'):
event.access_rule = None
event.never = True
logging.getLogger('').debug('Dropping unreachable delayed event: %s', event.name)
else:
if access_rule is self.rule_cache.get('NameConstant(True)'):
if access_rule is self.rule_cache.get('NameConstant(True)') or access_rule is self.rule_cache.get('Constant(True)'):
event.always = True
event.set_rule(access_rule)
region.locations.append(event)
Expand Down Expand Up @@ -479,7 +479,7 @@ def parse_spot_rule(self, spot):

access_rule = self.parse_rule(rule, spot)
spot.set_rule(access_rule)
if access_rule is self.rule_cache.get('NameConstant(False)'):
if access_rule is self.rule_cache.get('NameConstant(False)') or access_rule is self.rule_cache.get('Constant(False)'):
spot.never = True
elif access_rule is self.rule_cache.get('NameConstant(True)'):
elif access_rule is self.rule_cache.get('NameConstant(True)') or access_rule is self.rule_cache.get('Constant(True)'):
spot.always = True
2 changes: 1 addition & 1 deletion version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '6.2.18 f.LUM'
__version__ = '6.2.19 f.LUM'

0 comments on commit 53e31ea

Please sign in to comment.