Show planned reserve drill in roster cards
This commit is contained in:
@@ -15118,12 +15118,16 @@ export class CampScene extends Phaser.Scene {
|
|||||||
const role = this.sortieFormationRole(unit);
|
const role = this.sortieFormationRole(unit);
|
||||||
const roleLabel = this.sortieFormationRoleLabel(role);
|
const roleLabel = this.sortieFormationRoleLabel(role);
|
||||||
const recommendation = this.sortieRecommendation(unit.id);
|
const recommendation = this.sortieRecommendation(unit.id);
|
||||||
|
const plannedReserveFocus = !this.isSortieSelected(unit.id) ? this.reserveTrainingFocusDefinitionForUnit(unit.id) : undefined;
|
||||||
|
const hasIndividualReserveFocus = Boolean(this.campaign?.reserveTrainingAssignments[unit.id]);
|
||||||
const bg = this.track(this.add.rectangle(x, y, width, 22, 0x151f2a, 0.82));
|
const bg = this.track(this.add.rectangle(x, y, width, 22, 0x151f2a, 0.82));
|
||||||
bg.setOrigin(0);
|
bg.setOrigin(0);
|
||||||
bg.setStrokeStyle(1, training ? palette.green : palette.blue, training ? 0.5 : 0.34);
|
bg.setStrokeStyle(1, training ? palette.green : palette.blue, training ? 0.5 : 0.34);
|
||||||
const planText = recommendation ? this.sortieRecommendationHint(recommendation, unit, 28) : `${roleLabel} 역할로 편성 가능`;
|
const planText = recommendation ? this.sortieRecommendationHint(recommendation, unit, 28) : `${roleLabel} 역할로 편성 가능`;
|
||||||
const trainingText = training
|
const trainingText = training
|
||||||
? `최근 ${training.focusLabel ?? '대기 훈련'} 경험 +${training.expGained}, 장비 +${training.equipmentExpGained}${training.bondExpGained ? `, 공명 +${training.bondExpGained}` : ''}`
|
? `최근 ${training.focusLabel ?? '대기 훈련'} 경험 +${training.expGained}, 장비 +${training.equipmentExpGained}${training.bondExpGained ? `, 공명 +${training.bondExpGained}` : ''}`
|
||||||
|
: plannedReserveFocus
|
||||||
|
? `${hasIndividualReserveFocus ? '개별' : '기본'} ${plannedReserveFocus.label} 예정`
|
||||||
: '대기 중에도 전투 후 선택한 훈련 방침의 성장이 반영됩니다.';
|
: '대기 중에도 전투 후 선택한 훈련 방침의 성장이 반영됩니다.';
|
||||||
this.track(this.add.text(x + 12, y + 5, `${status.label} · ${roleLabel}`, this.textStyle(11, status.tone === 'reserve' ? '#9fb0bf' : '#f2e3bf', true)));
|
this.track(this.add.text(x + 12, y + 5, `${status.label} · ${roleLabel}`, this.textStyle(11, status.tone === 'reserve' ? '#9fb0bf' : '#f2e3bf', true)));
|
||||||
this.track(this.add.text(x + 112, y + 5, this.compactText(planText, 48), this.textStyle(11, '#d4dce6')));
|
this.track(this.add.text(x + 112, y + 5, this.compactText(planText, 48), this.textStyle(11, '#d4dce6')));
|
||||||
|
|||||||
Reference in New Issue
Block a user