Draft Anything - Mech Skill Fix
While playing around with Fantasy Biotech, I encountered a weird bug where my constructoids would start to botch constructions and take longer than normal.
While playing around with Fantasy Biotech, I encountered a weird bug where my constructoids would start to botch constructions and take longer than normal. Then noticed my Delver taking an eternity to mine anything. Naturally that was irritating so I had Claude Code look into it and figured out the cause was Draft Anything. I'm unsure if this is a widespread problem, but I'm uploading this if anyone else needs it.
PROBLEM AND SOLUTION:
Drafting a mechanoid with Draft Anything permanently attaches an empty Pawn_SkillTracker to it. Vanilla only builds one for humanlikes, and the stat system branches on its presence: a mech without one is multiplied by StatDef.noSkillFactor (1.0), while a mech with an empty one is run through skillNeedFactors at level 0. RaceProperties.mechFixedSkillLevel does not help, because the stat system never reads it.
This strips the skill and story trackers back off mechanoids immediately after Draft Anything adds them, restoring vanilla mech behavior. Drafting still works - playerSettings, drafter and equipment are untouched. PawnKindDefs that deliberately declare skills are left alone.
Safe to add or remove mid-save.