private static void HediffPrettyLabel(ref string __result, Hediff __instance) { if (__instance is Hediff_AddedPart || __instance is Hediff_Implant) { __result = MSE_VanillaExtender.PrettyLabel(__instance); } }
private static void BodiesExpander(ref float __result, Pawn ingester) { if (MSE_VanillaExtender.HasRemovedPartWithTag(ingester, BodyPartTagDefOf.EatingPathway)) { __result = 0f; } }
private static bool BodiesExpander(Pawn pawn) { if (MSE_VanillaExtender.HasRemovedPartWithTag(pawn, BodyPartTagDefOf.EatingPathway)) { return(false); } return(true); }
private static void BodiesExpander(ref List <ThoughtDef> __result, Pawn ingester) { if (MSE_VanillaExtender.HasRemovedRequiredPart(ingester, MSE_BodyPartDefOf.Tongue)) { List <ThoughtDef> ingestThoughts = __result; for (int i = 0; i < ingestThoughts.Count; i++) { ThoughtDef thought = ingestThoughts[i]; var check1 = ThoughtDefOf.AteHumanlikeMeatDirect; var check2 = ThoughtDefOf.AteHumanlikeMeatDirectCannibal; var check3 = ThoughtDefOf.AteInsectMeatDirect; var check4 = ThoughtDefOf.AteCorpse; var check5 = ThoughtDefOf.AteRottenFood; if (thought != check1 || thought != check2 || thought != check3 || thought != check4 || thought != check5) { __result.Remove(thought); } } } }
private static void BodiesExpander(HediffWithComps __instance) { MSE_VanillaExtender.BodiesExpanderSupport(__instance.pawn); }
private static void AdditionalHediff(Recipe_InstallNaturalBodyPart __instance, Pawn pawn, BodyPartRecord part) { MSE_VanillaExtender.RecipeApplyHediffs(__instance, pawn, part); }
private static void AdditionalHediff(Hediff_AddedPart __instance) { MSE_VanillaExtender.HediffApplyHediffs(__instance, __instance.pawn, __instance.Part); }