fix: GameUnitDetail의 info를 기존방식으로 변경

This commit is contained in:
2025-01-21 17:23:07 +00:00
parent 84fee0f1f2
commit 76625cf472
5 changed files with 10 additions and 31 deletions
+1 -10
View File
@@ -276,7 +276,6 @@ class che_징병 extends Command\GeneralCommand
'values' => [],
];
$crewTypes = [];
foreach (GameUnitConst::byType($armType) as $unit) {
$crewObj = new \stdClass;
@@ -289,14 +288,6 @@ class che_징병 extends Command\GeneralCommand
$reqMinRelYearObj = $unit->reqConstraints['reqMinRelYear'] ?? null;
$crewObj->reqYear = $reqMinRelYearObj ? $reqMinRelYearObj->reqMinRelYear : 0;
/*
if ($unit->reqTech == 0) {
$crewObj->bgcolor = 'green';
} else {
$crewObj->bgcolor = 'limegreen';
}
*/
$crewObj->notAvailable = !$unit->isValid($general, $ownCities, $ownRegions, $relativeYear, $tech);
$crewObj->baseRice = $general->onCalcDomestic($this->getName(), 'rice', $unit->riceWithTech($tech), ['armType' => $unit->armType]);
@@ -313,7 +304,7 @@ class che_징병 extends Command\GeneralCommand
$crewObj->img = ServConfig::$gameImagePath . "/crewtype" . $unit->id . ".png";
}
$crewObj->info = $unit->getInfoArr();
$crewObj->info = $unit->info;
$armCrewType['values'][] = $crewObj;
}