Example #1
0
 // Token: 0x06000002 RID: 2 RVA: 0x00002174 File Offset: 0x00000374
 public override void ExplosionAffectCell(Explosion explosion, IntVec3 c, List <Thing> damagedThings, List <Thing> ignoredThings, bool canThrowMotes)
 {
     base.ExplosionAffectCell(explosion, c, damagedThings, ignoredThings, canThrowMotes);
     if (this.def == DamageDefOf.RedFire && Rand.Chance(RedFireUtility.ChanceToStartFireIn(c, explosion.Map)))
     {
         RedFireUtility.TryStartFireIn(c, explosion.Map, Rand.Range(0.2f, 0.6f));
     }
 }
        // Token: 0x06000007 RID: 7 RVA: 0x0000233A File Offset: 0x0000053A
        public static bool TryStartFireIn(IntVec3 c, Map map, float fireSize)
        {
            if (RedFireUtility.ChanceToStartFireIn(c, map) <= 0f)
            {
                return(false);
            }
            Fire fire = (Fire)ThingMaker.MakeThing(ThingDefOf.RedFire, null);

            fire.fireSize = fireSize;
            GenSpawn.Spawn(fire, c, map, Rot4.North, WipeMode.Vanish, false);
            return(true);
        }