2022-05-26 11:37:23 +00:00
|
|
|
|
using RimWorld;
|
|
|
|
|
using Verse;
|
|
|
|
|
|
|
|
|
|
namespace STD
|
|
|
|
|
{
|
|
|
|
|
public class ThoughtWorker_SyphiliticThoughts : ThoughtWorker
|
|
|
|
|
{
|
|
|
|
|
protected override ThoughtState CurrentStateInternal(Pawn p)
|
|
|
|
|
{
|
2022-06-01 09:23:51 +00:00
|
|
|
|
var syp = p.health.hediffSet.GetFirstHediffOfDef(std_Syphilis.syphilis.hediff_def);
|
2022-05-26 11:37:23 +00:00
|
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|