game: 피장파장은 이제 전략
- 글로벌 쿨 1턴 - 피장파장 쿨 8턴
This commit is contained in:
@@ -75,7 +75,7 @@ class che_피장파장 extends Command\NationCommand
|
|||||||
$env = $this->env;
|
$env = $this->env;
|
||||||
|
|
||||||
$this->setCity();
|
$this->setCity();
|
||||||
$this->setNation();
|
$this->setNation(['strategic_cmd_limit']);
|
||||||
|
|
||||||
$this->minConditionConstraints = [
|
$this->minConditionConstraints = [
|
||||||
ConstraintHelper::OccupiedCity(),
|
ConstraintHelper::OccupiedCity(),
|
||||||
@@ -113,6 +113,7 @@ class che_피장파장 extends Command\NationCommand
|
|||||||
[0, 1],
|
[0, 1],
|
||||||
'선포, 전쟁중인 상대국에게만 가능합니다.'
|
'선포, 전쟁중인 상대국에게만 가능합니다.'
|
||||||
),
|
),
|
||||||
|
ConstraintHelper::AvailableStrategicCommand(),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -120,8 +121,9 @@ class che_피장파장 extends Command\NationCommand
|
|||||||
{
|
{
|
||||||
$name = $this->getName();
|
$name = $this->getName();
|
||||||
$reqTurn = $this->getPreReqTurn() + 1;
|
$reqTurn = $this->getPreReqTurn() + 1;
|
||||||
|
$postReqTurn = $this->getPostReqTurn();
|
||||||
|
|
||||||
return "{$name}/{$reqTurn}턴(대상 재사용 대기 {$this->getTargetPostReqTurn()})";
|
return "{$name}/{$reqTurn}턴(재사용 대기 $postReqTurn, 대상 재사용 대기 {$this->getTargetPostReqTurn()})";
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getCost(): array
|
public function getCost(): array
|
||||||
@@ -136,7 +138,7 @@ class che_피장파장 extends Command\NationCommand
|
|||||||
|
|
||||||
public function getPostReqTurn(): int
|
public function getPostReqTurn(): int
|
||||||
{
|
{
|
||||||
return 0;
|
return 8;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getTargetPostReqTurn(): int
|
public function getTargetPostReqTurn(): int
|
||||||
@@ -225,6 +227,10 @@ class che_피장파장 extends Command\NationCommand
|
|||||||
|
|
||||||
$logger->pushNationalHistoryLog("<Y>{$generalName}</>{$josaYi} <D><b>{$destNationName}</b></>에 <G><b>{$cmd->getName()}</b></> <M>{$commandName}</>{$josaUl} 발동");
|
$logger->pushNationalHistoryLog("<Y>{$generalName}</>{$josaYi} <D><b>{$destNationName}</b></>에 <G><b>{$cmd->getName()}</b></> <M>{$commandName}</>{$josaUl} 발동");
|
||||||
|
|
||||||
|
$db->update('nation', [
|
||||||
|
'strategic_cmd_limit' => $this->generalObj->onCalcStrategic($this->getName(), 'globalDelay', 1)
|
||||||
|
], 'nation=%i', $nationID);
|
||||||
|
|
||||||
$nationStor = KVStorage::getStorage($db, $nationID, 'nation_env');
|
$nationStor = KVStorage::getStorage($db, $nationID, 'nation_env');
|
||||||
$destNationStor = KVStorage::getStorage($db, $destNationID, 'nation_env');
|
$destNationStor = KVStorage::getStorage($db, $destNationID, 'nation_env');
|
||||||
|
|
||||||
|
|||||||
@@ -368,9 +368,9 @@ class GameConstBase
|
|||||||
'che_의병모집',
|
'che_의병모집',
|
||||||
'che_이호경식',
|
'che_이호경식',
|
||||||
'che_급습',
|
'che_급습',
|
||||||
|
'che_피장파장',
|
||||||
],
|
],
|
||||||
'기타' => [
|
'기타' => [
|
||||||
'che_피장파장',
|
|
||||||
'che_국기변경',
|
'che_국기변경',
|
||||||
'che_국호변경',
|
'che_국호변경',
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user