public override void CompExposeData() { Scribe_Values.Look(ref isPermanentInt, "isPermanent", defaultValue: false); Scribe_Values.Look(ref permanentDamageThreshold, "permanentDamageThreshold", 9999f); Scribe_Values.Look(ref painFactor, "painFactor", 1f); if (Scribe.mode == LoadSaveMode.LoadingVars) { BackCompatibility.HediffComp_GetsPermanentLoadingVars(this); } }