mirror of
https://github.com/cave-story-randomizer/cave-story-randomizer
synced 2024-12-24 14:07:00 +00:00
a few one-line fixes
This commit is contained in:
parent
b71cf74e73
commit
382fffdca9
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue