// RimWorld.ThinkNode_ConditionalNeedPercentageAbove public static bool Satisfied_Vamp(ThinkNode_ConditionalNeedPercentageAbove __instance, Pawn pawn, ref bool __result) { if (pawn.VampComp() is CompVampire v && v.IsVampire && Traverse.Create(__instance).Field("need").GetValue <NeedDef>() == NeedDefOf.Food) { __result = true; return(false); } return(true); }
// Token: 0x06000057 RID: 87 RVA: 0x00004634 File Offset: 0x00002834 public static bool Patch_ThinkNode_ConditionalNeedPercentageAbove_Satisfied(ref ThinkNode_ConditionalNeedPercentageAbove __instance, ref bool __result, ref Pawn pawn) { NeedDef def = HarmonyPatches.ThinkNode_ConditionalNeedPercentageAbove_GetNeed(__instance); bool flag = pawn.needs.TryGetNeed(def) != null; bool flag2 = !flag; bool result; if (flag2) { __result = false; result = false; } else { result = true; } return(result); }
// Token: 0x06000056 RID: 86 RVA: 0x00004610 File Offset: 0x00002810 public static NeedDef ThinkNode_ConditionalNeedPercentageAbove_GetNeed(ThinkNode_ConditionalNeedPercentageAbove instance) { return((NeedDef)HarmonyPatches.int_ConditionalPercentageNeed_need.GetValue(instance)); }