Exemplo n.º 1
0
 // Token: 0x06000020 RID: 32 RVA: 0x00002C0C File Offset: 0x00000E0C
 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.GreenFire && Rand.Chance(GreenFireUtility.ChanceToStartFireIn(c, explosion.Map)))
     {
         GreenFireUtility.TryStartFireIn(c, explosion.Map, Rand.Range(0.2f, 0.6f));
     }
 }
Exemplo n.º 2
0
        // Token: 0x06000025 RID: 37 RVA: 0x00002DD2 File Offset: 0x00000FD2
        public static bool TryStartFireIn(IntVec3 c, Map map, float fireSize)
        {
            if (GreenFireUtility.ChanceToStartFireIn(c, map) <= 0f)
            {
                return(false);
            }
            Fire fire = (Fire)ThingMaker.MakeThing(ThingDefOf.GreenFire, null);

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