Standard house variant distribution, survivor homes, doormats #64678
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Content "House cleanup, survivor homes, doormats"
Purpose of change
Begins moving houses to an externally defined distribution of palette variants, thus increasing their variability. In the process, I have made some minor cleanup to house mapgen.
Maintains the variant palettes with stuff that are already in the general palette.
Describe the solution
Cleanup:
Palettized homes to utilize
standard_domestic_lino_kitchen
,standard_domestic_lino_bathroom
, andstandard_domestic_landscaping_palette
, moving long lists of terrain definitions outside the mapgen file.Removed map variants 'hoarder' and 'abandoned', and replaced them with external palettes. Using new map variants is a particularly unsustainable solution to adding variability, as they have to be individually updated and it easily leads to bloated files.
I have also removed the 'construction' map variant. No replacements for that yet.
Standardized symbols for linoleum
'
and concrete flooring~
. The end goal is to have dedicated symbols for linoleum and concrete tiles.Unified gutter terrains and removed unneeded weights.
Palettes:
Created
domestic_general_and_variant_palette
, a palette distribution that I eventually want to apply to every house. Its purpose is to convert homes to one of three variants: hoarder -- 0.4%, abandoned -- 2.8%, and survivor -- 1.8%.I made the hoarder palette compatible with the standard domestic palette, so no need for a new map variant.
Added new furniture, like ladders, bedside tables, and freezers to the variant palettes.
Added gate parameters to drystone half-walls, and comments to clarify palette usage.
Created the survivor palette, a variant that fortifies homes. It also has a chance to spawn traps by the entrances. which I'm using doormats as a pretense to place. I found it to be wasteful to use a symbol
÷
only to place traps in only one variant.Describe alternatives you've considered
Not removing internal wall definitions. The palette's parameters add more variation to the house but it also removes some of its uniqueness.
Testing
Spawned all six houses in all four variants.
Additional context
Future me will have to figure out how to deal with basements and nested chunks.
Screenshots:
General variant:
Abandoned:
Hoarder:
Survivor: