mirror of
https://gitgud.io/Ed86/rjw-std.git
synced 2024-08-14 23:57:23 +00:00
21 lines
No EOL
496 B
C#
21 lines
No EOL
496 B
C#
using RimWorld;
|
|
using Verse;
|
|
|
|
namespace rjwstd
|
|
{
|
|
public class ThoughtWorker_SyphiliticThoughts : ThoughtWorker
|
|
{
|
|
protected override ThoughtState CurrentStateInternal(Pawn p)
|
|
{
|
|
var syp = p.health.hediffSet.GetFirstHediffOfDef(std_Syphilis.syphilis.hediff_def);
|
|
if (syp != null)
|
|
{
|
|
if (syp.Severity >= 0.80f)
|
|
return ThoughtState.ActiveAtStage(1);
|
|
else if (syp.Severity >= 0.50f)
|
|
return ThoughtState.ActiveAtStage(0);
|
|
}
|
|
return ThoughtState.Inactive;
|
|
}
|
|
}
|
|
} |