feat: card

This commit is contained in:
bietiaop 2024-07-09 10:30:33 +08:00
parent cd0793655d
commit ce3c509cd9
43 changed files with 508 additions and 7 deletions

View file

@ -1,4 +1,5 @@
import { element } from '../lib/convert.js';
import { getSquareAvatar } from '../lib/download.js';
import { Equip, Weapon } from './equip.js';
import { Property } from './property.js';
import { Skill } from './skill.js';
@ -194,6 +195,10 @@ export class ZZZAvatarInfo {
this.element_str = element.IDToElement(element_type);
}
async get_assets() {
const result = await getSquareAvatar(this.id);
this.square_icon = result;
}
}
/**