public static void RestoreOnResurrect(Pawn pawn) { if (!MemoryThingComp.ShouldRemember(pawn)) { return; } pawn.TryGetComp <MemoryThingComp>()?.TryRestoreMemory(false); }
public static void StoreMemoriesOnDeath(Pawn __instance) { if (!MemoryThingComp.ShouldRemember(__instance)) { return; } __instance.TryGetComp <MemoryThingComp>()?.TryStoreMemory(); }
public static void RestorePlayerColonist(Pawn __instance, Faction newFaction) { if (!MemoryThingComp.ShouldRemember(__instance)) { return; } if (newFaction != Faction.OfPlayer) { return; } __instance?.TryGetComp <MemoryThingComp>()?.TryRestoreMemory(false); }
public static void WildManCheck(Pawn __instance, PawnKindDef newKindDef) { if (!MemoryThingComp.ShouldRemember(__instance)) { return; } if (newKindDef != PawnKindDefOf.WildMan) { return; } __instance?.TryGetComp <MemoryThingComp>()?.TryStoreMemory(); }