유산 포인트 사용 시스템 #193

Merged
Hide_D merged 34 commits from inherit_buff into devel 2021-09-16 04:06:16 +09:00
2 changed files with 9 additions and 1 deletions
Showing only changes of commit 28ad275382 - Show all commits
+8
View File
@@ -34,6 +34,14 @@ class DummyGeneral extends General{
return new WarUnitTriggerCaller();
}
public function onCalcStat(General $general, string $statName, $value, $aux=null){
return $value;
}
public function onCalcOpposeStat(General $general, string $statName, $value, $aux=null){
return $value;
}
function applyDB($db):bool{
if($this->logger){
$this->initLogger(1, 1);
+1 -1
View File
@@ -67,7 +67,7 @@ class WarUnitGeneral extends WarUnit
{
$phase = $this->getCrewType()->speed;
$phase = $this->general->onCalcStat($this->general, 'initWarPhase', $phase, ['isAttacker' => $this->isAttacker]);
$phase = $this->oppose->general->onCalcOpposeStat($this->general, 'initWarPhase', $phase, ['isAttacker' => $this->isAttacker]);
//maxPhase는 상대가 결정되기 전에 계산되므로 oppose를 호출할 수 없음
return $phase + $this->bonusPhase;
}