// Medical · RimWorld Mod

Priority Treatment: Emergency Triage

Priority Treatment: Emergency Triage IMPORTANT NOTICE This is an add-on for Priority Treatment Ressurected by tk421storm.

Priority Treatment: Emergency Triage

IMPORTANT NOTICE

This is an add-on for Priority Treatment Ressurected by tk421storm. It is not a continuation and not a replacement. The original mod keeps doing its own work; this add-on only orders the candidate list the original mod already builds.

Original mod:
Priority Treatment Ressurected by tk421storm

Full credit for the original concept, design, and code belongs to tk421storm. If tk421storm requests that this add-on be removed, the Workshop item will be taken down promptly.

Priority Treatment Ressurected must be enabled and loaded before this add-on. Without it, this mod does nothing.


What Priority Treatment: Emergency Triage does

RimWorld can pick a patient from wherever they happen to sit in the candidate list. This add-on gives that list a clear order, so a doctor goes to the most urgent patient first.

  • Patients already being tended, rescued, or carried by another pawn are skipped, and return to the pool when that job ends.
  • Urgent treatment comes first, then rescue, then everything else.
  • Inside one urgency group, the patient with less time left before bleeding out comes first. One hour left beats eighteen hours left.
  • Only when the remaining bleed-out time is equal, ties break by colony membership (colonists and colony animals before prisoners, guests, and outsiders), then by species (any humanlike xenotype before animals).
  • Distance is the last tie-breaker only. This does not send the nearest doctor to every patient.
  • Animals are excluded by default and can be included in the mod settings.
  • A doctor with self-tending enabled can treat their own bleeding once they enter vanilla urgent-treatment range, and the suspended job resumes afterwards. Non-doctor colonists are not made to self-tend.
  • An urgent pawn still walking to a medical bed becomes a field-treatment candidate when a doctor can reach them, and otherwise keeps walking to the bed.
  • An in-progress medical job is interrupted only when a reachable patient is strictly more urgent than the current one. A closer or equally urgent patient does not interrupt anything.
  • Reservation, pathfinding, medicine selection, tending, and rescue stay with the original mod and vanilla.

Added in this release

  • See who is coming to help Select a patient and a line is drawn from every pawn on their way: cyan for a doctor coming to treat, orange for a pawn bringing food. A gizmo with the carer's portrait jumps the camera to them, and the inspect pane names them in one line.
  • Emergency feeding by anyone When a bed patient becomes urgently hungry or starving, colonists without Doctor work assigned can also deliver food. Doctors still feed patients normally; this is the fallback for when nobody else will. Enabled by default, and it can be turned off in the mod settings.
  • Abnormal-state starving animals are covered With the animal option enabled, a colony animal that is urgently hungry and impaired (malnutrition, tendable/immunizable illness, medical rest, or downed) can be emergency-fed. Healthy livestock that are only sleeping or grazing are left alone so colonists do not thrash on failed FeedPatient jobs.
  • Prisoner and food rules are respected Prisoners keep vanilla warden feeding, and food restrictions and forbidden food are honoured for every feeding job this add-on adds.
  • Feeding diagnostics When a hungry lying patient is not fed, the first vanilla gate that blocked it is written to Player.log per feeder and patient, so the cause is visible instead of guessed.
  • Triage playground for developer mode Debug actions under the PTET Triage category give a pawn a chosen bleed-out time, make a pawn urgently hungry, and log a care report of every bleeding or hungry pawn with their incoming carers.
  • Doctors no longer fight over each other A pawn running a medical job for a patient at least as urgent as themselves is kept out of the candidate pool, so two doctors cannot both drop everything for a doctor who is mid-rescue.
  • Korean translation Settings, tooltips, and the care-visibility labels are translated.

Compatibility

  • RimWorld 1.6
  • Priority Treatment Ressurected required, loaded before this add-on
  • Harmony required
  • Safe to add to an existing save. This add-on stores no world data of its own; only its mod settings are saved.
  • Care visibility uses vanilla display channels only, the world overlay, the gizmo row, and the inspect pane. No HUD is patched or replaced.
  • Set at least one pawn to Doctor priority 1, as the original mod requires. This add-on does not change work priority numbers.
  • Other medical or job-priority mods have not been tested against this add-on.

Bug reports

When reporting a problem, please include:

  • The full Player.log uploaded to a text-sharing service
  • The emergency-flow diagnostic setting turned on before reproducing, so the decision trace is in the log
  • Which patient was expected to be treated first, and who was treated instead
  • Whether the problem still happens with only Harmony, Priority Treatment Ressurected, and this add-on enabled
  • Steps that reproduce the problem

Credits

Original mod author: tk421storm

Original Workshop item:
Priority Treatment Ressurected

Thank you to tk421storm for keeping Priority Treatment alive, and to Andreas Pardeike for Harmony.