귀모 내특 확률이 잘못 계산되던 문제

This commit is contained in:
2018-02-04 04:00:37 +09:00
parent 8866a05c01
commit 26ab9044f0
+4 -5
View File
@@ -91,16 +91,15 @@ 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) {
$type = array(20, 20);
$special = $type[array_rand($type)];
if($special == 31 && randF() > 0.05) {
$special = 20;
}
//무장
} elseif($power >= $intel) {
$type = array(10, 11, 12, 31);
$special = $type[array_rand($type)];
// 귀모는 그중에 25% * 10% = 2.5%
if(($special == 30 || $special == 31) && randF() < 0.05) {
if($special == 31 && randF() > 0.1) {
$type = array(10, 11, 12);
$special = $type[array_rand($type)];
}
@@ -109,7 +108,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.05) {
if($special == 31 && randF() > 0.1) {
$type = array(1, 2, 3);
$special = $type[array_rand($type)];
}