From d8a39290f6ba1e0d22f538eefa0184208390c626 Mon Sep 17 00:00:00 2001 From: hide_d Date: Fri, 9 Feb 2018 02:13:36 +0900 Subject: [PATCH] =?UTF-8?q?=ED=8A=B9=EA=B8=B0=20=EB=93=B1=EC=9E=A5=20?= =?UTF-8?q?=ED=99=95=EB=A5=A0=EC=9D=84=20randF=EA=B0=80=20=EC=95=84?= =?UTF-8?q?=EB=8B=8C=20randBool=EB=A1=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- twe/func_gamerule.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/twe/func_gamerule.php b/twe/func_gamerule.php index d549f4ea..9899d98b 100644 --- a/twe/func_gamerule.php +++ b/twe/func_gamerule.php @@ -156,7 +156,7 @@ function getSpecial($connect, $leader, $power, $intel) { $type = array(20, 31); $special = $type[array_rand($type)]; // 귀모는 50% * 5% = 2.5% - if($special == 31 && randF() > 0.05) { + if($special == 31 && randBool(0.95)) { $special = 20; } //무장 @@ -164,7 +164,7 @@ function getSpecial($connect, $leader, $power, $intel) { $type = array(10, 11, 12, 31); $special = $type[array_rand($type)]; // 귀모는 그중에 25% * 10% = 2.5% - if($special == 31 && randF() > 0.1) { + if($special == 31 && randBool(0.9)) { $type = array(10, 11, 12); $special = $type[array_rand($type)]; } @@ -173,7 +173,7 @@ function getSpecial($connect, $leader, $power, $intel) { $type = array(1, 2, 3, 31); $special = $type[array_rand($type)]; // 거상, 귀모는 그중에 25% * 10% = 2.5% - if($special == 31 && randF() > 0.1) { + if($special == 31 && randBool(0.9)) { $type = array(1, 2, 3); $special = $type[array_rand($type)]; }