임관 시도 확률 변경, NPC 랜임시 부상 패널티 약화
This commit is contained in:
+1
-1
@@ -321,7 +321,7 @@ function processAI($no) {
|
||||
MYDB_query($query, $connect) or Error("processAI07 ".MYDB_error($connect),"");
|
||||
return;
|
||||
} elseif($general['npc'] < 5 && $general['level'] == 0) {
|
||||
switch(Util::choiceRandomUsingWeight([10, 40, 20, 30])) {
|
||||
switch(Util::choiceRandomUsingWeight([13, 40, 20, 27])) {
|
||||
//임관 10%
|
||||
case 0:
|
||||
|
||||
|
||||
@@ -136,7 +136,7 @@ function process_25(&$general) {
|
||||
|
||||
$score = 1;
|
||||
if($admin['startyear']+3 > $admin['year'] && $general['npc'] > 2){
|
||||
$score *= sqrt((100-$testNation['injury'])/100);
|
||||
$score *= sqrt((100-max(30, $testNation['injury']))/100);
|
||||
}
|
||||
|
||||
$score *= sqrt($allGen/$testNation['gennum']);
|
||||
|
||||
Reference in New Issue
Block a user