Lua: Allow creating gas clouds

Use the gas clouds in the Clouds themeroom.
Use the existing visible_region_at() in the vision code.
This commit is contained in:
Pasi Kallinen
2024-01-19 17:54:19 +02:00
parent da4bf5a87e
commit 2212cf27ec
6 changed files with 102 additions and 10 deletions

View File

@@ -43,10 +43,10 @@ themeroom_fills = {
-- Cloud room
function(rm)
local fog = selection.room();
des.terrain(fog, "C");
for i = 1, (fog:numpoints() / 4) do
des.monster({ id = "fog cloud", asleep = true });
end
des.gas_cloud({ selection = fog });
end,
-- Boulder room