mirror of
https://gitgud.io/LonelyRain/rjw-quirks.git
synced 2024-08-08 04:27:05 +00:00
21 lines
426 B
C#
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;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|