선전포고 최종 수정
This commit is contained in:
+7
-13
@@ -1547,6 +1547,10 @@ class GeneralAI
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if($this->frontCities){
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
$nation = $this->nation;
|
$nation = $this->nation;
|
||||||
$nationID = $nation['nation'];
|
$nationID = $nation['nation'];
|
||||||
|
|
||||||
@@ -1578,25 +1582,15 @@ class GeneralAI
|
|||||||
$avgGold /= $genCnt;
|
$avgGold /= $genCnt;
|
||||||
$avgRice /= $genCnt;
|
$avgRice /= $genCnt;
|
||||||
|
|
||||||
$trialProp = $avgGold / max($this->nationPolicy->reqNPCWarGold, 1000);
|
$trialProp = $avgGold / max($this->nationPolicy->reqNPCWarGold, 2000);
|
||||||
$trialProp += $avgRice / max($this->nationPolicy->reqNPCWarRice, 1000);
|
$trialProp += $avgRice / max($this->nationPolicy->reqNPCWarRice, 2000);
|
||||||
|
|
||||||
$devRate = $this->calcNationDevelopedRate();
|
$devRate = $this->calcNationDevelopedRate();
|
||||||
|
|
||||||
$trialProp += ($devRate['pop'] + $devRate['all']) / 2;
|
$trialProp += ($devRate['pop'] + $devRate['all']) / 2;
|
||||||
|
|
||||||
$trialProp /= 4;
|
$trialProp /= 4;
|
||||||
$trialProp = $trialProp**8;
|
$trialProp = $trialProp**6;
|
||||||
|
|
||||||
LogText('선전포고', [
|
|
||||||
'avgGold'=>$avgGold,
|
|
||||||
'reqGold'=>$this->nationPolicy->reqNPCWarGold,
|
|
||||||
'avgRice'=>$avgRice,
|
|
||||||
'reqRice'=>$this->nationPolicy->reqNPCWarRice,
|
|
||||||
'cnt'=>$genCnt,
|
|
||||||
'devRate'=>$devRate,
|
|
||||||
'prop'=>$trialProp
|
|
||||||
]);
|
|
||||||
|
|
||||||
if(!Util::randBool($trialProp)){
|
if(!Util::randBool($trialProp)){
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
Reference in New Issue
Block a user