public void TryReproduceNow() { GenRadial.ProcessEquidistantCells(base.Position, 4f, delegate(List <IntVec3> cells) { if (cells.Where((IntVec3 x) => BlightUtility.GetFirstBlightableNowPlant(x, base.Map) != null).TryRandomElement(out IntVec3 result)) { BlightUtility.GetFirstBlightableNowPlant(result, base.Map).CropBlighted(); return(true); } return(false); }, base.Map);
public void TryReproduceNow() { GenRadial.ProcessEquidistantCells(base.Position, 4f, delegate(List <IntVec3> cells) { IntVec3 c; if ((from x in cells where BlightUtility.GetFirstBlightableNowPlant(x, base.Map) != null select x).TryRandomElement(out c)) { BlightUtility.GetFirstBlightableNowPlant(c, base.Map).CropBlighted(); return(true); } return(false); }, base.Map); }