NPC 포상룰 변경

This commit is contained in:
2020-05-20 01:11:35 +09:00
parent af899b3ca8
commit 72e4cf3d10
3 changed files with 12 additions and 11 deletions
+5 -5
View File
@@ -1249,7 +1249,7 @@ class GeneralAI
}
//국고와 '충분한 금액'의 기하평균
$payAmount = sqrt(($enoughMoney - $targetUserGeneral->getVar($resName)) * $resVal);
$payAmount = Util::valueFit($payAmount, $resVal - $reqNationRes * 0.9, $enoughMoney - $targetUserGeneral->getVar($resName));
$payAmount = Util::valueFit($payAmount, $resVal - $reqNationRes, $enoughMoney - $targetUserGeneral->getVar($resName));
if($payAmount < $this->nationPolicy->minimumResourceActionAmount){
continue;
@@ -1298,12 +1298,12 @@ class GeneralAI
'gold' => [
$this->nationPolicy->reqNationGold,
$nation['gold'],
$this->nationPolicy->reqNPCWarGold
$this->nationPolicy->reqNPCWarGold/2
],
'rice' => [
$this->nationPolicy->reqNationRice,
$nation['rice'],
$this->nationPolicy->reqNPCWarRice
$this->nationPolicy->reqNPCWarRice/2
]
];
@@ -1335,7 +1335,7 @@ class GeneralAI
}
//국고와 '충분한 금액'의 기하평균
$payAmount = sqrt(($enoughMoney - $targetNPCGeneral->getVar($resName)) * $resVal);
$payAmount = Util::valueFit($payAmount, $resVal - $reqNationRes * 0.8, $enoughMoney - $targetNPCGeneral->getVar($resName));
$payAmount = Util::valueFit($payAmount, $resVal - $reqNationRes*0.9, $enoughMoney - $targetNPCGeneral->getVar($resName));
if($payAmount < $this->nationPolicy->minimumResourceActionAmount){
continue;
@@ -1424,7 +1424,7 @@ class GeneralAI
}
//국고와 '충분한 금액'의 기하평균
$payAmount = sqrt(($enoughMoney - $targetNPCGeneral->getVar($resName)) * $resVal);
$payAmount = Util::valueFit($payAmount, $resVal - $reqNationRes * 0.9, $enoughMoney - $targetNPCGeneral->getVar($resName));
$payAmount = Util::valueFit($payAmount, $resVal - $reqNationRes, $enoughMoney - $targetNPCGeneral->getVar($resName));
if ($resVal < $payAmount / 2) {
continue;