public static bool DayOfTwelfthWithin(this Pawn p, List <IntRange> parameters) { if (p.Map == null) { return(false); } int val = GenLocalDate.DayOfTwelfth(p); return(parameters.Any(ir => ir.min >= val && ir.max <= val)); }
public static bool DayOfTwelfthWithin(this Pawn p, List <IntRange> parameters) { if (p.Map == null) { return(false); } int val = GenLocalDate.DayOfTwelfth(p); return(parameters.Any(ir => ir.min >= val && ir.max <= val)); }