[1.1.2654 rev674] Vanilla Meditate in bed looks for Royalty foci

Started by LWM, June 18, 2020, 03:47:17 PM

Previous topic - Next topic

LWM

I had several wounded enemy pawns in beds, and at one point, this error showed up:
(It looks like RimWorld.JobGiver_MeditateInBed:TryGiveJob(Pawn) tried to call the royalty function)

Meditation foci are a Royalty-specific game system. If you want to use this code please check ModLister.RoyaltyInstalled before calling it.
Verse.Log:Error(String, Boolean)
Verse.Log:ErrorOnce(String, Int32, Boolean)
RimWorld.CompMeditationFocus:GetStatOffset(Pawn)
RimWorld.StatWorker_PossibleCompOffsets:GetValueUnfinalized(StatRequest, Boolean)
RimWorld.StatWorker:GetValue(StatRequest, Boolean)
RimWorld.StatWorker:GetValue(Thing, Pawn, Boolean)
RimWorld.StatExtension:GetStatValueForPawn(Thing, StatDef, Pawn, Boolean)
RimWorld.MeditationUtility:BestFocusAt(LocalTargetInfo, Pawn)
RimWorld.JobGiver_MeditateInBed:TryGiveJob(Pawn)
Verse.AI.ThinkNode_JobGiver:TryIssueJobPackage(Pawn, JobIssueParams)

LWM

(I had no idea captured enemies could meditate in their hospital bed!)

ison


Nowhere