RimWorld

RimWorld

Prepare Moderately
Rxx 20 Jan @ 3:06am
How can I specify minimum Passion level?
Maybe this is a stupid question to ask but I can't seem to find the way.

I am doing the following:

-Add Part: has Passion
-Select: "Cooking" and "Interested"

and it seems to look for pawns with specifically "Interested" passion, not "Interested or superior".

Could someone point me in the right direction? I want to specify the minimum passion level, not the exact one.

Thanks in advance and great mod.
< >
Showing 1-4 of 4 comments
Lakuna  [developer] 23 Jan @ 1:37am 
Hi Rxx,

Unfortunately, passions aren't actually "ordered" in RimWorld's source code, so there's not really a programmatic way to specify what counts as "greater than" a given passion level (unless I hard-code it, which reduces compatibility with mods that add additional levels of passions).

That being the case, the way to achieve what you're trying to do is to use an "OR" filter (i.e. "at least passion" is equivalent to "passion OR burning passion"). For the example you gave, this would be "has passion for cooking OR has burning passion for cooking."

Let me know if you need more help.

- Lakuna
Rxx 23 Jan @ 3:03am 
Thank you very much for your answer and for your work, this mod is (literally) a game changer for me. I opted for your solution and it works like a charm.
wgasa 15 Jun @ 3:34am 
It's slightly fewer clicks to use "not passion None", was wondering the same thing thanks for the explanation from a fellow dev. Really grateful you got this updated so quickly!
Trollsama 17 Jul @ 10:24pm 
How does this work when you have 2 different passions you want bundled in the same filter.
for example, If i want a "Doctor" filter that searches for a pawn that has a minor or major passion in both medical and in research. (solution in edit)

I tried a few things and nothing has worked thus far. I tried using:

Has passion (medical) (minor) logic (OR) has passion (medical) (major) Has passion (research) (minor) Logic (OR) has passion (research) (major)

and that didn't work, it just shuffled forever... I also tried having each of the 4 possible outcomes at once:

Has passion (medical) (minor) Has passion (research) (minor) logic (OR) Has passion (medical) (major) Has passion (research) (minor) logic (OR) Has passion (medical) (major) Has passion (research) major) logic (OR) Has passion (medical) (minor) Has passion (research) (major)

With just the passions set, It still rolled for over 1500+ pawns before i quit. so im not sure what im doing wrong, but obviously im doing something wrong lol.

I thought at first I was just asking too much (I had a list of not's originally as well, opting out of missing limbs, long term medical issues, and addiction) but i striped everything out except just the above lines and it still would roll a pawn. even though i was able to do so by hand in a few rolls

EDIT:
Turns out im just being a dummy and trying to build it out linear like a program. when it doesn't work like code.

the PROPER way to do this, for anyone else down the road that has this issue, is to nest your options into a logic entirely. IE for the above example, the solution was:

logic (OR) Has passion (research) (major) Has passion (research) (minor) logic (OR) Has passion (medical) (major) Has passion (medical) (minor)

I was going to delete the comment, but figured it may be of use to someone else so just amended it instead.
Last edited by Trollsama; 17 Jul @ 10:41pm
< >
Showing 1-4 of 4 comments
Per page: 1530 50