From 3e9f7f6d575bd63c163860da85dd06cbecfbad9a Mon Sep 17 00:00:00 2001 From: hide_d Date: Thu, 1 Feb 2018 00:36:44 +0900 Subject: [PATCH] =?UTF-8?q?array=5Frand=EB=8A=94=20=ED=82=A4=EB=A5=BC=20?= =?UTF-8?q?=EB=B0=98=ED=99=98=ED=95=98=EB=AF=80=EB=A1=9C=20=EA=B0=92?= =?UTF-8?q?=EC=9D=84=20=EC=96=BB=EB=8F=84=EB=A1=9D=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- che_close/func.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/che_close/func.php b/che_close/func.php index 9cd0cb1..deccfaa 100644 --- a/che_close/func.php +++ b/che_close/func.php @@ -448,29 +448,29 @@ function getSpecial($connect, $leader, $power, $intel) { //통장 if($leader*0.9 > $power && $leader*0.9 > $intel) { $type = array(20, 31); - $special = array_rand($type); + $special = $type[array_rand($type)]; // 귀모는 50% * 5% = 2.5% if($special == 31 && randF() < 0.05) { $type = array(20, 20); - $special = array_rand($type); + $special = $type[array_rand($type)]; } //무장 } elseif($power >= $intel) { $type = array(10, 11, 12, 31); - $special = array_rand($type); + $special = $type[array_rand($type)]; // 귀모는 그중에 25% * 10% = 2.5% if(($special == 30 || $special == 31) && randF() < 0.05) { $type = array(10, 11, 12); - $special = array_rand($type); + $special = $type[array_rand($type)]; } //지장 } elseif($intel > $power) { $type = array(1, 2, 3, 31); - $special = array_rand($type); + $special = $type[array_rand($type)]; // 거상, 귀모는 그중에 25% * 10% = 2.5% if($special == 31 && randF() < 0.05) { $type = array(1, 2, 3); - $special = array_rand($type); + $special = $type[array_rand($type)]; } } else { //귀모. 다만 이쪽으로 빠지지 않음.