전쟁장 판단 기준 임시 수정, 사망 대비 장수에겐 포상안함

This commit is contained in:
2020-06-09 20:32:49 +09:00
parent 954995b3ef
commit d67e7a3b4d
+12
View File
@@ -1139,6 +1139,9 @@ class GeneralAI
if($targetUserGeneral->getVar($resName) >= $reqHumanMinRes){
break;
}
if($targetUserGeneral->getVar('killturn') <= 5){
continue;
}
$crewtype = $targetUserGeneral->getCrewTypeObj();
$reqMoney = $crewtype->costWithTech($this->nation['tech'], $targetUserGeneral->getLeadership(false)) * 100 * 3 * 1.1;
@@ -1228,6 +1231,9 @@ class GeneralAI
if($targetUserGeneral->getVar($resName) >= $reqHumanMinWarRes){
break;
}
if($targetUserGeneral->getVar('killturn') <= 5){
continue;
}
if(key_exists($targetUserGeneral->getID(), $this->userWarGenerals)){
$isWarGeneral = true;
@@ -1328,6 +1334,9 @@ class GeneralAI
if($targetNPCGeneral->getVar($resName) >= $reqNPCMinWarRes){
break;
}
if($targetNPCGeneral->getVar('killturn') <= 5){
continue;
}
$crewtype = $targetNPCGeneral->getCrewTypeObj();
$reqMoney = $crewtype->costWithTech($this->nation['tech'], $targetNPCGeneral->getLeadership(false)) * 100 * 1.5;
@@ -1417,6 +1426,9 @@ class GeneralAI
if($targetNPCGeneral->getVar($resName) >= $reqNPCMinWarRes){
break;
}
if($targetNPCGeneral->getVar('killturn') <= 5){
continue;
}
$crewtype = $targetNPCGeneral->getCrewTypeObj();
$reqMoney = $crewtype->costWithTech($nation['tech'], $targetNPCGeneral->getLeadership(false)) * 100 * 3 * 1.1;