feat: GameConst에서 유니크 획득 확률 조정 가능

This commit is contained in:
2022-10-30 21:29:48 +09:00
parent 48c77bd6a2
commit 8ff3a5a7a8
2 changed files with 5 additions and 1 deletions
+2 -1
View File
@@ -1745,7 +1745,8 @@ function tryUniqueItemLottery(RandUtil $rng, General $general, string $acquireTy
$prob = 1 / ($genCount * $itemTypeCnt / 10 / 4); // 건국시 4개(20%) 등장(200명시 20국 정도 됨)
}
$prob = Util::valueFit($prob, null, 1 / 4); //최대치 감소
$prob *= GameConst::$uniqueTrialCoef;
$prob = Util::valueFit($prob, null, GameConst::$maxUniqueTrialProb); //최대치 감소
$result = false;
$prob /= sqrt(7);
+3
View File
@@ -204,6 +204,9 @@ class GameConstBase
[20, 4]
];
public static $uniqueTrialCoef = 1;
public static $maxUniqueTrialProb = 0.25;
public static $maxAvailableWarSettingCnt = 10;
public static $incAvailableWarSettingCnt = 2;