argTest를 로직 순서에 맞게 변경

This commit is contained in:
2018-10-21 14:28:29 +09:00
parent c08459e370
commit 6c5c2d40bc
27 changed files with 289 additions and 304 deletions
+10 -10
View File
@@ -16,16 +16,6 @@ use \sammo\Constraint\Constraint;
class che_NPC능동 extends Command\GeneralCommand{
static protected $actionName = 'NPC능동';
protected function init(){
$general = $this->generalObj;
$this->runnableConstraints=[
['MustBeNPC']
];
}
protected function argTest():bool{
if(!key_exists('optionText', $this->arg)){
return false;
@@ -48,6 +38,16 @@ class che_NPC능동 extends Command\GeneralCommand{
return false;
}
protected function init(){
$general = $this->generalObj;
$this->runnableConstraints=[
['MustBeNPC']
];
}
public function getCost():array{
return [0, 0];
}