커맨드 유효성을 2개에서 3개구성으로 변경

This commit is contained in:
2020-05-04 19:51:11 +09:00
parent dbba6fa942
commit 76ac6cf5b5
100 changed files with 4124 additions and 3420 deletions
+3 -7
View File
@@ -48,11 +48,11 @@ class che_NPC능동 extends Command\GeneralCommand{
$this->setNation();
$this->reservableConstraints=[
$this->permissionConstraints=[
ConstraintHelper::MustBeNPC()
];
$this->runnableConstraints=[
$this->fullConditionConstraints=[
];
@@ -70,12 +70,8 @@ class che_NPC능동 extends Command\GeneralCommand{
return 0;
}
public function canDisplay():bool{
return false;
}
public function run():bool{
if(!$this->isRunnable()){
if(!$this->hasFullConditionMet()){
throw new \RuntimeException('불가능한 커맨드를 강제로 실행 시도');
}