Exemple #1
0
        // Token: 0x06000004 RID: 4 RVA: 0x00002180 File Offset: 0x00000380
        public float ScatterRadiusAt10tilesAway(ThingDef projectile)
        {
            bool flag = projectile.comps != null;

            if (flag)
            {
                int i     = 0;
                int count = projectile.comps.Count;
                while (i < count)
                {
                    CompProperties_ProjectileMultiple compProperties_ProjectileMultiple = projectile.comps[i] as CompProperties_ProjectileMultiple;
                    bool flag2 = compProperties_ProjectileMultiple != null;
                    if (flag2)
                    {
                        return(compProperties_ProjectileMultiple.scatterRadiusAt10tilesAway);
                    }
                    i++;
                }
            }
            return(0f);
        }
Exemple #2
0
        // Token: 0x06000002 RID: 2 RVA: 0x000020A4 File Offset: 0x000002A4
        public int PelletsPerShot(ThingDef projectile)
        {
            bool flag = projectile.comps != null;

            if (flag)
            {
                int i     = 0;
                int count = projectile.comps.Count;
                while (i < count)
                {
                    CompProperties_ProjectileMultiple compProperties_ProjectileMultiple = projectile.comps[i] as CompProperties_ProjectileMultiple;
                    bool flag2 = compProperties_ProjectileMultiple != null;
                    if (flag2)
                    {
                        return(compProperties_ProjectileMultiple.pellets);
                    }
                    i++;
                }
            }
            return(1);
        }