From 793f0055e629a8b5ed60a772f1a2266168da41ea Mon Sep 17 00:00:00 2001 From: revofpla Date: Wed, 17 Jan 2018 17:37:35 +0900 Subject: [PATCH] =?UTF-8?q?[php5=5Fdebug]=20=EC=82=AC=EC=8B=A4=20=EC=9E=AC?= =?UTF-8?q?=EC=95=BC=EC=9D=BC=EB=95=8C=EB=8A=94=20=EA=B5=AD=EA=B0=80?= =?UTF-8?q?=EC=A0=95=EB=B3=B4=20=ED=8C=A8=EB=84=90=EC=9D=98=20=EB=8C=80?= =?UTF-8?q?=EB=B6=80=EB=B6=84=20=EC=A0=95=EB=B3=B4=EA=B0=80=20'=ED=95=B4?= =?UTF-8?q?=EB=8B=B9=20=EC=97=86=EC=9D=8C'=EC=9C=BC=EB=A1=9C=20=EB=82=98?= =?UTF-8?q?=EC=99=80=EC=95=BC=20=EB=A7=9E=EC=A7=80=20=EC=95=8A=EC=9D=84?= =?UTF-8?q?=EA=B9=8C=20=EC=8B=B6=EC=9C=BC=EC=9A=94....?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- twe/func.php | 34 ++++++++++++++++++++++------------ 1 file changed, 22 insertions(+), 12 deletions(-) diff --git a/twe/func.php b/twe/func.php index 50250199..36c9b23f 100644 --- a/twe/func.php +++ b/twe/func.php @@ -2064,18 +2064,28 @@ function myNationInfo($connect) { else { $nation['tech'] = "{$nation['tech']}"; } $nation['tech'] = "$techCall / {$nation['tech']}"; - - if($nation['tricklimit'] != 0) { $nation['tricklimit'] = "{$nation['tricklimit']}턴"; } - else { $nation['tricklimit'] = "가 능"; } - - if($nation['surlimit'] != 0) { $nation['surlimit'] = "{$nation['surlimit']}턴"; } - else { $nation['surlimit'] = "가 능"; } - - if($nation['scout'] != 0) { $nation['scout'] = "금 지"; } - else { $nation['scout'] = "허 가"; } - - if($nation['war'] != 0) { $nation['war'] = "금 지"; } - else { $nation['war'] = "허 가"; } + + if($me['nation']==0){ + $nation['tricklimit'] = "해당 없음"; + $nation['surlimit'] = "해당 없음"; + $nation['scout'] = "해당 없음"; + $nation['war'] = "해당 없음"; + $nation['power'] = "해당 없음"; + } else { + if($nation['tricklimit'] != 0) { $nation['tricklimit'] = "{$nation['tricklimit']}턴"; } + else { $nation['tricklimit'] = "가 능"; } + + if($nation['surlimit'] != 0) { $nation['surlimit'] = "{$nation['surlimit']}턴"; } + else { $nation['surlimit'] = "가 능"; } + + if($nation['scout'] != 0) { $nation['scout'] = "금 지"; } + else { $nation['scout'] = "허 가"; } + + if($nation['war'] != 0) { $nation['war'] = "금 지"; } + else { $nation['war'] = "허 가"; } + + + } if($me['skin'] == 0) { $nation['tech'] = unfont($nation['tech']);