diff --git a/src/lib/api/adapters/job.adapter.ts b/src/lib/api/adapters/job.adapter.ts index e5294154..a9407a7d 100644 --- a/src/lib/api/adapters/job.adapter.ts +++ b/src/lib/api/adapters/job.adapter.ts @@ -57,6 +57,7 @@ export interface JobUpdatePayload { ultimate_mastery?: boolean accessory?: boolean accessory_type?: number + aux_weapon?: boolean base_job_id?: string | null } diff --git a/src/lib/features/database/jobs/sections/JobFeaturesSection.svelte b/src/lib/features/database/jobs/sections/JobFeaturesSection.svelte index 185cea2a..4e1fc8f9 100644 --- a/src/lib/features/database/jobs/sections/JobFeaturesSection.svelte +++ b/src/lib/features/database/jobs/sections/JobFeaturesSection.svelte @@ -40,6 +40,9 @@ + + + @@ -64,6 +67,11 @@ {formatBoolean(job.ultimateMastery)} + + + {formatBoolean(job.auxWeapon)} + + {formatBoolean(job.accessory)} diff --git a/src/lib/types/api/entities.ts b/src/lib/types/api/entities.ts index cb4830c2..2f2b3a99 100644 --- a/src/lib/types/api/entities.ts +++ b/src/lib/types/api/entities.ts @@ -177,6 +177,7 @@ export interface Job { ultimateMastery?: boolean // Whether this job supports ultimate mastery accessory?: boolean accessoryType?: number + auxWeapon?: boolean // Whether this job requires an aux weapon in the first non-mainhand slot } // JobSkill entity from JobSkillBlueprint diff --git a/src/routes/(app)/database/jobs/[granblueId]/edit/+page.svelte b/src/routes/(app)/database/jobs/[granblueId]/edit/+page.svelte index 54f1e84e..3b7c76e4 100644 --- a/src/routes/(app)/database/jobs/[granblueId]/edit/+page.svelte +++ b/src/routes/(app)/database/jobs/[granblueId]/edit/+page.svelte @@ -60,6 +60,7 @@ proficiency2: 0, masterLevel: false, ultimateMastery: false, + auxWeapon: false, accessory: false, accessoryType: 0 }) @@ -77,6 +78,7 @@ proficiency2: job.proficiency?.[1] || 0, masterLevel: job.masterLevel || false, ultimateMastery: job.ultimateMastery || false, + auxWeapon: job.auxWeapon || false, accessory: job.accessory || false, accessoryType: job.accessoryType || 0 } @@ -102,6 +104,7 @@ proficiency2: editData.proficiency2, master_level: editData.masterLevel, ultimate_mastery: editData.ultimateMastery, + aux_weapon: editData.auxWeapon, accessory: editData.accessory, accessory_type: editData.accessoryType }