징모병창 변수명 에러

This commit is contained in:
2018-07-18 04:18:15 +09:00
parent d04641041b
commit aef37f4362
+5 -5
View File
@@ -206,7 +206,7 @@ function command_11($turn, $command, bool $is모병 = false) {
[$nationLevel, $tech] = $db->queryFirstList('SELECT level,tech FROM nation WHERE nation=%i', $me['nation']); [$nationLevel, $tech] = $db->queryFirstList('SELECT level,tech FROM nation WHERE nation=%i', $me['nation']);
$lbonus = setLeadershipBonus($general, $nationLevel); $lbonus = setLeadershipBonus($me, $nationLevel);
$ownCities = []; $ownCities = [];
$ownRegions = []; $ownRegions = [];
@@ -219,7 +219,7 @@ function command_11($turn, $command, bool $is모병 = false) {
$ownRegions[$city['region']] = 1; $ownRegions[$city['region']] = 1;
} }
$leader = getGeneralLeadership($general, true, true, true); $leader = getGeneralLeadership($me, true, true, true);
$maxCrew = $leader - Util::round($me['crew']/100); $maxCrew = $leader - Util::round($me['crew']/100);
$abil = getTechAbil($nation['tech']); $abil = getTechAbil($nation['tech']);
@@ -304,10 +304,10 @@ function command_11($turn, $command, bool $is모병 = false) {
'techLevelText'=>getTechCall($tech), 'techLevelText'=>getTechCall($tech),
'tech'=>$tech, 'tech'=>$tech,
'leader'=>$leader, 'leader'=>$leader,
'crewTypeName'=>GameUnitConst::byId($general['crewtype'])->name, 'crewTypeName'=>GameUnitConst::byId($me['crewtype'])->name,
'crew'=>$general['crew'], 'crew'=>$me['crew'],
'maxCrew'=>$maxCrew, 'maxCrew'=>$maxCrew,
'gold'=>$general['gold'], 'gold'=>$me['gold'],
'turn'=>$turn, 'turn'=>$turn,
'armTypes'=>$armTypes, 'armTypes'=>$armTypes,
]); ]);