feat: 명장 일람에 유산 소모량, 획득량 표기

This commit is contained in:
2022-05-10 03:31:48 +09:00
parent b2e297bbb3
commit 46a94b7816
+28
View File
@@ -2,6 +2,8 @@
namespace sammo;
use sammo\Enums\RankColumn;
include "lib.php";
include "func.php";
@@ -203,6 +205,32 @@ $templates = new \League\Plates\Engine(__DIR__ . '/templates');
}
return $v;
}],
["유 산 소 모 량", "int", function ($v) use ($gameStor) {
$v['value'] = $v[RankColumn::inherit_point_spent->value];
if ($gameStor->isunited) {
return $v;
}
$v['nationName'] = '???';
$v['pictureFullPath'] = GetImageURL(0) . "/default.jpg";
$v['name'] = '???';
$v['ownerName'] = null;
$v['bgColor'] = GameConst::$basecolor4;
$v['fgColor'] = newColor($v['bgColor']);
return $v;
}],
["유 산 획 득 량", "int", function ($v) use ($gameStor) {
$v['value'] = $v[RankColumn::inherit_point_earned->value];
if ($gameStor->isunited) {
return $v;
}
$v['nationName'] = '???';
$v['pictureFullPath'] = GetImageURL(0) . "/default.jpg";
$v['name'] = '???';
$v['ownerName'] = null;
$v['bgColor'] = GameConst::$basecolor4;
$v['fgColor'] = newColor($v['bgColor']);
return $v;
}],
];
$generals = [];