形象:作为物品获得
This commit is contained in:
+3
-3
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user