Skip to content

Error on opening "add bills" in operations tab when genitals are removed surgically #46

Description

@Stars22223

Tried to add health diff to missing part BodyPartRecord(Genitals parts.Count=0)
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Error_Patch4 (string)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.HediffSet.AddDirect_Patch3 (Verse.HediffSet,Verse.Hediff,System.Nullable1<Verse.DamageInfo>,Verse.DamageWorker/DamageResult) (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Pawn_HealthTracker.AddHediff_Patch5 (Verse.Pawn_HealthTracker,Verse.Hediff,Verse.BodyPartRecord,System.Nullable1<Verse.DamageInfo>,Verse.DamageWorker/DamageResult)
Cumpilation.Cumflation.CumflationUtility:GetOrCreateCumflationHediff (Verse.Pawn)
Cumpilation.Leaking.Recipe_ExtractCum:AvailableOnNow (Verse.Thing,Verse.BodyPartRecord)
Verse.RecipeWorker:AvailableReport (Verse.Thing,Verse.BodyPartRecord)
RimWorld.HealthCardUtility/<>c__DisplayClass27_0:b__0 ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:RimWorld.BillStack.DoListing_Patch2 (RimWorld.BillStack,UnityEngine.Rect,System.Func1<System.Collections.Generic.List1<Verse.FloatMenuOption>>,UnityEngine.Vector2&,single&)
RimWorld.HealthCardUtility:DrawMedOperationsTab (UnityEngine.Rect,Verse.Pawn,Verse.Thing,single)
RimWorld.HealthCardUtility:DrawHealthSummary (UnityEngine.Rect,Verse.Pawn,bool,Verse.Thing)
RimWorld.HealthCardUtility:DrawPawnHealthCard (UnityEngine.Rect,Verse.Pawn,bool,bool,Verse.Thing)
RimWorld.ITab_Pawn_Health:FillTab ()
Verse.InspectTabBase/<>c__DisplayClass19_0:b__0 ()
Verse.ImmediateWindow:DoWindowContents (UnityEngine.Rect)
Verse.Window:InnerWindowOnGUI (int)
UnityEngine.GUI:CallWindowDelegate (UnityEngine.GUI/WindowFunction,int,int,UnityEngine.GUISkin,int,single,single,UnityEngine.GUIStyle)

To reproduce: Remove all genitals surgically, press "add bills" in operations tab for the same pawm. That's it.

There's another issue already open for destroyed genital body parts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions