From 71d7634954ea119c70a6fde50185727f65f0efe7 Mon Sep 17 00:00:00 2001 From: hide_d Date: Sun, 12 Sep 2021 01:05:38 +0900 Subject: [PATCH] =?UTF-8?q?balance:=20=EC=95=84=EC=9D=B4=ED=85=9C=20?= =?UTF-8?q?=EC=8A=B5=EB=93=9D=20=ED=99=95=EB=A5=A0=20=EC=A1=B0=EC=A0=95=20?= =?UTF-8?q?-=20=EC=95=84=EC=9D=B4=ED=85=9C=EC=9D=84=20=EC=86=8C=EC=9C=A0?= =?UTF-8?q?=ED=95=A0=20=EC=88=98=EB=A1=9D,=20=ED=9A=8D=EB=93=9D=20?= =?UTF-8?q?=ED=99=95=EB=A5=A0=EC=9D=B4=20=EA=B8=B0=EC=A1=B4=EB=B3=B4?= =?UTF-8?q?=EB=8B=A4=20=ED=9B=A8=EC=94=AC=20=EB=8D=94=20=EB=82=AE=EC=95=84?= =?UTF-8?q?=EC=A7=84=EB=8B=A4.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/func.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hwe/func.php b/hwe/func.php index c83ba479..ae4cfc6d 100644 --- a/hwe/func.php +++ b/hwe/func.php @@ -1832,13 +1832,15 @@ function tryUniqueItemLottery(General $general, string $acquireType = '아이템 $prob = Util::valueFit($prob, null, 1 / 4); //최대치 감소 $result = false; - + $prob /= sqrt(2); + $moreProb = pow(2, 1/4); foreach (Util::range($trialCnt) as $_idx) { if (Util::randBool($prob)) { $result = true; break; } + $prob *= $moreProb; } if (!$result) { LogText("{$general->getName()}, {$general->getID()} 유니크 실패 {$trialCnt}", $prob);