mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-16 13:17:32 +00:00
rebase: 优化代码,移动模型
This commit is contained in:
parent
47e76adf80
commit
52b9a5b1b3
10 changed files with 653 additions and 459 deletions
|
|
@ -145,6 +145,16 @@ export class Equip {
|
|||
this.equipment_type = equipment_type;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {number} id
|
||||
* @returns {EquipProperty}
|
||||
*/
|
||||
get_property(id) {
|
||||
const result =
|
||||
this.properties.find(item => item.property_id === id)?.base || '0';
|
||||
return Number(result);
|
||||
}
|
||||
|
||||
async get_assets() {
|
||||
const result = await getSuitImage(this.id);
|
||||
this.suit_icon = result;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue