동시에 관직이 여러번 뛸때에도 관직 보상 많이 줌

This commit is contained in:
2019-08-14 01:33:50 +09:00
parent e1b8dde60a
commit 6d85c609fd
+6
View File
@@ -1005,9 +1005,11 @@ function updateNationState() {
} }
if($nationlevel > $nation['level']) { if($nationlevel > $nation['level']) {
$levelDiff = $nationlevel - $nation['level'];
$oldLevel = $nation['level']; $oldLevel = $nation['level'];
$nation['level'] = $nationlevel; $nation['level'] = $nationlevel;
switch($nationlevel) { switch($nationlevel) {
case 7: case 7:
$josaUl = JosaUtil::pick(getNationLevel($nationlevel), '을'); $josaUl = JosaUtil::pick(getNationLevel($nationlevel), '을');
@@ -1030,6 +1032,8 @@ function updateNationState() {
break; break;
} }
foreach(range(1, $levelDiff) as $idx){
//유니크 아이템 하나 돌리자 //유니크 아이템 하나 돌리자
$targetKillTurn = $admin['killturn']; $targetKillTurn = $admin['killturn'];
$targetKillTurn -= 24 * 60 / $admin['turnterm']; $targetKillTurn -= 24 * 60 / $admin['turnterm'];
@@ -1053,6 +1057,8 @@ function updateNationState() {
$uniqueLotteryWeightList[$nationGen['no']] = $score; $uniqueLotteryWeightList[$nationGen['no']] = $score;
} }
guaranteedUniqueItemLottery($uniqueLotteryWeightList, '작위보상'); guaranteedUniqueItemLottery($uniqueLotteryWeightList, '작위보상');
}
$lastAssemblerID = $gameStor->assembler_id??0; $lastAssemblerID = $gameStor->assembler_id??0;