NPC 사령턴 일부 수정

This commit is contained in:
2018-10-15 00:14:44 +09:00
parent 05389da412
commit 4094a08198
+1 -2
View File
@@ -580,8 +580,7 @@ class GeneralAI{
} }
} }
$resBaseType = [['gold', 1], ['rice', 2]]; $resName = Util::choiceRandom(['gold', 'rice']);
[$resName, $resType] = Util::choiceRandom($resBaseType);
usort($userGeneralsID, function($lhs, $rhs) use ($nationGenerals, $resName){ usort($userGeneralsID, function($lhs, $rhs) use ($nationGenerals, $resName){
return $nationGenerals[$lhs][$resName] - $nationGenerals[$rhs][$resName]; return $nationGenerals[$lhs][$resName] - $nationGenerals[$rhs][$resName];