rjw-quirks/RJW-Quirks/Modules/Shared/Selectors/Pawn/LogicalOr.cs
2022-11-01 12:15:06 -04:00

21 lines
426 B
C#

using Verse;
namespace rjwquirks.Modules.Shared.PawnSelectors
{
public class LogicalOr : LogicalMultipart
{
public override bool PawnSatisfies(Pawn pawn)
{
for (int i = 0; i < parts.Count; i++)
{
if (parts[i].PawnSatisfies(pawn))
{
return true;
}
}
return false;
}
}
}