diff --git a/hwe/a_bestGeneral.php b/hwe/a_bestGeneral.php index 09087fa6..bc2d5e47 100644 --- a/hwe/a_bestGeneral.php +++ b/hwe/a_bestGeneral.php @@ -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 = [];