아이템 구현. 장비매매 추가

This commit is contained in:
2018-10-21 01:55:09 +09:00
parent 05fcb5397e
commit b6db653f41
28 changed files with 777 additions and 208 deletions
+25
View File
@@ -0,0 +1,25 @@
<?php
namespace sammo\Constraint;
//일일히 클래스를 만들기 싫을 때 간단히 끝내는 Constraint
class AlwaysFail extends Constraint{
const REQ_VALUES = Constraint::REQ_STRING_ARG;
public function checkInputValues(bool $throwExeception=true){
if(!parent::checkInputValues($throwExeception) && !$throwException){
return false;
}
return true;
}
public function test():bool{
$this->checkInputValues();
$this->tested = true;
$this->reason = $this->arg;
return false;
}
}