From ea619bd693e7510664dd276801e4b7eb3ea4e0b0 Mon Sep 17 00:00:00 2001 From: Hide_D Date: Sat, 11 Jun 2022 14:39:57 +0900 Subject: [PATCH] =?UTF-8?q?misc:=20=EC=9D=B8=EC=82=AC=EB=B6=80=EC=97=90?= =?UTF-8?q?=EC=84=9C=20=EC=B6=94=EB=B0=A9=EC=9D=84=20=EA=B0=80=EC=9E=A5=20?= =?UTF-8?q?=EC=95=84=EB=9E=98=EB=A1=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/b_myBossInfo.php | 95 ++++++++++++++++++++++---------------------- 1 file changed, 47 insertions(+), 48 deletions(-) diff --git a/hwe/b_myBossInfo.php b/hwe/b_myBossInfo.php index 3336c9da..f2f3b725 100644 --- a/hwe/b_myBossInfo.php +++ b/hwe/b_myBossInfo.php @@ -25,6 +25,17 @@ if ($meLevel == 0) { $nation = $db->queryFirstRow('SELECT nation,name,level,color,chief_set from nation where nation=%i', $nationID); //국가정보 +if ($meLevel >= 5) { + $candidateStrength = $db->query('SELECT no,name,officer_level,city,npc from general where nation=%i and officer_level!=12 and strength>=%i order by npc,binary(name)', $nationID, GameConst::$chiefStatMin); + $candidateIntel = $db->query('SELECT no,name,officer_level,city,npc from general where nation=%i and officer_level!=12 and intel>=%i order by npc,binary(name)', $nationID, GameConst::$chiefStatMin); + $candidateAny = $db->query('SELECT no,name,officer_level,city,npc,leadership,strength,intel,killturn from general where nation=%i and officer_level!=12 order by npc,binary(name)', $nationID); //추방 때문에 조금 더 김 +} else { + $candidateStrength = []; + $candidateIntel = []; + $candidateAny = []; +} + + ?> @@ -180,61 +191,21 @@ $nation = $db->queryFirstRow('SELECT nation,name,level,color,chief_set from nati + - + - + - - + + + - -
추 방수 뇌 부 임 명
대상 장수 + + name ?>】 = 5) { - $candidateStrength = $db->query('SELECT no,name,officer_level,city,npc from general where nation=%i and officer_level!=12 and strength>=%i order by npc,binary(name)', $nationID, GameConst::$chiefStatMin); - $candidateIntel = $db->query('SELECT no,name,officer_level,city,npc from general where nation=%i and officer_level!=12 and intel>=%i order by npc,binary(name)', $nationID, GameConst::$chiefStatMin); - $candidateAny = $db->query('SELECT no,name,officer_level,city,npc,leadership,strength,intel,killturn from general where nation=%i and officer_level!=12 order by npc,binary(name)', $nationID); //추방 때문에 조금 더 김 - } else { - $candidateStrength = []; - $candidateIntel = []; - $candidateAny = []; - } - - - if ($meLevel >= 5 && !isOfficerSet($nation['chief_set'], $meLevel)) { - echo " - - "; - } - - $officerLevelText = getOfficerLevelText(11, $nation['level']); - echo " -
- - - - - - - -
수 뇌 부 임 명
" . getOfficerLevelText(12, $nation['level']) . "{$level[12]['name']} 【" . CityConst::byID($level[12]['city'])->name . "】{$officerLevelText} -"; - if ($meLevel >= 5 && !isOfficerSet($nation['chief_set'], 11)) { echo " 노란색은 변경 불가능, 하얀색은 변경 가능 관직입니다.
+ + + + + + + + + + + +
추 방
대상 장수 + = 5 && !isOfficerSet($nation['chief_set'], $meLevel)) : ?> + + + id='btn_kick' value=추방> + +