Khaligufzel / Dimensionfall

A survival game inspired by Cataclysm: Dark Days Ahead and Bright Nights.
MIT License
12 stars 5 forks source link

Houses have randomized floors #395

Closed snipercup closed 1 week ago

snipercup commented 1 week ago

Fixes #392 Requires #394

The floors in generichouse are now randomized. First I added a new area for each room and each floor, ending up with about 22 areas. This was a bit much, so I adjusted the algorithm so that a tile is picked per cluster of tiles. A cluster is a group of adjacent tiles that are separated from another group in the same area. This allows us to have one area for all living rooms, for example.

Also fixed a bug where painter areas were not saved or properly renamed.