Is it possible to assign two jobs for the same pawn at the same time?

Started by arkyte, December 24, 2020, 06:13:34 PM

Previous topic - Next topic

arkyte

I recently have been learning to mod, and was trying to change things a bit with polyamory mods. I have been mainly following the .dlls from VanillaExpandedTraits and RationalRomance. I managed to create new traits, do some patches using harmony in pawns thoughts, moods, and romance chance, break ups, etc.

In the source code I found the TryGiveJob method in the JobGiver_DoLovin. It checks for several factors and in the end assigns:

return JobMaker.MakeJob(JobDefOf.Lovin, partnerInMyBed, pawn.CurrentBed());

Is it possible to tweak the lovin need values and when conditions are proper (3 lovers in bed who can do lovin) assign three lovin jobs? Or is it a hardlimit that pawns can only do one job at a time?

RawCode


arkyte

Thank you. Do I only have to learn how to edit the jobdriver to handle more than two pawns, or is there another related class?

I have been getting my info on this from here https://github.com/Mehni/ExampleJob/wiki/

RawCode