feat: onCalcStat, onCalcOpposeStat에 battleOrder 추가
This commit is contained in:
+4
-1
@@ -222,7 +222,10 @@ function extractBattleOrder(WarUnit $defender, WarUnit $attacker)
|
|||||||
$totalStat = ($realStat + $fullStat) / 2;
|
$totalStat = ($realStat + $fullStat) / 2;
|
||||||
|
|
||||||
$totalCrew = $general->getVar('crew') / 1000000 * (($general->getVar('train') * $general->getVar('atmos')) ** 1.5);
|
$totalCrew = $general->getVar('crew') / 1000000 * (($general->getVar('train') * $general->getVar('atmos')) ** 1.5);
|
||||||
return $totalStat + $totalCrew / 100;
|
$value = $totalStat + $totalCrew / 100;
|
||||||
|
$value = $general->onCalcStat($general, 'battleOrder', $value, ['attacker' => $attacker]);
|
||||||
|
$value = $attacker->getGeneral()->onCalcOpposeStat($general, 'battleOrder', ['attacker' => $attacker]);
|
||||||
|
return $value;
|
||||||
}
|
}
|
||||||
|
|
||||||
function processWar_NG(
|
function processWar_NG(
|
||||||
|
|||||||
Reference in New Issue
Block a user