erdelf / AlienRaces

Rimworld mod alien race framework
MIT License
103 stars 69 forks source link

PawnKind-based restrictions on starting colonist randomization #103

Closed Aelanna closed 7 months ago

Aelanna commented 7 months ago

Added a button to the vanilla starting colonist selection UI next to the Randomize button that allows players to restrict the randomization to a single PawnKindDef allowed by the current ScenarioDef and applicable RaceSettings. This feature allows players to narrow down their randomization to specific PawnKinds while still respecting the restrictions set by scenario authors.

Restriction button with no active restriction: restrictiontooltip1

Restriction button with a restriction active: restrictiontooltip2

Restriction dropdown menu with an A Rim Reborn scenario active. PawnKindDef label is only shown if it differs from the race's label: restrictionmenu2

Restriction dropdown menu with a Heruan scenario active. If duplicate PawnKindDef labels are detected, options will show the defName of the PawnKindDef to allow them to be differentiated: restrictionmenu1

erdelf commented 7 months ago

Merged via cherry pick.