NPC 몰수를 더 잘하도록 설정

This commit is contained in:
2018-04-19 01:30:31 +09:00
parent c798ac49b9
commit 2cc2f7eb23
+1 -1
View File
@@ -585,7 +585,7 @@ function processAI($no) {
if(rand() % 2 == 0) { $type = "gold"; $type2 = 1; }
else { $type = "rice"; $type2 = 2; }
if($nation[$type] < 1000) { // 몰수
if($nation[$type] < $type2*2000) { // 몰수
// 몰수 대상
list($npcGenID, $npcGenValue) = $db->queryFirstList(
'SELECT `no`, %b FROM general WHERE nation=%i AND `no`!=%i AND %b>3000 AND npc >= 2 ORDER BY %b DESC LIMIT 1',