public PRF_SAL_Trarget(Map map, IntVec3 cell, Rot4 rot, Building_AutoMachineTool sal) { Map = map; Position = cell; Rotation = rot; mySAL = sal; }
static void Postfix(Pawn p, LocalTargetInfo target, bool ignoreOtherReservations, ref bool __result) { if (__result == true && ignoreOtherReservations == true) { if (target.HasThing && target.Thing != null && p != null && p != PRFGameComponent.PRF_StaticPawn) { Building_AutoMachineTool building = (Building_AutoMachineTool)target.Thing.InteractionCell.GetThingList(p.Map).Where(t => t is Building_AutoMachineTool).FirstOrDefault(); if (building != null) { __result = false; } } } }