feat: 명장 일람에 유산 소모량, 획득량 표기
This commit is contained in:
@@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
namespace sammo;
|
namespace sammo;
|
||||||
|
|
||||||
|
use sammo\Enums\RankColumn;
|
||||||
|
|
||||||
include "lib.php";
|
include "lib.php";
|
||||||
include "func.php";
|
include "func.php";
|
||||||
|
|
||||||
@@ -203,6 +205,32 @@ $templates = new \League\Plates\Engine(__DIR__ . '/templates');
|
|||||||
}
|
}
|
||||||
return $v;
|
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 = [];
|
$generals = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user