Files
nethack/dat
Pasi Kallinen 8e6cf385b1 Fix subroom doors
Doors weren't getting added to the correct subrooms in certain cases.

Also fix one of the themerooms, because doors have to be added
after subrooms; there was a possibility of no door to the subroom(s)
in that themeroom, because the subrooms overwrote the doors in
the parent room.

Test case for the subroom doors:

Large room, with a medium subroom, with a tiny subroom inside that.
The doors go from outermost room <-> tiny innermost room <-> middle room.

des.room({ type = "ordinary", x = 1, y = 1, w = 10, h = 10,
   contents = function()
      des.room({ type = "ordinary", w = 6, h = 6, x = 2, y = 2,
         contents = function()
            des.room({ type = "ordinary", w = 2, h = 2, x = 0, y = 0,
               contents = function()
                  des.door({ state="random", wall="south", pos = 1 });
               end
            });
            des.door({ state="random", wall="north", pos = 1 });
         end
      });
   end
});

Before this fix:

ROOM: ndoors:1, subrooms:1
  SUBROOM: ndoors:1, subrooms:1
    SUBROOM: ndoors:1, subrooms:0

after this fix:

ROOM: ndoors:1, subrooms:1
  SUBROOM: ndoors:1, subrooms:1
    SUBROOM: ndoors:2, subrooms:0
2023-03-07 09:43:44 +02:00
..
2022-05-10 07:44:26 -04:00
2018-01-25 23:23:16 -05:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2023-01-10 12:20:21 +02:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2020-12-16 19:22:04 -08:00
2022-12-19 18:20:31 +02:00
2023-03-01 14:00:29 +02:00
2022-05-10 11:26:52 -04:00
2023-01-30 17:58:51 +02:00
2023-01-30 17:58:51 +02:00
2023-01-18 10:50:32 +02:00
2022-02-04 11:01:20 -05:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2023-01-30 18:30:39 +02:00
2019-05-31 18:41:37 -07:00
2023-02-11 11:35:06 -08:00
2023-02-16 20:56:33 -05:00
2022-05-10 11:26:52 -04:00
2019-06-25 03:27:42 -07:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2002-01-05 21:05:46 +00:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-10-12 13:47:12 -07:00
2022-10-12 13:47:12 -07:00
2023-03-01 14:00:29 +02:00
2023-03-05 16:38:24 +02:00
2023-02-19 15:56:18 +02:00
2022-01-19 14:22:21 -08:00
2022-05-10 11:26:52 -04:00
2015-03-17 18:45:58 +02:00
2023-01-20 14:08:34 +02:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-01-04 11:14:12 +02:00
2023-02-05 11:32:58 -05:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2023-03-07 09:43:44 +02:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-03-07 14:30:36 -08:00
2023-03-05 16:38:24 +02:00
2022-12-05 23:24:18 -08:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2023-01-17 20:11:45 +02:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2022-05-10 11:26:52 -04:00
2023-01-30 17:31:25 +02:00
2023-01-30 17:43:34 +02:00
2023-01-30 17:47:21 +02:00