[1.7.6] No water purification in Valley of the Moon
Posted: Wed Jul 19, 2023 11:41 pm
[sound F/X: source diving] Aha! I knew I wasn't imagining it. The first time I completed the Valley of the Moon quest (lo these many years ago…), I remember that all the poisoned water in the Valley was purified as soon as Limmir finished his ritual. Nowadays, though, that doesn't happen. It looks like the code is still trying to do so (cf. ritual_end() in the Lost Knowledge quest):
No idea offhand why it isn't working.
Code: Select all
-- Update water
local water = game.zone:makeEntityByName(game.level, "terrain", "DEEP_WATER")
for x = 0, game.level.map.w - 1 do for y = 0, game.level.map.h - 1 do
local g = game.level.map(x, y, engine.Map.TERRAIN)
if g and g.define_as == "POISON_DEEP_WATER" then
game.level.map(x, y, engine.Map.TERRAIN, water)
end
end end