버그 수정
This commit is contained in:
@@ -45,7 +45,7 @@ class AllowJoinDestNation extends Constraint{
|
||||
return false;
|
||||
}
|
||||
|
||||
if($this->destNation['scout'] == 0){
|
||||
if($this->destNation['scout'] == 1){
|
||||
$this->reason = "임관이 금지되어 있습니다.";
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -4,6 +4,8 @@ namespace sammo\Constraint;
|
||||
|
||||
use \sammo\GameUnitConst;
|
||||
use \sammo\DB;
|
||||
use \sammo\KVStorage;
|
||||
use \sammo\CityConst;
|
||||
|
||||
class AvailableRecruitCrewType extends Constraint{
|
||||
const REQ_VALUES = Constraint::REQ_NATION|Constraint::REQ_INT_ARG;
|
||||
|
||||
@@ -22,7 +22,7 @@ class BeLord extends Constraint{
|
||||
$this->checkInputValues();
|
||||
$this->tested = true;
|
||||
|
||||
if($this->general['level'] != 12){
|
||||
if($this->general['level'] == 12){
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -193,9 +193,7 @@ abstract class Constraint{
|
||||
/** @var \sammo\Constraint\Constraint $contraint */
|
||||
$constraint = call_user_func($method,$input);
|
||||
|
||||
assert($constraint !== null);
|
||||
assert($constraint instanceof Constraint);
|
||||
assert(count($constraintArgs) < 3);
|
||||
|
||||
if(count($constraintArgs) == 2){
|
||||
$arg = $constraintArgs[1];
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace sammo\Constraint;
|
||||
|
||||
use \sammo\JosaUtil;
|
||||
|
||||
class RemainCityTrust extends Constraint{
|
||||
class ReqCityTrust extends Constraint{
|
||||
const REQ_VALUES = Constraint::REQ_CITY|Constraint::REQ_NUMERIC_ARG;
|
||||
|
||||
protected $key;
|
||||
|
||||
@@ -22,7 +22,7 @@ class ReqGeneralGold extends Constraint{
|
||||
$this->checkInputValues();
|
||||
$this->tested = true;
|
||||
|
||||
if($this->general['gold'] < $this->arg){
|
||||
if($this->general['gold'] >= $this->arg){
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ class ReqGeneralRice extends Constraint{
|
||||
$this->checkInputValues();
|
||||
$this->tested = true;
|
||||
|
||||
if($this->general['rice'] < $this->arg){
|
||||
if($this->general['rice'] >= $this->arg){
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ class ReqNationGold extends Constraint{
|
||||
$this->checkInputValues();
|
||||
$this->tested = true;
|
||||
|
||||
if($this->nation['gold'] < $this->arg){
|
||||
if($this->nation['gold'] >= $this->arg){
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ class ReqNationRice extends Constraint{
|
||||
$this->checkInputValues();
|
||||
$this->tested = true;
|
||||
|
||||
if($this->nation['rice'] < $this->arg){
|
||||
if($this->nation['rice'] >= $this->arg){
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user