국가 규모 승급시 아이템 습득 방식 변경
This commit is contained in:
@@ -1624,7 +1624,6 @@ function tryUniqueItemLottery(General $general, string $acquireType = '아이템
|
|||||||
foreach ($general->getItems() as $item) {
|
foreach ($general->getItems() as $item) {
|
||||||
if (!$item->isBuyable()) {
|
if (!$item->isBuyable()) {
|
||||||
$trialCnt -= 1;
|
$trialCnt -= 1;
|
||||||
continue;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -627,14 +627,15 @@ function updateNationState()
|
|||||||
|
|
||||||
$uniqueLotteryWeightList = [];
|
$uniqueLotteryWeightList = [];
|
||||||
foreach ($nationGenList as $nationGen) {
|
foreach ($nationGenList as $nationGen) {
|
||||||
$hasUnique = false;
|
$trialCnt = count(GameConst::$allItems);
|
||||||
|
|
||||||
foreach ($nationGen->getItems() as $item) {
|
foreach ($nationGen->getItems() as $item) {
|
||||||
if (!$item->isBuyable()) {
|
if (!$item->isBuyable()) {
|
||||||
$hasUnique = true;
|
$trialCnt -= 1;
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ($hasUnique) {
|
|
||||||
|
if ($trialCnt <= 0) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -647,6 +648,9 @@ function updateNationState()
|
|||||||
} else if ($nationGen->getVar('officer_level') > 4) {
|
} else if ($nationGen->getVar('officer_level') > 4) {
|
||||||
$score += 35;
|
$score += 35;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$score *= $trialCnt;
|
||||||
|
|
||||||
$uniqueLotteryWeightList[$nationGen->getID()] = [$nationGen, $score];
|
$uniqueLotteryWeightList[$nationGen->getID()] = [$nationGen, $score];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user