Ver código fonte

添加注释

zansimple 7 meses atrás
pai
commit
cea3cb381f
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      SimulationServer/Entity/AircraftLandSJ.cs

+ 2 - 2
SimulationServer/Entity/AircraftLandSJ.cs

@@ -173,12 +173,12 @@ public class AircraftLandSJ : AircraftEntity
                     probability -= 0.5f;
                     probability -= 0.5f;
 
 
                     probability *= random.NextDouble();
                     probability *= random.NextDouble();
-                    double random1 = random.NextInt64(9000,10000); // 生成随机数比较概率
+                    double random1 = random.NextInt64(9000,10000); // 生成随机数比较概率  调整概率使任务成功率降低 至 0.5%(0.005)
                     random1 /= 10000;
                     random1 /= 10000;
                     probability += (0.5 * random1);
                     probability += (0.5 * random1);
                 }
                 }
                 
                 
-                double randomValue = random.NextInt64(9600,10000); // 生成随机数比较概率
+                double randomValue = random.NextInt64(9600,10000);  // 生成随机数比较概率  调整概率使任务成功率降低 至 0.5%(0.005)
                  randomValue /= 10000;
                  randomValue /= 10000;
                  
                  
                  Log.Info(
                  Log.Info(