전투 엔진 버그 1차 수정
This commit is contained in:
@@ -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{
|
||||
|
||||
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user