[HAR]Universal Race and Xeno Fix - 通用种族异种基因修复
Fixes race/xenotype mismatches in pawns generated by quests, events, or other mods.
Fixes race/xenotype mismatches in pawns generated by quests, events, or other mods. Works for ANY alien race.
Example: A quest gives you a "Human" pawn with alien xenotype genes → this mod corrects the race to match. Or an alien race pawn spawns as Baseliner → this mod assigns a proper native xenotype.
===== FEATURES =====
1. Fix Wrong Race
When a pawn ends up Human but has alien (non-Baseliner) xenotype genes, replaces it with a correctly-matched alien race pawn. Handles both forced xenotypes in the generation request and direct xenotype injection by mods.
2. Fix Wrong Genes
When an alien-race pawn spawns with Baseliner or empty xenotype, assigns a random native xenotype of that race. Checks race validity first — skips if Baseliner is a valid native option for that race.
3. Disable HAR Race Swap (OFF by default)
Prevents HAR from auto-converting all player-faction pawns to a specific alien race. When enabled, randomizes race across all naturally-spawning humanlike races (equal probability per race). Also fixes bald heads and alien names on Human pawns, and blocks alien backstory injection.
4. Debug Logging (OFF by default)
Detailed decision-point logging to the dev log for troubleshooting.
All features can be toggled individually in Mod Settings.