Add King of Hanzhong council milestone
This commit is contained in:
@@ -5854,6 +5854,9 @@ export class CampScene extends Phaser.Scene {
|
||||
|
||||
private currentCampTitle() {
|
||||
const battleId = this.currentCampBattleId();
|
||||
if (this.campaign?.step === 'hanzhong-king-camp') {
|
||||
return '한중왕 즉위 준비 군영';
|
||||
}
|
||||
if (battleId === campBattleIds.thirtySeventh) {
|
||||
return '한중 결전 후 군영';
|
||||
}
|
||||
@@ -6673,6 +6676,19 @@ export class CampScene extends Phaser.Scene {
|
||||
|
||||
if (!flow.nextBattleId || !flow.campaignStep || flow.pages.length === 0) {
|
||||
this.hideSortiePrep();
|
||||
if (!flow.nextBattleId && flow.campaignStep && flow.pages.length > 0) {
|
||||
if (this.campaign?.step === flow.campaignStep) {
|
||||
this.showCampNotice(flow.unavailableNotice ?? '다음 장은 아직 준비 중입니다. 군영에서 성장 상태를 정비하세요.');
|
||||
return;
|
||||
}
|
||||
markCampaignStep(flow.campaignStep);
|
||||
this.campaign = getCampaignState();
|
||||
this.scene.start('StoryScene', {
|
||||
pages: flow.pages,
|
||||
nextScene: 'CampScene'
|
||||
});
|
||||
return;
|
||||
}
|
||||
if (flow.pages.length > 0) {
|
||||
this.scene.start('StoryScene', {
|
||||
pages: flow.pages,
|
||||
@@ -6950,14 +6966,21 @@ export class CampScene extends Phaser.Scene {
|
||||
const activeChapterIndex = this.activeTimelineChapterIndex(completedIds);
|
||||
const activeChapter = campaignTimelineChapters[activeChapterIndex];
|
||||
const latestBattleId = this.campaign?.latestBattleId ?? this.report?.battleId;
|
||||
const nextBattleId = getSortieFlow(this.campaign?.latestBattleId).nextBattleId;
|
||||
const flow = getSortieFlow(this.campaign?.latestBattleId);
|
||||
const nextBattleId = flow.nextBattleId;
|
||||
return {
|
||||
completedKnown,
|
||||
totalKnown,
|
||||
activeChapterIndex,
|
||||
activeChapter,
|
||||
latestBattleTitle: latestBattleId ? getBattleScenario(latestBattleId).title : '없음',
|
||||
nextBattleTitle: nextBattleId ? getBattleScenario(nextBattleId).title : '준비 중'
|
||||
nextBattleTitle: this.campaign?.step === 'hanzhong-king-camp'
|
||||
? '촉한 건국 준비'
|
||||
: nextBattleId
|
||||
? getBattleScenario(nextBattleId).title
|
||||
: flow.campaignStep
|
||||
? flow.title
|
||||
: '준비 중'
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user