코드 버그 수정

This commit is contained in:
2019-05-01 02:47:27 +09:00
parent d3f36f9b71
commit 93104a21f3
+4 -4
View File
@@ -2251,10 +2251,10 @@ function uniqueItem($general, $log, $vote=0) {
if(rand() % $prob == 0) { if(rand() % $prob == 0) {
//셋중 선택 //셋중 선택
$selGroup = [ $selGroup = [
20 - $db->queryFirstField('SELECT count(*) from general where weap > 7'), 20 - $db->queryFirstField('SELECT count(*) from general where weap > 6'),
20 - $db->queryFirstField('SELECT count(*) from general where book > 7'), 20 - $db->queryFirstField('SELECT count(*) from general where book > 6'),
20 - $db->queryFirstField('SELECT count(*) from general where horse > 7'), 20 - $db->queryFirstField('SELECT count(*) from general where horse > 6'),
20 - $db->queryFirstField('SELECT count(*) from general where item > 7') 20 - $db->queryFirstField('SELECT count(*) from general where item > 6')
]; ];
$sel = Util::choiceRandomUsingWeight($selGroup); $sel = Util::choiceRandomUsingWeight($selGroup);
switch($sel) { switch($sel) {