mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-16 13:17:32 +00:00
feat: card
This commit is contained in:
parent
cd0793655d
commit
ce3c509cd9
43 changed files with 508 additions and 7 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue