전투 코드 반영
This commit is contained in:
+16
-4
@@ -14,12 +14,12 @@ class WarUnit{
|
||||
|
||||
protected $updatedVar = [];
|
||||
|
||||
protected $genAtmos = 0;
|
||||
protected $genTrain = 0;
|
||||
|
||||
protected $currPhase = 0;
|
||||
protected $prePhase = 0;
|
||||
|
||||
protected $atmosBonus = 0;
|
||||
protected $trainBonus = 0;
|
||||
|
||||
protected $oppose;
|
||||
protected $warPower;
|
||||
protected $warPowerMultiply = 1.0;
|
||||
@@ -49,6 +49,10 @@ class WarUnit{
|
||||
return 'EMPTY';
|
||||
}
|
||||
|
||||
function isAttacker():bool{
|
||||
return $this->isAttacker;
|
||||
}
|
||||
|
||||
function getCrewType():GameUnitDetail{
|
||||
return $this->crewType;
|
||||
}
|
||||
@@ -184,10 +188,14 @@ class WarUnit{
|
||||
return GameConst::$maxTrainByCommand;
|
||||
}
|
||||
|
||||
function getComputeAtmos(){
|
||||
function getComputedAtmos(){
|
||||
return GameConst::$maxAtmosByCommand;
|
||||
}
|
||||
|
||||
function getComputedAvoidRatio(){
|
||||
return $this->getCrewType()->avoid / 100;
|
||||
}
|
||||
|
||||
function addWin(){
|
||||
throw new NotInheritedMethodException();
|
||||
}
|
||||
@@ -278,6 +286,10 @@ class WarUnit{
|
||||
return false;
|
||||
}
|
||||
|
||||
function logBattleResult(){
|
||||
$this->getLogger()->pushBattleResultTemplate($this, $this->getOppose());
|
||||
}
|
||||
|
||||
function applyDB($db):bool{
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user