a few one-line fixes

This commit is contained in:
duncathan 2020-12-06 16:07:48 -06:00
parent b71cf74e73
commit 382fffdca9
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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