세 력 정 보

[{$city[name]}]"; } else { $cityname[$j] = $city[name]; } $totalpop += $city[pop]; $maxpop += $city[pop2]; } $query = "select sum(crew) as totcrew,sum(leader)*100 as maxcrew from general where nation='$nation[nation]'"; $result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); $general = MYDB_fetch_array($result); $query = "select gold_rate,rice_rate from game where no='1'"; $result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),""); $admin = MYDB_fetch_array($result); // 금 수지 $deadIncome = getDeadIncome($connect, $nation[nation], $nation[type], $admin[gold_rate]); $goldincomeList = getGoldIncome($connect, $nation[nation], $nation[rate], $admin[gold_rate], $nation[type]); $goldincome = $goldincomeList[0] + $goldincomeList[1] + $deadIncome; $goldoutcome = getGoldOutcome($connect, $nation[nation], $nation[bill]); $riceincomeList = getRiceIncome($connect, $nation[nation], $nation[rate], $admin[rice_rate], $nation[type]); $riceincome = $riceincomeList[0] + $riceincomeList[1]; $riceoutcome = getRiceOutcome($connect, $nation[nation], $nation[bill]); $budgetgold = $nation[gold] + $goldincome - $goldoutcome + $deadIncome; $budgetrice = $nation[rice] + $riceincome - $riceoutcome; $budgetgolddiff = $goldincome - $goldoutcome + $deadIncome; $budgetricediff = $riceincome - $riceoutcome; if($budgetgolddiff > 0) { $budgetgolddiff = "+{$budgetgolddiff}"; } else { $budgetgolddiff = "$budgetgolddiff"; } if($budgetricediff > 0) { $budgetricediff = "+{$budgetricediff}"; } else { $budgetricediff = "$budgetricediff"; } echo "
【 ";echo $me[nation]==0?"공 백 지":"$nation[name]";echo " 】
총주민 {$totalpop}/{$maxpop} 총병사 {$general[totcrew]}/{$general[maxcrew]} 국 력 $nation[power]
국 고 "; echo $nation[gold]==0?"-":"$nation[gold]"; echo " 병 량 "; echo $nation[rice]==0?"-":"$nation[rice]"; echo " 세 율 "; echo $me[nation]==0?"해당 없음":"$nation[rate] %"; echo "
세금/단기 +$goldincomeList[0] / +$deadIncome 세곡/둔전 +$riceincomeList[0] / +$riceincomeList[1] 지급율 "; echo $me[nation]==0?"해당 없음":"$nation[bill] %"; echo "
수입/지출 +$goldincome / -$goldoutcome 수입/지출 +$riceincome / -$riceoutcome 속 령 $citycount 장 수 $nation[gennum]
국고 예산 {$budgetgold} ({$budgetgolddiff}) 병량 예산 {$budgetrice} ({$budgetricediff}) 기술력 $nation[tech] 작 위 ".getNationLevel($nation[level])."
속령일람 : "; for($j=0; $j < $citycount; $j++) { echo "$cityname[$j], "; } echo"
국가열전 ".ConvertLog($nation[history], $me[skin])."

"; ?>