AI 구현중

This commit is contained in:
2020-04-12 02:46:51 +09:00
parent 33014dbd7d
commit 84efd5bfdf
4 changed files with 227 additions and 10 deletions
+5 -1
View File
@@ -48,10 +48,14 @@ class che_NPC능동 extends Command\GeneralCommand{
$this->setNation();
$this->runnableConstraints=[
$this->reservableConstraints=[
ConstraintHelper::MustBeNPC()
];
$this->runnableConstraints=[
];
}
public function getCost():array{
+1 -1
View File
@@ -104,7 +104,7 @@ class che_징병 extends Command\GeneralCommand{
$this->runnableConstraints=[
ConstraintHelper::NotBeNeutral(),
ConstraintHelper::OccupiedCity(),
ConstraintHelper::ReqCityCapacity('pop', '주민', 30000 + $reqCrew),
ConstraintHelper::ReqCityCapacity('pop', '주민', GameConst::$minAvailableRecruitPop + $reqCrew),
ConstraintHelper::ReqCityTrust(20),
ConstraintHelper::ReqGeneralGold($reqGold),
ConstraintHelper::ReqGeneralRice($reqRice),