Themeroom: buried zombies

- add a themeroom with random buried zombifying corpses
- disturbing buried zombies makes them revive much faster
- lua des.object() now returns the object it created
This commit is contained in:
Pasi Kallinen
2023-04-01 14:05:14 +03:00
parent 4542d14d23
commit ba60bfac25
4 changed files with 18 additions and 3 deletions

View File

@@ -93,6 +93,17 @@ themeroom_fills = {
end });
end,
-- Buried zombies
function(rm)
local zombifiable = { "kobold", "gnome", "orc", "dwarf", "elf", "human", "ettin", "giant" };
for i = 1, (rm.width * rm.height) / 2 do
shuffle(zombifiable);
local o = des.object({ id = "corpse", montype = zombifiable[1], buried = true });
o:stop_timer("rot-corpse");
o:start_timer("zombify-mon", 1000);
end
end,
-- Massacre
function(rm)
local mon = { "apprentice", "warrior", "ninja", "thug",