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
|
ultimate_mastery?: boolean
|
||||||
accessory?: boolean
|
accessory?: boolean
|
||||||
accessory_type?: number
|
accessory_type?: number
|
||||||
|
aux_weapon?: boolean
|
||||||
base_job_id?: string | null
|
base_job_id?: string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -40,6 +40,9 @@
|
||||||
<DetailItem label="Ultimate Mastery" editable={true}>
|
<DetailItem label="Ultimate Mastery" editable={true}>
|
||||||
<Checkbox bind:checked={editData.ultimateMastery} contained />
|
<Checkbox bind:checked={editData.ultimateMastery} contained />
|
||||||
</DetailItem>
|
</DetailItem>
|
||||||
|
<DetailItem label="Aux Weapon" editable={true}>
|
||||||
|
<Checkbox bind:checked={editData.auxWeapon} contained />
|
||||||
|
</DetailItem>
|
||||||
<DetailItem label="Has Accessory" editable={true}>
|
<DetailItem label="Has Accessory" editable={true}>
|
||||||
<Checkbox bind:checked={editData.accessory} contained />
|
<Checkbox bind:checked={editData.accessory} contained />
|
||||||
</DetailItem>
|
</DetailItem>
|
||||||
|
|
@ -64,6 +67,11 @@
|
||||||
{formatBoolean(job.ultimateMastery)}
|
{formatBoolean(job.ultimateMastery)}
|
||||||
</span>
|
</span>
|
||||||
</DetailItem>
|
</DetailItem>
|
||||||
|
<DetailItem label="Aux Weapon">
|
||||||
|
<span class="boolean-indicator" class:yes={job.auxWeapon}>
|
||||||
|
{formatBoolean(job.auxWeapon)}
|
||||||
|
</span>
|
||||||
|
</DetailItem>
|
||||||
<DetailItem label="Has Accessory">
|
<DetailItem label="Has Accessory">
|
||||||
<span class="boolean-indicator" class:yes={job.accessory}>
|
<span class="boolean-indicator" class:yes={job.accessory}>
|
||||||
{formatBoolean(job.accessory)}
|
{formatBoolean(job.accessory)}
|
||||||
|
|
|
||||||
|
|
@ -177,6 +177,7 @@ export interface Job {
|
||||||
ultimateMastery?: boolean // Whether this job supports ultimate mastery
|
ultimateMastery?: boolean // Whether this job supports ultimate mastery
|
||||||
accessory?: boolean
|
accessory?: boolean
|
||||||
accessoryType?: number
|
accessoryType?: number
|
||||||
|
auxWeapon?: boolean // Whether this job requires an aux weapon in the first non-mainhand slot
|
||||||
}
|
}
|
||||||
|
|
||||||
// JobSkill entity from JobSkillBlueprint
|
// JobSkill entity from JobSkillBlueprint
|
||||||
|
|
|
||||||
|
|
@ -60,6 +60,7 @@
|
||||||
proficiency2: 0,
|
proficiency2: 0,
|
||||||
masterLevel: false,
|
masterLevel: false,
|
||||||
ultimateMastery: false,
|
ultimateMastery: false,
|
||||||
|
auxWeapon: false,
|
||||||
accessory: false,
|
accessory: false,
|
||||||
accessoryType: 0
|
accessoryType: 0
|
||||||
})
|
})
|
||||||
|
|
@ -77,6 +78,7 @@
|
||||||
proficiency2: job.proficiency?.[1] || 0,
|
proficiency2: job.proficiency?.[1] || 0,
|
||||||
masterLevel: job.masterLevel || false,
|
masterLevel: job.masterLevel || false,
|
||||||
ultimateMastery: job.ultimateMastery || false,
|
ultimateMastery: job.ultimateMastery || false,
|
||||||
|
auxWeapon: job.auxWeapon || false,
|
||||||
accessory: job.accessory || false,
|
accessory: job.accessory || false,
|
||||||
accessoryType: job.accessoryType || 0
|
accessoryType: job.accessoryType || 0
|
||||||
}
|
}
|
||||||
|
|
@ -102,6 +104,7 @@
|
||||||
proficiency2: editData.proficiency2,
|
proficiency2: editData.proficiency2,
|
||||||
master_level: editData.masterLevel,
|
master_level: editData.masterLevel,
|
||||||
ultimate_mastery: editData.ultimateMastery,
|
ultimate_mastery: editData.ultimateMastery,
|
||||||
|
aux_weapon: editData.auxWeapon,
|
||||||
accessory: editData.accessory,
|
accessory: editData.accessory,
|
||||||
accessory_type: editData.accessoryType
|
accessory_type: editData.accessoryType
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue