버그 수정

This commit is contained in:
2019-04-21 11:43:23 +09:00
parent a21eef6e84
commit b4b6f5a1f7
56 changed files with 77 additions and 73 deletions
+3 -2
View File
@@ -14,7 +14,7 @@ class ReqCityCapacity extends Constraint{
protected $reqVal;
public function checkInputValues(bool $throwExeception=true){
if(!parent::checkInputValues($throwExeception) && !$throwException){
if(!parent::checkInputValues($throwExeception) && !$throwExeception){
return false;
}
@@ -50,6 +50,7 @@ class ReqCityCapacity extends Constraint{
public function test():bool{
$this->checkInputValues();
$this->tested = true;
$keyNick = $this->keyNick;
if($this->isPercent){
if($this->city[$this->key] >= $this->city[$this->maxKey] * $this->reqVal){
@@ -64,7 +65,7 @@ class ReqCityCapacity extends Constraint{
}
$josaYi = JosaUtil::pick($keyNick, '이');
$this->reason = "{$keyNick}{$josaUn} 부족합니다.";
$this->reason = "{$keyNick}{$josaYi} 부족합니다.";
return false;
}
}