list 일부 수정. tfoot 안에 tr td없는거 수정
This commit is contained in:
+1
-1
@@ -30,7 +30,7 @@ $db = DB::db();
|
|||||||
$gameStor = KVStorage::getStorage($db, 'game_env');
|
$gameStor = KVStorage::getStorage($db, 'game_env');
|
||||||
$connect=$db->get();
|
$connect=$db->get();
|
||||||
|
|
||||||
list($turntime, $tnmt_time) = $gameStor->getValuesAsArray(['turntime','tnmt_time']);
|
[$turntime, $tnmt_time] = $gameStor->getValuesAsArray(['turntime','tnmt_time']);
|
||||||
|
|
||||||
$query = "select plock from plock";
|
$query = "select plock from plock";
|
||||||
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
$result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ switch($btn) {
|
|||||||
], '`no` IN %li', $genlist);
|
], '`no` IN %li', $genlist);
|
||||||
break;
|
break;
|
||||||
case "특기 부여":
|
case "특기 부여":
|
||||||
list($year, $month) = $gameStor->getValuesAsArray(['year', 'month']);
|
[$year, $month] = $gameStor->getValuesAsArray(['year', 'month']);
|
||||||
$text = "특기 부여!";
|
$text = "특기 부여!";
|
||||||
|
|
||||||
foreach($db->query("SELECT `no`,leader,power,intel,dex0,dex10,dex20,dex30,dex40 FROM general WHERE `no` IN %li", $genlist) as $general){
|
foreach($db->query("SELECT `no`,leader,power,intel,dex0,dex10,dex20,dex30,dex40 FROM general WHERE `no` IN %li", $genlist) as $general){
|
||||||
|
|||||||
+2
-2
@@ -45,11 +45,11 @@ for($i=0; $i < $nationcount; $i++) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$realConflict = [];
|
$realConflict = [];
|
||||||
foreach ($db->queryAllLists('SELECT city, `name`, conflict FROM city WHERE conflict!=%s', '{}') as list(
|
foreach ($db->queryAllLists('SELECT city, `name`, conflict FROM city WHERE conflict!=%s', '{}') as [
|
||||||
$cityID,
|
$cityID,
|
||||||
$cityName,
|
$cityName,
|
||||||
$rawConflict
|
$rawConflict
|
||||||
))
|
])
|
||||||
{
|
{
|
||||||
$conflict = Json::decode($rawConflict);
|
$conflict = Json::decode($rawConflict);
|
||||||
if (count($conflict)<2) {
|
if (count($conflict)<2) {
|
||||||
|
|||||||
+2
-3
@@ -125,12 +125,11 @@ for($i=0; $i < $troopcount; $i++) {
|
|||||||
echo "
|
echo "
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td align=center><font size=2>【턴】".substr($turntime, 14)."</font></td><td align=center><font size=1>$name</font></td></tr>
|
<tr><td align=center><font size=2>【턴】".substr($turntime, 14)."</font></td><td align=center><font size=1>$name</font></td></tr>";
|
||||||
<tr><td colspan=5>";
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
echo "</tbody>
|
echo "</tbody>
|
||||||
<tfoot>";
|
<tfoot><tr><td>";
|
||||||
if ($troopcount == 0) {
|
if ($troopcount == 0) {
|
||||||
}
|
}
|
||||||
else if($me['troop'] == 0) {
|
else if($me['troop'] == 0) {
|
||||||
|
|||||||
@@ -186,7 +186,7 @@ class CityConst{
|
|||||||
}
|
}
|
||||||
|
|
||||||
foreach(static::$initCity as $rawCity){
|
foreach(static::$initCity as $rawCity){
|
||||||
list(
|
[
|
||||||
$id,
|
$id,
|
||||||
$name,
|
$name,
|
||||||
$level,
|
$level,
|
||||||
@@ -198,7 +198,7 @@ class CityConst{
|
|||||||
$wall,
|
$wall,
|
||||||
$region,
|
$region,
|
||||||
$path
|
$path
|
||||||
) = $rawCity;
|
] = $rawCity;
|
||||||
|
|
||||||
$level = static::$levelMap[$level];
|
$level = static::$levelMap[$level];
|
||||||
$population *= 100;
|
$population *= 100;
|
||||||
|
|||||||
@@ -300,7 +300,7 @@ class Diplomacy{
|
|||||||
$chk = $this->checkValidNation();
|
$chk = $this->checkValidNation();
|
||||||
$chk = $this->checkNonAggressionTreaty($chk);
|
$chk = $this->checkNonAggressionTreaty($chk);
|
||||||
|
|
||||||
list($result, $reason) = $chk;
|
[$result, $reason] = $chk;
|
||||||
if($result !== DiplomaticMessage::ACCEPTED){
|
if($result !== DiplomaticMessage::ACCEPTED){
|
||||||
return $chk;
|
return $chk;
|
||||||
}
|
}
|
||||||
@@ -322,7 +322,7 @@ class Diplomacy{
|
|||||||
$chk = $this->checkValidNation();
|
$chk = $this->checkValidNation();
|
||||||
$chk = $this->checkInWar($chk);
|
$chk = $this->checkInWar($chk);
|
||||||
|
|
||||||
list($result, $reason) = $chk;
|
[$result, $reason] = $chk;
|
||||||
if($result !== DiplomaticMessage::ACCEPTED){
|
if($result !== DiplomaticMessage::ACCEPTED){
|
||||||
return $chk;
|
return $chk;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -37,12 +37,12 @@ class Personnel{
|
|||||||
$this->nation = $nation;
|
$this->nation = $nation;
|
||||||
$this->valid = true;
|
$this->valid = true;
|
||||||
|
|
||||||
list(
|
[
|
||||||
$this->startYear,
|
$this->startYear,
|
||||||
$this->year,
|
$this->year,
|
||||||
$this->month,
|
$this->month,
|
||||||
$this->killturn
|
$this->killturn
|
||||||
) = $gameStor->getValuesAsArray(['startyear', 'year', 'month', 'killturn']);
|
] = $gameStor->getValuesAsArray(['startyear', 'year', 'month', 'killturn']);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -154,7 +154,7 @@ class ResetHelper{
|
|||||||
$year = $startyear;
|
$year = $startyear;
|
||||||
} else {
|
} else {
|
||||||
// 현재 시간과 동기화
|
// 현재 시간과 동기화
|
||||||
list($starttime, $yearPulled, $month) = cutDay($turntime, $turnterm);
|
[$starttime, $yearPulled, $month] = cutDay($turntime, $turnterm);
|
||||||
if($yearPulled){
|
if($yearPulled){
|
||||||
$year = $startyear-1;
|
$year = $startyear-1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user