How Nutrient Paste Dispensers work

Started by Manofdusk, July 21, 2018, 05:01:14 AM

Previous topic - Next topic

Manofdusk

 Well, I'm done with 2 mods and have decided to start on a 3rd.... but before I can even get started on it, I need to understand how nutrient paste dispensers dispense meals and how to alter that.

The only thing I can find that even comes close to that is this:

<nutritionCostPerDispense>0.3</nutritionCostPerDispense>

so I'm starting to think that the actual dispensing is hidden from me.

I also tried to find the workgiver that tells pawns to go to a nutrient paste dispenser but no luck. I've been searching through all the defs but maybe I just don't know what I'm looking for.


I mainly need to figure out how to get nutrient paste dispensers to dispense on command or dispense in bulk (as I want to use them in a recipe) without relying on another mod to do that for me.

Any ideas?

Mehni

C#

all its behaviour is in Building_NutrientPasteDispenser, and most pawn behaviour surrounding it can be found from there.

In your case, I'd look at making a Comp to add buttons (a Gizmo to use RimWorld terms) that can be pressed to dispense multiple meals.