Example #1
0
 private void HandleDecompressionFloorRip(float sum)
 {
     if (sum > 20 && _robustRandom.Prob(MathF.Clamp(sum / 100, 0.005f, 0.5f)))
     {
         _gridAtmosphereComponent.PryTile(GridIndices);
     }
 }
Example #2
0
        private void HandleDecompressionFloorRip(float sum)
        {
            var chance = MathHelper.Clamp(sum / 500, 0.005f, 0.5f);

            if (sum > 20 && _robustRandom.Prob(chance))
            {
                _gridAtmosphereComponent.PryTile(GridIndices);
            }
        }