形象:作为物品获得

This commit is contained in:
luying
2021-03-11 19:30:41 +08:00
parent c895e99851
commit ee9f443f7a
7 changed files with 972 additions and 911 deletions
+3 -3
View File
@@ -132,17 +132,17 @@ export default class Role extends BaseModel {
spines: Figure[]; // 拥有的形象
public get head () { // 虚拟字段head 当前头像
let curHead = this.heads?.find(cur => cur.enable && cur.time > nowSeconds());
let curHead = this.heads?.find(cur => cur.enable && (!cur.time || cur.time > nowSeconds()));
return curHead?curHead.id: EXTERIOR.EXTERIOR_FACE;
}
public get frame () { // 虚拟字段frame 当前相框
let curFrame = this.frames?.find(cur => cur.enable && cur.time > nowSeconds());
let curFrame = this.frames?.find(cur => cur.enable && (!cur.time || cur.time > nowSeconds()));
return curFrame?curFrame.id: EXTERIOR.EXTERIOR_FACECASE;
}
public get spine () { // 虚拟字段spine 当前形象
let curSpine = this.spines?.find(cur => cur.enable && cur.time > nowSeconds());
let curSpine = this.spines?.find(cur => cur.enable && (!cur.time || cur.time > nowSeconds()));
return curSpine?curSpine.id: EXTERIOR.EXTERIOR_APPEARANCE;
}