public static void PushHeat(Thing t, float energy)
        {
            IntVec3 c = default(IntVec3);

            if (t.GetRoomGroup() != null)
            {
                GenTemperature.PushHeat(t.Position, t.Map, energy);
            }
            else if (GenAdj.TryFindRandomAdjacentCell8WayWithRoomGroup(t, out c))
            {
                GenTemperature.PushHeat(c, t.Map, energy);
            }
        }
Пример #2
0
        public static void PushHeat(Thing t, float energy)
        {
            IntVec3 result;

            if (t.GetRoomGroup() != null)
            {
                PushHeat(t.Position, t.Map, energy);
            }
            else if (GenAdj.TryFindRandomAdjacentCell8WayWithRoomGroup(t, out result))
            {
                PushHeat(result, t.Map, energy);
            }
        }