버그 수정
This commit is contained in:
@@ -58,6 +58,10 @@ class che_NPC능동 extends Command\GeneralCommand{
|
||||
|
||||
}
|
||||
|
||||
public function canDisplay():bool{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function getCost():array{
|
||||
return [0, 0];
|
||||
}
|
||||
|
||||
@@ -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];
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -60,7 +60,6 @@ class che_첩보 extends Command\GeneralCommand
|
||||
[$reqGold, $reqRice] = $this->getCost();
|
||||
|
||||
$this->minConditionConstraints = [
|
||||
ConstraintHelper::NotOccupiedDestCity(),
|
||||
ConstraintHelper::ReqGeneralGold($reqGold),
|
||||
ConstraintHelper::ReqGeneralRice($reqRice),
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user