sumghai / MedPod

Advanced regenerative medical beds for RimWorld
Other
14 stars 15 forks source link

Stop the bleeding at the beginning. Implementation of sumghai#23 #27

Closed otterDeveloper closed 3 years ago

otterDeveloper commented 3 years ago

The StabilizePatient method will stop bleeding at the start of the Diagnosis It works by replacing the Hediff of the pawn with a tended version.

I basically just applied to the pawn the @MerGatto (thanks btw) contribution because apparently the heddiffpatientTreatableHediffs list gets a copy of the hediffs not a reference and therefore changes are not applied. Created a new method for clarity

I needed to capitalize .part because .part is private and the IDE wouldn't let my build the project

otterDeveloper commented 3 years ago

It was fixed but not built I just realized.

Sorry, what a dumb mistake.