forked from devsam/core
fix: 병종 연구 커맨드에서 금쌀 검새 안하는 문제 해결
This commit is contained in:
@@ -11,6 +11,7 @@ use \sammo\JosaUtil;
|
||||
use sammo\Json;
|
||||
use sammo\LastTurn;
|
||||
use sammo\StaticEventHandler;
|
||||
use sammo\GameConst;
|
||||
|
||||
class event_극병연구 extends Command\NationCommand{
|
||||
static protected $actionName = '극병 연구';
|
||||
@@ -27,10 +28,14 @@ class event_극병연구 extends Command\NationCommand{
|
||||
|
||||
$name = static::$actionName;
|
||||
|
||||
[$reqGold, $reqRice] = $this->getCost();
|
||||
|
||||
$this->minConditionConstraints = [
|
||||
ConstraintHelper::OccupiedCity(),
|
||||
ConstraintHelper::BeChief(),
|
||||
ConstraintHelper::ReqNationAuxValue(static::$auxType->value, 0, "<", 1, "{$name}가 이미 완료되었습니다."),
|
||||
ConstraintHelper::ReqNationGold(GameConst::$basegold + $reqGold),
|
||||
ConstraintHelper::ReqNationRice(GameConst::$baserice + $reqRice),
|
||||
];
|
||||
|
||||
$this->fullConditionConstraints = $this->minConditionConstraints;
|
||||
|
||||
@@ -11,6 +11,7 @@ use \sammo\JosaUtil;
|
||||
use sammo\Json;
|
||||
use sammo\LastTurn;
|
||||
use sammo\StaticEventHandler;
|
||||
use sammo\GameConst;
|
||||
|
||||
class event_대검병연구 extends Command\NationCommand{
|
||||
static protected $actionName = '대검병 연구';
|
||||
@@ -27,10 +28,13 @@ class event_대검병연구 extends Command\NationCommand{
|
||||
|
||||
$name = static::$actionName;
|
||||
|
||||
[$reqGold, $reqRice] = $this->getCost();
|
||||
$this->minConditionConstraints = [
|
||||
ConstraintHelper::OccupiedCity(),
|
||||
ConstraintHelper::BeChief(),
|
||||
ConstraintHelper::ReqNationAuxValue(static::$auxType->value, 0, "<", 1, "{$name}가 이미 완료되었습니다."),
|
||||
ConstraintHelper::ReqNationGold(GameConst::$basegold + $reqGold),
|
||||
ConstraintHelper::ReqNationRice(GameConst::$baserice + $reqRice),
|
||||
];
|
||||
|
||||
$this->fullConditionConstraints = $this->minConditionConstraints;
|
||||
|
||||
@@ -11,6 +11,7 @@ use \sammo\JosaUtil;
|
||||
use sammo\Json;
|
||||
use sammo\LastTurn;
|
||||
use sammo\StaticEventHandler;
|
||||
use sammo\GameConst;
|
||||
|
||||
class event_무희연구 extends Command\NationCommand{
|
||||
static protected $actionName = '무희 연구';
|
||||
@@ -27,10 +28,13 @@ class event_무희연구 extends Command\NationCommand{
|
||||
|
||||
$name = static::$actionName;
|
||||
|
||||
[$reqGold, $reqRice] = $this->getCost();
|
||||
$this->minConditionConstraints = [
|
||||
ConstraintHelper::OccupiedCity(),
|
||||
ConstraintHelper::BeChief(),
|
||||
ConstraintHelper::ReqNationAuxValue(static::$auxType->value, 0, "<", 1, "{$name}가 이미 완료되었습니다."),
|
||||
ConstraintHelper::ReqNationGold(GameConst::$basegold + $reqGold),
|
||||
ConstraintHelper::ReqNationRice(GameConst::$baserice + $reqRice),
|
||||
];
|
||||
|
||||
$this->fullConditionConstraints = $this->minConditionConstraints;
|
||||
|
||||
@@ -11,6 +11,7 @@ use \sammo\JosaUtil;
|
||||
use sammo\Json;
|
||||
use sammo\LastTurn;
|
||||
use sammo\StaticEventHandler;
|
||||
use sammo\GameConst;
|
||||
|
||||
class event_산저병연구 extends Command\NationCommand{
|
||||
static protected $actionName = '산저병 연구';
|
||||
@@ -27,10 +28,13 @@ class event_산저병연구 extends Command\NationCommand{
|
||||
|
||||
$name = static::$actionName;
|
||||
|
||||
[$reqGold, $reqRice] = $this->getCost();
|
||||
$this->minConditionConstraints = [
|
||||
ConstraintHelper::OccupiedCity(),
|
||||
ConstraintHelper::BeChief(),
|
||||
ConstraintHelper::ReqNationAuxValue(static::$auxType->value, 0, "<", 1, "{$name}가 이미 완료되었습니다."),
|
||||
ConstraintHelper::ReqNationGold(GameConst::$basegold + $reqGold),
|
||||
ConstraintHelper::ReqNationRice(GameConst::$baserice + $reqRice),
|
||||
];
|
||||
|
||||
$this->fullConditionConstraints = $this->minConditionConstraints;
|
||||
|
||||
@@ -11,6 +11,7 @@ use \sammo\JosaUtil;
|
||||
use sammo\Json;
|
||||
use sammo\LastTurn;
|
||||
use sammo\StaticEventHandler;
|
||||
use sammo\GameConst;
|
||||
|
||||
class event_상병연구 extends Command\NationCommand{
|
||||
static protected $actionName = '상병 연구';
|
||||
@@ -27,10 +28,13 @@ class event_상병연구 extends Command\NationCommand{
|
||||
|
||||
$name = static::$actionName;
|
||||
|
||||
[$reqGold, $reqRice] = $this->getCost();
|
||||
$this->minConditionConstraints = [
|
||||
ConstraintHelper::OccupiedCity(),
|
||||
ConstraintHelper::BeChief(),
|
||||
ConstraintHelper::ReqNationAuxValue(static::$auxType->value, 0, "<", 1, "{$name}가 이미 완료되었습니다."),
|
||||
ConstraintHelper::ReqNationGold(GameConst::$basegold + $reqGold),
|
||||
ConstraintHelper::ReqNationRice(GameConst::$baserice + $reqRice),
|
||||
];
|
||||
|
||||
$this->fullConditionConstraints = $this->minConditionConstraints;
|
||||
|
||||
@@ -11,6 +11,7 @@ use \sammo\JosaUtil;
|
||||
use sammo\Json;
|
||||
use sammo\LastTurn;
|
||||
use sammo\StaticEventHandler;
|
||||
use sammo\GameConst;
|
||||
|
||||
class event_원융노병연구 extends Command\NationCommand{
|
||||
static protected $actionName = '원융노병 연구';
|
||||
@@ -27,10 +28,13 @@ class event_원융노병연구 extends Command\NationCommand{
|
||||
|
||||
$name = static::$actionName;
|
||||
|
||||
[$reqGold, $reqRice] = $this->getCost();
|
||||
$this->minConditionConstraints = [
|
||||
ConstraintHelper::OccupiedCity(),
|
||||
ConstraintHelper::BeChief(),
|
||||
ConstraintHelper::ReqNationAuxValue(static::$auxType->value, 0, "<", 1, "{$name}가 이미 완료되었습니다."),
|
||||
ConstraintHelper::ReqNationGold(GameConst::$basegold + $reqGold),
|
||||
ConstraintHelper::ReqNationRice(GameConst::$baserice + $reqRice),
|
||||
];
|
||||
|
||||
$this->fullConditionConstraints = $this->minConditionConstraints;
|
||||
|
||||
@@ -11,6 +11,7 @@ use \sammo\JosaUtil;
|
||||
use sammo\Json;
|
||||
use sammo\LastTurn;
|
||||
use sammo\StaticEventHandler;
|
||||
use sammo\GameConst;
|
||||
|
||||
class event_음귀병연구 extends Command\NationCommand{
|
||||
static protected $actionName = '음귀병 연구';
|
||||
@@ -27,10 +28,13 @@ class event_음귀병연구 extends Command\NationCommand{
|
||||
|
||||
$name = static::$actionName;
|
||||
|
||||
[$reqGold, $reqRice] = $this->getCost();
|
||||
$this->minConditionConstraints = [
|
||||
ConstraintHelper::OccupiedCity(),
|
||||
ConstraintHelper::BeChief(),
|
||||
ConstraintHelper::ReqNationAuxValue(static::$auxType->value, 0, "<", 1, "{$name}가 이미 완료되었습니다."),
|
||||
ConstraintHelper::ReqNationGold(GameConst::$basegold + $reqGold),
|
||||
ConstraintHelper::ReqNationRice(GameConst::$baserice + $reqRice),
|
||||
];
|
||||
|
||||
$this->fullConditionConstraints = $this->minConditionConstraints;
|
||||
|
||||
@@ -11,6 +11,7 @@ use \sammo\JosaUtil;
|
||||
use sammo\Json;
|
||||
use sammo\LastTurn;
|
||||
use sammo\StaticEventHandler;
|
||||
use sammo\GameConst;
|
||||
|
||||
class event_화륜차연구 extends Command\NationCommand{
|
||||
static protected $actionName = '화륜차 연구';
|
||||
@@ -27,10 +28,13 @@ class event_화륜차연구 extends Command\NationCommand{
|
||||
|
||||
$name = static::$actionName;
|
||||
|
||||
[$reqGold, $reqRice] = $this->getCost();
|
||||
$this->minConditionConstraints = [
|
||||
ConstraintHelper::OccupiedCity(),
|
||||
ConstraintHelper::BeChief(),
|
||||
ConstraintHelper::ReqNationAuxValue(static::$auxType->value, 0, "<", 1, "{$name}가 이미 완료되었습니다."),
|
||||
ConstraintHelper::ReqNationGold(GameConst::$basegold + $reqGold),
|
||||
ConstraintHelper::ReqNationRice(GameConst::$baserice + $reqRice),
|
||||
];
|
||||
|
||||
$this->fullConditionConstraints = $this->minConditionConstraints;
|
||||
|
||||
@@ -11,6 +11,7 @@ use \sammo\JosaUtil;
|
||||
use sammo\Json;
|
||||
use sammo\LastTurn;
|
||||
use sammo\StaticEventHandler;
|
||||
use sammo\GameConst;
|
||||
|
||||
class event_화시병연구 extends Command\NationCommand{
|
||||
static protected $actionName = '화시병 연구';
|
||||
@@ -27,10 +28,13 @@ class event_화시병연구 extends Command\NationCommand{
|
||||
|
||||
$name = static::$actionName;
|
||||
|
||||
[$reqGold, $reqRice] = $this->getCost();
|
||||
$this->minConditionConstraints = [
|
||||
ConstraintHelper::OccupiedCity(),
|
||||
ConstraintHelper::BeChief(),
|
||||
ConstraintHelper::ReqNationAuxValue(static::$auxType->value, 0, "<", 1, "{$name}가 이미 완료되었습니다."),
|
||||
ConstraintHelper::ReqNationGold(GameConst::$basegold + $reqGold),
|
||||
ConstraintHelper::ReqNationRice(GameConst::$baserice + $reqRice),
|
||||
];
|
||||
|
||||
$this->fullConditionConstraints = $this->minConditionConstraints;
|
||||
|
||||
Reference in New Issue
Block a user