RimWorldCCLTeam / CommunityCoreLibrary

For full details see the official Ludeon Forums thread.
https://ludeon.com/forums/index.php?topic=16599.0
The Unlicense
60 stars 27 forks source link

Working on Issue #179. #183

Closed Kelnor277 closed 7 years ago

Kelnor277 commented 7 years ago

Fixed issue where pawns would social relax with any drug.

Moved the ClosetThing_Global_Reachable predicate in TryGiveJobInt to TryFindIngestibleToNurse. Additional work required to use automated factories. I'm not sure how to implement that. Left the factory checks in the predicate for now.

TryFindIngestibleToNurse was already detoured and followed drug policy, but the method was never called in the Detoured TryGiveJobInt method. Instead the TryGiveJobInt method just found all drugs and passed them to the ClosetThing_Global_Reachable.

Not sure how to enable the automated factories, so I'll leave that to the maintainer.

Kelnor277 commented 7 years ago

Closing PR, Going to try to fix automated factories.