명장일람에서 계략 시도 장수 본닉이 뜨는 문제 수정

This commit is contained in:
2019-03-05 02:27:22 +09:00
parent 110294103f
commit 2c2b078514
+1 -1
View File
@@ -186,6 +186,7 @@ $templates = new \League\Plates\Engine('templates');
foreach($types as $idx=>[$typeName, $typeValue, $typeFunc]){
$validCnt = 0;
$typeGenerals = array_map(function($general) use($typeValue, $typeFunc, &$validCnt, $ownerNameList){
$general['owner_name'] = $ownerNameList[$general['owner']]??null;
$general = ($typeFunc)($general);
$value = $general['value'];
@@ -199,7 +200,6 @@ foreach($types as $idx=>[$typeName, $typeValue, $typeFunc]){
else {
$general['printValue'] = number_format($value);
}
$general['owner_name'] = $ownerNameList[$general['owner']]??null;
return $general;
}, $generals);