RimWorld

RimWorld

Otillräckligt med betyg
Fix NPD Preference Logic
   
Utmärkelse
Favorit
Favoritmarkerad
Avfavoritmarkerad
Mod, 1.5
Filstorlek
Lades upp
Uppdaterades
91.065 KB
17 feb @ 10:12
17 feb @ 10:29
2 ändringsnotiser ( visa )

Abonnera för att ladda ner
Fix NPD Preference Logic

Beskrivning
Fixes food finding logic in regards to Nutrient Paste Dispenser's from hardcoded Nutrient Paste to ask the building what they are dispensing. Pawn's preferences will actually matter now for modded dispensers.


FAQ:
Q: What does this do?
A: A simple transpiler patch to fix vanilla issue of hardcoded Nutrient Paste Meal instead of using Building_NutrientPasteDispenser's DispensableDef. Pawn's will properly use their food preference when searching if a Nutrient Paste Dispenser has food they may want.

Q: What is this best for?
A: Any mod that has custom dispensers. (e.g. NPDTiers)

Q: Is this compatible with X?
A: Yes, however it is already included in Medieval Overhaul. You will receive a harmless errors due to checks for injection site.

Follow along over at GitHub[github.com].
Released under GNU General Public License v3.0[github.com].
8 kommentarer
Valdrax 21 feb @ 15:13 
No worries. Every mod starts with scratching some itch. Glad to see you make something to scratch yours and share it.
ViralReaction  [skapare] 20 feb @ 11:15 
@Valdrax Correct, this is just fixing the specific issue of pawn’s diet preference rules. Ideology stuff is only partially check iirc by checking the thing def, but meals don’t have ingredient usually until they are generated.
Valdrax 20 feb @ 8:01 
I'm guessing that if it doesn't check for venerated animals, it also doesn't check for insect meat, human meat, or nutrifungus, or ideologically picky eaters?

This is only to fix different meal types not meal contents, e.g. from different dispensers or different pipe network for Vanilla Nutrient Paste Expanded?
ViralReaction  [skapare] 18 feb @ 12:50 
Using NPD Tiers for example has regular, simple, and fine paste meals. A pawn on vanilla paste setting will not eat the simple or fine paste dispenser meals assuming the meals are setup correctly in their XML.
ViralReaction  [skapare] 18 feb @ 12:48 
The vanilla code does not check if it will contain venerated animals and I did not modify it to do so as that is a full rework and would probably be quiet slow for vanilla dispensers as they do not store what the ingredients are until the creation of the item. It is easier to do it for mods that store that data like VNPE or various stew pots, but was not the goal of this. Ideally, Ludeon would make it so on their end.
Une ptite Tomate 18 feb @ 10:38 
Does it means that a pawn on lavish meal minus nutrient paste used to pick nutrient paste meals from modded dispensers? Personnaly i had issues with pawns picking nutrient paste meals in CE loadout over simple meals etc when nearer . So the mod won t help because it only works with preference of food policies and not ideology preference, am I right? Sorry for your time
ViralReaction  [skapare] 18 feb @ 6:57 
Not sure how to make it more clear, besides already including a FAQ asking "Q: Is this compatible with X" "A: Yes..."
Une ptite Tomate 18 feb @ 5:13 
Can it prevent my pawns from picking up nutrient paste meal from vanilla nutrient paste expanded droppers? Description seems unclear to me