NPC 몰수를 더 잘하도록 설정
This commit is contained in:
+1
-1
@@ -585,7 +585,7 @@ function processAI($no) {
|
|||||||
if(rand() % 2 == 0) { $type = "gold"; $type2 = 1; }
|
if(rand() % 2 == 0) { $type = "gold"; $type2 = 1; }
|
||||||
else { $type = "rice"; $type2 = 2; }
|
else { $type = "rice"; $type2 = 2; }
|
||||||
|
|
||||||
if($nation[$type] < 1000) { // 몰수
|
if($nation[$type] < $type2*2000) { // 몰수
|
||||||
// 몰수 대상
|
// 몰수 대상
|
||||||
list($npcGenID, $npcGenValue) = $db->queryFirstList(
|
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',
|
'SELECT `no`, %b FROM general WHERE nation=%i AND `no`!=%i AND %b>3000 AND npc >= 2 ORDER BY %b DESC LIMIT 1',
|
||||||
|
|||||||
Reference in New Issue
Block a user