IThingDispenser & Hediffs can affect stats directly

Started by UMK, March 13, 2015, 02:11:10 AM

Previous topic - Next topic

UMK

Currently NPDs and beer are hardcoded, and there is no way to make own dispensers and bewerages acceptable by ingest job code (if there is I hope you can tell me). What I'd like to see is IFoodDispenser interface or something like that and code checking for it. More complex suggestion is to allow such dispenser interfaces for every kind of job which seeks for particular item (IThingDispenser with methods like CanDispenseOfDef/Category(ThingDef/ThingCategory), and DispenseThing()).
The other suggestion is to give hediffs ability to affect stats directly. This will allow modders and you make slaves with bad back or malaria cheaper, or make brain implants that will decrease psychic sensitivity.

Tynan

The drug interface will almost certainly be generalized.

For the dispenser - what the use case for this you have in mind?
Tynan Sylvester - @TynanSylvester - Tynan's Blog