public virtual bool TryStart(Pawn pawn, string reason, bool causedByMood) { MentalStateHandler arg_21_0 = pawn.mindState.mentalStateHandler; MentalStateDef mentalState = this.def.mentalState; return(arg_21_0.TryStartMentalState(mentalState, reason, false, causedByMood, null, false)); }
public Pawn_MindState(Pawn pawn) { this.pawn = pawn; this.mentalStateHandler = new MentalStateHandler(pawn); this.mentalBreaker = new MentalBreaker(pawn); this.inspirationHandler = new InspirationHandler(pawn); this.priorityWork = new PriorityWork(pawn); }
public virtual bool TryStart(Pawn pawn, string reason, bool causedByMood) { MentalStateHandler mentalStateHandler = pawn.mindState.mentalStateHandler; MentalStateDef mentalState = def.mentalState; bool causedByMood2 = causedByMood; return(mentalStateHandler.TryStartMentalState(mentalState, reason, forceWake: false, causedByMood2)); }
public virtual bool TryStart(Pawn pawn, Thought reason, bool causedByMood) { string text = (reason == null) ? null : reason.LabelCap; MentalStateHandler arg_33_0 = pawn.mindState.mentalStateHandler; MentalStateDef mentalState = this.def.mentalState; string reason2 = text; return(arg_33_0.TryStartMentalState(mentalState, reason2, false, causedByMood, null)); }