전투 엔진 버그 1차 수정

This commit is contained in:
2018-08-21 00:53:00 +09:00
parent a478200549
commit e6595a5e77
4 changed files with 27 additions and 26 deletions
+4 -3
View File
@@ -100,7 +100,7 @@ class WarUnit{
$this->updateVar($key, $targetValue);
}
function getNationVar(string $key):array{
function getNationVar(string $key){
return $this->rawNation[$key];
}
@@ -311,13 +311,13 @@ class WarUnit{
return $this->activatedSkill[$skillName] ?? false;
}
function activateSkill(... $skillNames):bool{
function activateSkill(... $skillNames){
foreach($skillNames as $skillName){
$this->activatedSkill[$skillName] = true;
}
}
function deactivateSkill(... $skillNames):bool{
function deactivateSkill(... $skillNames){
foreach($skillNames as $skillName){
$this->activatedSkill[$skillName] = false;
}
@@ -336,6 +336,7 @@ class WarUnit{
}
function applyActiveSkill(){
yield true;
}
function getHP():int{
+2 -2
View File
@@ -49,7 +49,7 @@ class WarUnitGeneral extends WarUnit{
return $this->getVar('name');
}
function getCityVar(string $key):array{
function getCityVar(string $key){
return $this->rawCity[$key];
}
@@ -88,7 +88,7 @@ class WarUnitGeneral extends WarUnit{
if($this->getSpecialWar() == 60){
$phase += 1;
}
return $phase + $bonusPhase;
return $phase + $this->bonusPhase;
}
function addTrain(int $train){