Skip to content

Incompatibility with RimJobWorld - Brothel Colony

Details

This is using the 1.5 branch on RimWorld 1.5.

Upon having both RimJobWorld - PE and RimJobWorld - Brothel Colony loaded, the whore pricing breaks. The min and max prices are all set to 0 and the game log is spammed with the below error. It may be related to the whore mod using age to calculate min and max prices.

This seems more like a bug with Brothel Colony than this, but for obvious reasons I can't make this bug report there.

On further inspection of the stack trace, this is actually related to/caused by PE.

Evaluating a SimpleCurve with no points.
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Error (string)
Verse.SimpleCurve:Evaluate (single)
rjwpe.BrothelColony.Patches.WhoringHelperPatch:WhoreAgeAdjustment (Verse.Pawn,single&)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:BrothelColony.WhoringHelper.WhoreAgeAdjustment_Patch1 (Verse.Pawn)
BrothelColony.WhoringHelper:WhoreMinPrice (Verse.Pawn)
BrothelColony.MainTab.PawnColumnWorker_PriceRangeOfWhore:GetTextFor (Verse.Pawn)
BrothelColony.MainTab.PawnColumnWorker_TextCenter:DoCell (UnityEngine.Rect,Verse.Pawn,RimWorld.PawnTable)
RimWorld.PawnTable:PawnTableOnGUI (UnityEngine.Vector2)
RimWorld.MainTabWindow_PawnTable:DoWindowContents (UnityEngine.Rect)
rjw.MainTab.MainTabWindow:DoWindowContents (UnityEngine.Rect)
Verse.Window:InnerWindowOnGUI (int)
UnityEngine.GUI:CallWindowDelegate (UnityEngine.GUI/WindowFunction,int,int,UnityEngine.GUISkin,int,single,single,UnityEngine.GUIStyle)

Expected behavior

The whore pricing should work. What precisely should happen with child pawns I could not say.

Actual behavior

All pawns are priced as 0 - 0.

How to reproduce

  1. Install RimJobWorld + dependencies
  2. Install RimJobWorld - PE
  3. Install RimJobWorld - BrothelColony
  4. Start a new save with any scenario and any pawns (no children pawns required)
  5. Open the RJW Tab and select the Brothel menu
Edited by Emosewaj