public static FindSupplyShip ( Faction faction ) : |
||
faction | Faction | |
리턴 |
protected override Job TryGiveJob(Pawn pawn) { Building_SupplyShip supplyShip = OG_Util.FindSupplyShip(pawn.Faction); if (supplyShip == null) { return(null); } // Outpost has been captured or pawn has no weapon or an apparel in bad conditions. if (IsOutpostCaptured() || IsLackingWeapon(pawn) || IsWearingDamagedApparel(pawn) || IsLackingPant(pawn)) { if (pawn.CanReserveAndReach(supplyShip, PathEndMode.OnCell, Danger.Deadly)) { return(new Job(DefDatabase <JobDef> .GetNamed(OG_Util.JobDefName_BoardSupplyShip), supplyShip)); } } return(null); }