From 382fffdca9e121fd3128763cdb4ea4dc1e116971 Mon Sep 17 00:00:00 2001 From: duncathan Date: Sun, 6 Dec 2020 16:07:48 -0600 Subject: [PATCH] a few one-line fixes --- src/database/world_graph.lua | 4 ++-- src/randomizer.lua | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/database/world_graph.lua b/src/database/world_graph.lua index e722772..74de4ca 100644 --- a/src/database/world_graph.lua +++ b/src/database/world_graph.lua @@ -428,7 +428,7 @@ function lastCave:new(worldGraph) redDemon = Location("Red Demon Boss", "Priso2", "0300", self) } - self.requirements = function(self, items) return _has(items, "weaponBoss") and _count(items, "booster", 2) and (_has(items, "eventRocket") or (self.world:_dboost(items, 'rocket') and _has(items, "machineGun"))) end + self.requirements = function(self, items) return _has(items, "weaponBoss") and _count(items, "booster", 2) and (_has(items, "eventRocket") or (self.world:_dboost(items, 'rocket') and _has(items, "machineGun") and self.world.regions.plantation:canAccess(items))) end end local endgame = Region:extend() @@ -513,7 +513,7 @@ function worldGraph:new(items) end function worldGraph:_dboost(items, key) - return (self.seqbreak or self.dboosts[key].enabled) and _hp(items) > self.dboosts[key].hp + return self.seqbreak and self.dboosts[key].enabled and _hp(items) > self.dboosts[key].hp end function worldGraph:StartPoint() return self.spawn == "Start Point" end diff --git a/src/randomizer.lua b/src/randomizer.lua index 598d027..c601230 100644 --- a/src/randomizer.lua +++ b/src/randomizer.lua @@ -284,7 +284,7 @@ function C:_writeLog() end function C:_copyMyChar() - local path = self:_getWritePath() .. '/myChar.bmp' + local path = self:_getWritePath() .. '/MyChar.bmp' local data = lf.read(self.mychar) U.writeFile(path, data) end