단순 건국 상품 롤백

This commit is contained in:
2019-08-15 00:37:49 +09:00
parent 1a1d384a3e
commit fa246ff810
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -2350,6 +2350,7 @@ function uniqueItem($general, $log, $vote=0) {
if($vote == 1) { $prob = Util::round($genCnt * 0.7 / 3); } // 투표율 70%, 투표 한번에 2~3개 등장
elseif($vote == 2) { $prob = Util::round($genCnt / 10 / 2); } // 랜임시 2개(10%) 등장(200명중 20명 랜임시도?)
elseif($vote == 3) { $prob = Util::round($genCnt / 10 / 4); } // 건국시 4개(20%) 등장(200명시 20국 정도 됨)
if($prob < 3) { $prob = 3; }
//아이템 습득 상황
@@ -2380,6 +2381,7 @@ function uniqueItem($general, $log, $vote=0) {
switch($vote){
case 1: $voteTypeText = '설문상품'; break;
case 2: $voteTypeText = '랜덤임관상품'; break;
case 3: $voteTypeText = '건국상품'; break;
default: $voteTypeText = '아이템'; break;
}
+1 -1
View File
@@ -770,7 +770,7 @@ function process_46(&$general) {
$query = "update general set resturn='SUCCESS',dedication=dedication+'$ded', experience=experience+'$exp' where no='{$general['no']}'";
MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
$log = uniqueItem($general, $log);
$log = uniqueItem($general, $log, 3);
}
pushWorldHistory($history, $admin['year'], $admin['month']);