버그 수정

This commit is contained in:
2020-05-04 20:01:23 +09:00
parent 77248ad4d8
commit 44e1bb10c3
12 changed files with 39 additions and 8 deletions
@@ -58,6 +58,10 @@ class che_NPC능동 extends Command\GeneralCommand{
}
public function canDisplay():bool{
return false;
}
public function getCost():array{
return [0, 0];
}
+5 -1
View File
@@ -95,12 +95,16 @@ class che_등용 extends Command\GeneralCommand{
ConstraintHelper::ReqGeneralGold($reqGold),
ConstraintHelper::ReqGeneralRice($reqRice),
];
if($this->destGeneralObj->getVar('officer_level') == 12){
$this->fullConditionConstraints[] = ConstraintHelper::AlwaysFail('군주에게는 등용장을 보낼 수 없습니다.');
}
}
public function canDisplay():bool{
return $this->env['join_mode'] !== 'onlyRandom';
}
public function getCost():array{
$env = $this->env;
if(!$this->isArgValid){
@@ -100,6 +100,10 @@ class che_등용수락 extends Command\GeneralCommand{
];
}
public function canDisplay():bool{
return false;
}
public function getCost():array{
return [0, 0];
}
+4
View File
@@ -96,6 +96,10 @@ class che_임관 extends Command\GeneralCommand{
}
public function canDisplay():bool{
return $this->env['join_mode'] !== 'onlyRandom';
}
protected function initWithArg()
{
$destGeneralID = $this->arg['destGeneralID']??null;
-1
View File
@@ -60,7 +60,6 @@ class che_첩보 extends Command\GeneralCommand
[$reqGold, $reqRice] = $this->getCost();
$this->minConditionConstraints = [
ConstraintHelper::NotOccupiedDestCity(),
ConstraintHelper::ReqGeneralGold($reqGold),
ConstraintHelper::ReqGeneralRice($reqRice),
];