소소한 설문 결과 수정

This commit is contained in:
2020-05-09 17:55:07 +09:00
parent 4856f6c477
commit 0b6f04ed26
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ if($btn == "투표" && $general->getVar('vote') == 0 && $sel > 0) {
'vote'=>$sel
], 'owner=%i', $userID);
if(tryUniqueItemLottery($general, '투표')){
if(tryUniqueItemLottery($general, '설문조사')){
$general->applyDB($db);
}
}
+2 -2
View File
@@ -1607,8 +1607,8 @@ function tryUniqueItemLottery(General $general, string $acquireType = '아이템
$prob = 1 / $genCount; // 1~2개월에 하나씩 등장
}
if ($acquireType == '투표') {
$prob = 1 / ($genCount * 0.7 / 3); // 투표율 70%, 투표 한번에 2~3개 등장
if ($acquireType == '설문조사') {
$prob = 1 / ($genCount * 0.7 / 3); // 투표율 70%, 설문조사 한번에 2~3개 등장
} else if ($acquireType == '랜덤 임관') {
$prob = 1 / ($genCount / 10 / 2); // 랜임시 2개(10%) 등장(200명중 20명 랜임시도?)
} else if ($acquireType == '건국') {