From 3bcf7e324fb256686d6433a1a0f59d00d9d8e0f2 Mon Sep 17 00:00:00 2001 From: hide_d Date: Sun, 12 Sep 2021 01:32:36 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9C=A0=EC=82=B0=20=ED=8F=AC=EC=9D=B8?= =?UTF-8?q?=ED=8A=B8=EB=A1=9C=20=EB=9E=9C=EB=8D=A4=20=EC=9C=A0=EB=8B=88?= =?UTF-8?q?=ED=81=AC=20=ED=9A=8D=EB=93=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/func.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hwe/func.php b/hwe/func.php index ae4cfc6d..3867a236 100644 --- a/hwe/func.php +++ b/hwe/func.php @@ -1835,6 +1835,13 @@ function tryUniqueItemLottery(General $general, string $acquireType = '아이템 $prob /= sqrt(2); $moreProb = pow(2, 1/4); + if($general->getAuxVar('inheritRandomUnique')){ + //포인트로 랜덤 유니크 획득 + $prob = 1; + LogText("{$general->getName()}, {$general->getID()} 유산 포인트 유니크", $prob); + $general->setAuxVar('inheritRandomUnique', null); + } + foreach (Util::range($trialCnt) as $_idx) { if (Util::randBool($prob)) { $result = true;