phan 처리

This commit is contained in:
2020-05-02 12:01:54 +09:00
parent c8948953c9
commit 016ca770f5
47 changed files with 155 additions and 95 deletions
@@ -2,7 +2,7 @@
namespace sammo\Constraint;
class AllowWar extends Constraint{
class AllowStrategicCommand extends Constraint{
const REQ_VALUES = Constraint::REQ_NATION;
public function checkInputValues(bool $throwExeception=true):bool{
@@ -5,7 +5,7 @@ use \sammo\DB;
use \sammo\GameConst;
use \sammo\Json;
class AllowJoinDestNation extends Constraint{
class ExistsAllowJoinNation extends Constraint{
const REQ_VALUES = Constraint::REQ_GENERAL|Constraint::REQ_ARRAY_ARG;
protected $relYear;
+3 -1
View File
@@ -111,7 +111,9 @@ class ReqCityValue extends Constraint{
return '부족합니다.';
},
'>'=>function($target, $src){
return $target > $src;
if($target > $src){
return true;
}
if($src == 0){
return '없습니다';
}
+3 -1
View File
@@ -111,7 +111,9 @@ class ReqDestCityValue extends Constraint{
return '부족합니다.';
},
'>'=>function($target, $src){
return $target > $src;
if($target > $src){
return true;
}
if($src == 0){
return '없습니다';
}
+3 -1
View File
@@ -111,7 +111,9 @@ class ReqDestNationValue extends Constraint{
return '부족합니다.';
},
'>'=>function($target, $src){
return $target > $src;
if($target > $src){
return true;
}
if($src == 0){
return '없습니다';
}
+3 -1
View File
@@ -89,7 +89,9 @@ class ReqGeneralValue extends Constraint{
return '부족합니다.';
},
'>'=>function($target, $src){
return $target > $src;
if($target > $src){
return true;
}
if($src == 0){
return '없습니다';
}
+3 -1
View File
@@ -135,7 +135,9 @@ class ReqNationAuxValue extends Constraint{
return '부족합니다.';
},
'>'=>function($target, $src){
return $target > $src;
if($target > $src){
return true;
}
if($src == 0){
return '없습니다';
}
+3 -1
View File
@@ -111,7 +111,9 @@ class ReqNationValue extends Constraint{
return '부족합니다.';
},
'>'=>function($target, $src){
return $target > $src;
if($target > $src){
return true;
}
if($src == 0){
return '없습니다';
}