private static void GetXMLData(AIPawn pawn) { ThingDef_AIPawn def2 = (ThingDef_AIPawn)pawn.def; passionLevel = def2.passionLevel; startingSkillLevel = def2.startingSkillLevel; enhancedAI = def2.enhancedAI; }
//private Job curJobOld; // ================== Load/Save ================== // Get the data from the extended def private void ReadXmlData() { ThingDef_AIPawn def2 = (ThingDef_AIPawn)def; if (!def2.normalHeadGraphicPathMulti.NullOrEmpty()) { normalHeadGraphicPathMulti = def2.normalHeadGraphicPathMulti; draftedHeadGraphicPathMulti = def2.draftedHeadGraphicPathMulti; draftedBodyGraphicPathMulti = def2.draftedBodyGraphicPathMulti; refreshBaseInfosMax = def2.refreshBaseInfosMax; refreshQuickMax = def2.refreshQuickMax; incapToExplosionCounterStartValue = def2.incapToExplosionCounter; enhancedAI = def2.enhancedAI; } }