전투 구현 반영

This commit is contained in:
2018-08-20 03:46:59 +09:00
parent ae8ccfe3a1
commit afdfcdd465
3 changed files with 22 additions and 32 deletions
+18 -14
View File
@@ -74,6 +74,10 @@ class WarUnitGeneral extends WarUnit{
return $this->getVar('special2');
}
function getCharacter():int{
return $this->getVar('personal');
}
function getItem():int{
return $this->getVar('item');
}
@@ -102,10 +106,10 @@ class WarUnitGeneral extends WarUnit{
}
function getComputedAtmos(){
$train = $this->getVar('atmos');
$train += $this->trainBonus;
$atmos = $this->getVar('atmos');
$atmos += $this->atmosBonus;
return $train;
return $atmos;
}
function getComputedCriticalRatio():float{
@@ -491,6 +495,17 @@ class WarUnitGeneral extends WarUnit{
}
}
if(
$specialWar == 63 &&
$this->getPhase() == 0 &&
$this->getHP() >= 1000 &&
$this->getComputedAtmos() >= 90 &&
$this->getComputedTrain() >= 90
){
$this->activateSkill('위압');
$activated = true;
}
return $activated;
}
@@ -618,17 +633,6 @@ class WarUnitGeneral extends WarUnit{
}
}
if(
$specialWar == 63 &&
$this->getPhase() == 0 &&
$this->getHP() >= 1000 &&
$this->getComputedAtmos() >= 90 &&
$this->getComputedTrain() >= 90
){
$this->activateSkill('위압');
$activated = true;
}
if(
($item == 23 || $item == 24) &&
!$this->hasActivatedSkill('치료') &&