fix: 최대 임관 년도 수 제어 규약 우회
This commit is contained in:
+10
-7
@@ -1823,13 +1823,16 @@ function deleteNation(General $lord, bool $applyDB): array
|
|||||||
|
|
||||||
// 전 장수 재야로
|
// 전 장수 재야로
|
||||||
foreach ($nationGeneralList as $general) {
|
foreach ($nationGeneralList as $general) {
|
||||||
$general->setInheritancePoint(
|
if($general->getNPCType() < 2){
|
||||||
InheritanceKey::max_belong,
|
$general->setAuxVar(
|
||||||
max(
|
InheritanceKey::max_belong->value,
|
||||||
$general->getVar('belong'),
|
max(
|
||||||
$general->getInheritancePoint(InheritanceKey::max_belong) ?? 0
|
$general->getVar('belong'),
|
||||||
)
|
$general->getInheritancePoint(InheritanceKey::max_belong) ?? 0
|
||||||
);
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
$general->setVar('belong', 0);
|
$general->setVar('belong', 0);
|
||||||
$general->setVar('troop', 0);
|
$general->setVar('troop', 0);
|
||||||
$general->setVar('officer_level', 0);
|
$general->setVar('officer_level', 0);
|
||||||
|
|||||||
@@ -179,13 +179,15 @@ class che_등용수락 extends Command\GeneralCommand{
|
|||||||
$db->update('nation', $setScoutNationValues, 'nation=%i', $destNationID);
|
$db->update('nation', $setScoutNationValues, 'nation=%i', $destNationID);
|
||||||
|
|
||||||
$general->increaseInheritancePoint(InheritanceKey::active_action, 1);
|
$general->increaseInheritancePoint(InheritanceKey::active_action, 1);
|
||||||
$general->setInheritancePoint(
|
if($general->getNPCType() < 2){
|
||||||
InheritanceKey::max_belong,
|
$general->setAuxVar(
|
||||||
max(
|
InheritanceKey::max_belong->value,
|
||||||
$general->getVar('belong'),
|
max(
|
||||||
$general->getInheritancePoint(InheritanceKey::max_belong) ?? 0
|
$general->getVar('belong'),
|
||||||
)
|
$general->getInheritancePoint(InheritanceKey::max_belong) ?? 0
|
||||||
);
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
$general->setVar('permission', 'normal');
|
$general->setVar('permission', 'normal');
|
||||||
$general->setVar('belong', 1);
|
$general->setVar('belong', 1);
|
||||||
$general->setVar('officer_level', 1);
|
$general->setVar('officer_level', 1);
|
||||||
|
|||||||
@@ -113,13 +113,15 @@ class che_하야 extends Command\GeneralCommand{
|
|||||||
$general->setVar('troop', 0);
|
$general->setVar('troop', 0);
|
||||||
|
|
||||||
$general->increaseInheritancePoint(InheritanceKey::active_action, 1);
|
$general->increaseInheritancePoint(InheritanceKey::active_action, 1);
|
||||||
$general->setInheritancePoint(
|
if($general->getNPCType() < 2){
|
||||||
InheritanceKey::max_belong,
|
$general->setAuxVar(
|
||||||
max(
|
InheritanceKey::max_belong->value,
|
||||||
$general->getVar('belong'),
|
max(
|
||||||
$general->getInheritancePoint(InheritanceKey::max_belong) ?? 0
|
$general->getVar('belong'),
|
||||||
)
|
$general->getInheritancePoint(InheritanceKey::max_belong) ?? 0
|
||||||
);
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
$this->setResultTurn(new LastTurn(static::getName(), $this->arg));
|
$this->setResultTurn(new LastTurn(static::getName(), $this->arg));
|
||||||
$general->checkStatChange();
|
$general->checkStatChange();
|
||||||
|
|||||||
Reference in New Issue
Block a user