랜덤 임관을 더 고르게 합니다.

This commit is contained in:
2018-11-28 00:18:09 +09:00
parent 9594e6eb32
commit 2eb136827d
+2 -2
View File
@@ -156,11 +156,11 @@ function process_25(&$general) {
}
$score = 1;
if($admin['startyear']+3 > $admin['year'] && $general['npc'] > 2){
if($admin['startyear']+3 > $admin['year'] && $general['npc'] == 2){
$score *= sqrt((100-max(30, $testNation['injury']))/100);
}
$score *= sqrt($allGen/$generals[$testNation['nation']]);
$score *= $allGen/$generals[$testNation['nation']];
$randVals[$idx] = $score;
}