저격 다시 세팅, 아이템 namespace 버그 수정, 전투치료(의술) 구현

This commit is contained in:
2019-05-12 21:03:21 +09:00
parent 3386d2f637
commit 08373b76a2
28 changed files with 237 additions and 92 deletions
+2
View File
@@ -90,6 +90,7 @@ class WarUnitGeneral extends WarUnit{
$general = $this->general;
$criticalRatio = $this->getCrewType()->getCriticalRatio($general);
/** @var float $criticalRatio */
$criticalRatio = $general->onCalcStat($general, 'warCriticalRatio', $criticalRatio, ['isAttacker'=>$this->isAttacker]);
return $criticalRatio;
}
@@ -100,6 +101,7 @@ class WarUnitGeneral extends WarUnit{
$avoidRatio = $this->getCrewType()->avoid / 100;
$avoidRatio *= $this->getComputedTrain() / 100;
/** @var float $avoidRatio */
$avoidRatio = $general->onCalcStat($general, 'warAvoidRatio', $avoidRatio, ['isAttacker'=>$this->isAttacker]);
if($this->getOppose()->getCrewType()->armType == GameUnitConst::T_FOOTMAN){