16,254
edits
(Update for v1.1) |
(getMonsterAreas: Add handling for Lair of the Spider Queen random monster pool) |
||
Line 135: | Line 135: | ||
function p.getMonsterAreas(monsterID) | function p.getMonsterAreas(monsterID) | ||
-- Special handling for Lair of the Spider Queen, which has a random list of enemies | |||
local randomSpiderCheck = Shared.contains(GameData.rawData.spiderLairMonsters, monsterID) | |||
return p.getAreas( | return p.getAreas( | ||
function(area) | |||
return Shared.contains(area.monsterIDs, monsterID) or | |||
(randomSpiderCheck and Shared.contains(area.monsterIDs, 'melvorTotH:RandomSpiderLair')) | |||
end) | |||
end | end | ||