rebase: 优化代码,移动模型

This commit is contained in:
bietiaop 2024-07-26 16:45:15 +08:00
parent 47e76adf80
commit 52b9a5b1b3
10 changed files with 653 additions and 459 deletions

View file

@ -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;