rjw-genes/Source/Genes/Hive/Thoughts/Thoughtworker_RivalQueen_Mood.cs

30 lines
620 B
C#
Raw Normal View History

using RimWorld;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Verse;
namespace RJW_Genes
{
public class Thoughtworker_RivalQueen_Mood : ThoughtWorker
{
protected override ThoughtState CurrentStateInternal(Pawn p)
{
if (p == null || !p.Spawned)
return (ThoughtState) false;
if (HiveUtility.IsAdultQueen(p) && HiveUtility.QueensOnMap() >= 2)
{
return (ThoughtState) true;
}
return (ThoughtState) false;
}
}
}