Mehni/kNumbers

Is FindMostSevereHediff Backwards?

maarxx opened this issue · 2 comments

if (hediffCompImmunizable.Immunity - hediff.Severity > delta)

Hey, is this backwards?

Looks like you're trying to find the most severe hediff, which I'm guessing is the most life-threatening hediff.

But looks like you're trying to find the one with the largest delta, where the largest delta would be the hediff with the most immunity and the least severity.

Looks backwards to me at first glance, but haven't tested it.

Mehni commented
Mehni commented