Skip to content

Commit

Permalink
Updated quest phase schema
Browse files Browse the repository at this point in the history
  • Loading branch information
squaresmile committed Jan 14, 2024
1 parent 93a55b3 commit 0f5c8f5
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions packages/api-connector/src/Schema/Quest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,17 +140,35 @@ export interface StageCutin {
drops: EnemyDrop[];
}

export enum BattleFieldEnvironmentGrantType {
None = "none",
Stage = "stage",
Function = "function",
}

export interface BattleBg {
id: number;
type: BattleFieldEnvironmentGrantType;
priority: number;
individuality: Trait[];
imageId: number;
}

export interface Stage {
wave: number;
bgm: Bgm;
startEffectId: number;
fieldAis: { day?: number; raid?: number; id: number }[];
call: number[];
enemyFieldPosCount?: number;
enemyActCount?: number;
turn?: number;
limitAct?: StageLimitActType;
battleBg?: BattleBg;
NoEntryIds: number[];
waveStartMovies: StageStartMovie[];
cutin?: StageCutin;
originalScript: Record<string, any>;
enemies: QuestEnemy[];
}

Expand Down Expand Up @@ -262,10 +280,12 @@ export interface QuestPhase extends Quest {
bond: number;
isNpcOnly: boolean;
battleBgId: number;
battleBg?: BattleBg;
extraDetail: QuestPhaseExtraDetail;
scripts: PhaseScript[];
enemyHash?: string;
availableEnemyHashes: string[];
dropsFromAllHashes?: boolean;
messages: QuestMessage[];
hints: QuestHint[];
restrictions: QuestPhaseRestriction[];
Expand Down

0 comments on commit 0f5c8f5

Please sign in to comment.