From 8ff3a5a7a8344cdd4036511160105c85b52d6200 Mon Sep 17 00:00:00 2001 From: Hide_D Date: Sun, 30 Oct 2022 21:29:48 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20GameConst=EC=97=90=EC=84=9C=20=EC=9C=A0?= =?UTF-8?q?=EB=8B=88=ED=81=AC=20=ED=9A=8D=EB=93=9D=20=ED=99=95=EB=A5=A0=20?= =?UTF-8?q?=EC=A1=B0=EC=A0=95=20=EA=B0=80=EB=8A=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/func.php | 3 ++- hwe/sammo/GameConstBase.php | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/hwe/func.php b/hwe/func.php index c08fd628..ec2bddc5 100644 --- a/hwe/func.php +++ b/hwe/func.php @@ -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); diff --git a/hwe/sammo/GameConstBase.php b/hwe/sammo/GameConstBase.php index fa4415a7..9cc5d8ad 100644 --- a/hwe/sammo/GameConstBase.php +++ b/hwe/sammo/GameConstBase.php @@ -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;