support aux_weapon in job database
This commit is contained in:
parent
bc5b25bdd7
commit
e83650cb97
4 changed files with 13 additions and 0 deletions
|
|
@ -57,6 +57,7 @@ export interface JobUpdatePayload {
|
|||
ultimate_mastery?: boolean
|
||||
accessory?: boolean
|
||||
accessory_type?: number
|
||||
aux_weapon?: boolean
|
||||
base_job_id?: string | null
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -40,6 +40,9 @@
|
|||
<DetailItem label="Ultimate Mastery" editable={true}>
|
||||
<Checkbox bind:checked={editData.ultimateMastery} contained />
|
||||
</DetailItem>
|
||||
<DetailItem label="Aux Weapon" editable={true}>
|
||||
<Checkbox bind:checked={editData.auxWeapon} contained />
|
||||
</DetailItem>
|
||||
<DetailItem label="Has Accessory" editable={true}>
|
||||
<Checkbox bind:checked={editData.accessory} contained />
|
||||
</DetailItem>
|
||||
|
|
@ -64,6 +67,11 @@
|
|||
{formatBoolean(job.ultimateMastery)}
|
||||
</span>
|
||||
</DetailItem>
|
||||
<DetailItem label="Aux Weapon">
|
||||
<span class="boolean-indicator" class:yes={job.auxWeapon}>
|
||||
{formatBoolean(job.auxWeapon)}
|
||||
</span>
|
||||
</DetailItem>
|
||||
<DetailItem label="Has Accessory">
|
||||
<span class="boolean-indicator" class:yes={job.accessory}>
|
||||
{formatBoolean(job.accessory)}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue