边缘世界 RimWorld

边缘世界 RimWorld

评价数不足
Fix NPD Preference Logic
   
奖励
收藏
已收藏
取消收藏
Mod, 1.5
文件大小
发表于
更新日期
91.065 KB
2 月 17 日 上午 10:12
2 月 17 日 上午 10:29
2 项改动说明 ( 查看 )

订阅以下载
Fix NPD Preference Logic

描述
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].
9 条留言
Archie 9 月 5 日 下午 10:01 
Wondering if this is still necessary for 1.6 or if rimworld core has been updated to handle this by default.
Valdrax 2 月 21 日 下午 3:13 
No worries. Every mod starts with scratching some itch. Glad to see you make something to scratch yours and share it.
ViralReaction  [作者] 2 月 20 日 上午 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 2 月 20 日 上午 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  [作者] 2 月 18 日 下午 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  [作者] 2 月 18 日 下午 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 2 月 18 日 上午 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  [作者] 2 月 18 日 上午 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 2 月 18 日 上午 5:13 
Can it prevent my pawns from picking up nutrient paste meal from vanilla nutrient paste expanded droppers? Description seems unclear to me