皮肤:武将、时装表修改
This commit is contained in:
@@ -23,6 +23,13 @@ export class CeAttrData {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public copyFromHero(data: CeAttrData) {
|
||||
this.base = data.base;
|
||||
this.ratioUp = data.ratioUp;
|
||||
this.fixUp = data.fixUp;
|
||||
this.equipUp = data.equipUp;
|
||||
}
|
||||
|
||||
public updateAttr(update: { inc?: CeAttrUpdate, set?: CeAttrUpdate }) {
|
||||
if(update.inc) {
|
||||
let { base, equipUp, fixUp, ratioUp } = update.inc;
|
||||
@@ -55,6 +62,8 @@ export class Connect {
|
||||
export class HeroSkin {
|
||||
@prop({ required: true })
|
||||
id: number;
|
||||
@prop({ required: true })
|
||||
skinId: number; // fashions表的heroId字段
|
||||
@prop({ ref: 'Skin', type: mongoose.Schema.Types.ObjectId })
|
||||
skin: Ref<Skin>;
|
||||
@prop({ required: true })
|
||||
@@ -145,6 +154,8 @@ export default class Hero extends BaseModel {
|
||||
job: number; // 职业
|
||||
@prop({ required: true, default: 0 })
|
||||
jobStage: number; // 职阶
|
||||
@prop({ required: true, default: 0 })
|
||||
skinId: number; // 当前皮肤id,fashions表的heroId字段
|
||||
|
||||
@prop({ required: true, default: 0 })
|
||||
favour: number; // 好感度
|
||||
|
||||
Reference in New Issue
Block a user