public static bool mineOut(Map map, IntVec3 pos)
        {
            Designator_Mine mine = Find.ReverseDesignatorDatabase.Get <Designator_Mine>();

            if (mine != null && mine.CanDesignateCell(pos).Equals(AcceptanceReport.WasAccepted))
            {
                mine.DesignateSingleCell(pos);
                return(true);
            }
            return(false);
        }
Example #2
0
 // Wether an mine "Order" hassn't been placed on the cell yet
 private static bool HasntBeenDesignatedYet(Designator_Mine dm, IntVec3 cell)
 {
     return(dm.CanDesignateCell(cell).Accepted);
 }