using RimWorld; namespace RJWSexperience.Ideology { /// /// Increments record every time the thought is added /// The increment is permanent /// public class Thought_IncreaseRecord : Thought_Memory { /// /// This method is called for every thought right after the pawn is assigned /// public override bool TryMergeWithExistingMemory(out bool showBubble) { var defExtension = def.GetModExtension(); if (defExtension != null) { pawn.records.AddTo(defExtension.recordDef, defExtension.increment); } return base.TryMergeWithExistingMemory(out showBubble); } } }