From 37f6eee147faf3d530112d2cdbb3fe9e699ad57d Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Thu, 22 Dec 2022 21:47:10 +0200 Subject: [PATCH] Add themeroom filler "Storeroom" Contains mostly mimics (pretending to be chests), and possibly some chests. --- dat/themerms.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/dat/themerms.lua b/dat/themerms.lua index 9a7983a51..11e42d72f 100644 --- a/dat/themerms.lua +++ b/dat/themerms.lua @@ -160,6 +160,18 @@ themeroom_fills = { end end, + -- Storeroom + function(rm) + local locs = selection.room():percentage(30); + local func = function(x,y) + if (percent(25)) then + des.object("chest"); + else + des.monster({ class = "m", appear_as = "obj:chest" }); + end + end; + locs:iterate(func); + end, }; themerooms = {