feat: 100기 NPC 동조 및 후보 추첨 기능 개선과 초기 능력치 계산 로직 추가
This commit is contained in:
@@ -11,6 +11,13 @@ function sortTokens(&$tokens){
|
||||
}
|
||||
|
||||
function putInfoText(&$info){
|
||||
if (($info['event100Growth'] ?? false) === true) {
|
||||
$initialStats = CentennialAllStarGrowthService::calculateUserInitialStats($info);
|
||||
$info['initialLeadership'] = $initialStats['leadership'];
|
||||
$info['initialStrength'] = $initialStats['strength'];
|
||||
$info['initialIntel'] = $initialStats['intel'];
|
||||
}
|
||||
|
||||
if(key_exists('specialDomestic', $info)){
|
||||
$class = buildGeneralSpecialDomesticClass($info['specialDomestic']);
|
||||
$info['specialDomesticName'] = $class->getName();
|
||||
@@ -91,4 +98,4 @@ Json::die([
|
||||
'result'=>true,
|
||||
'pick'=>$pick,
|
||||
'validUntil'=>$valid_until
|
||||
]);
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user