Esempio n. 1
0
        public static void Postfix(ref Danger __result, Verse.Region __instance)
        {
            var danger = __instance.Map.GetComponent <MapComponent_GasDanger>()?.DangerIn(__instance) ?? Danger.None;

            //  result is highest level of danger.
            __result = danger > __result ? danger : __result;
        }
Esempio n. 2
0
 public static void Postfix(ref Danger __result, Verse.Region __instance)
 {
     if (Gas_Spreading.AnyGases)
     {
         var danger = MapComponent_GasDanger.GetCachedComp(__instance.Map)?.DangerIn(__instance) ?? Danger.None;
         //  result is highest level of danger.
         __result = danger > __result ? danger : __result;
     }
 }
Esempio n. 3
0
 public void SetRegionAt(IntVec3 c, Region reg)
 {
     this.regionGrid[this.map.cellIndices.CellToIndex(c)] = reg;
 }
Esempio n. 4
0
 public Region GetOtherRegion(Region reg)
 {
     return((reg != this.RegionA) ? this.RegionA : this.RegionB);
 }
 private static bool <DoClamor> m__0(Region from, Region r)
 {
     return(r.door == null || r.door.Open);
 }