// Token: 0x060000DD RID: 221 RVA: 0x00006F30 File Offset: 0x00005130
 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.BlueFire && Rand.Chance(BlueFireUtility.ChanceToStartFireIn(c, explosion.Map)))
     {
         BlueFireUtility.TryStartFireIn(c, explosion.Map, Rand.Range(0.2f, 0.6f));
     }
 }
Exemplo n.º 2
0
        // Token: 0x060000D4 RID: 212 RVA: 0x00006BB6 File Offset: 0x00004DB6
        public static bool TryStartFireIn(IntVec3 c, Map map, float fireSize)
        {
            if (BlueFireUtility.ChanceToStartFireIn(c, map) <= 0f)
            {
                return(false);
            }
            Fire fire = (Fire)ThingMaker.MakeThing(ThingDefOf.BlueFire, null);

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