From 57136a858a40a398f460fd2ba2b129626c2899f3 Mon Sep 17 00:00:00 2001 From: Kevin Reid Date: Fri, 15 Mar 2024 12:05:52 -0700 Subject: [PATCH] content: Don't have enclosure/padding around underground exhibits. --- all-is-cubes-content/src/city.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/all-is-cubes-content/src/city.rs b/all-is-cubes-content/src/city.rs index 3946f7a76..886944610 100644 --- a/all-is-cubes-content/src/city.rs +++ b/all-is-cubes-content/src/city.rs @@ -361,7 +361,12 @@ async fn place_exhibits_in_city( // Amount by which the exhibit's own size is expanded to form walls and empty space // for displaying it and allowing players to move around it. - let enclosure_thickness = FaceMap::repeat(1); + let enclosure_thickness = match exhibit.placement { + Placement::Surface => FaceMap::repeat(1), + // Underground exhibits get no enclosure; they are expected to play nicely with being + // buried in stone except for the entranceway. + Placement::Underground => FaceMap::repeat(0), + }; // Now that we know the size of the exhibit, find a place for it that fits its bounds. let exhibit_footprint = exhibit_space.bounds();