寻宝:修改奖励
This commit is contained in:
@@ -48,6 +48,8 @@ export class RoleStatus {
|
||||
@prop({ required: true })
|
||||
roleName: string;
|
||||
@prop({ required: true })
|
||||
sid: string;
|
||||
@prop({ required: true })
|
||||
guildCode: string;
|
||||
@prop({ required: true })
|
||||
isCap: boolean;
|
||||
@@ -96,7 +98,7 @@ export class RoleStatus {
|
||||
@prop({ required: true, default: 0 })
|
||||
frdRatio: number = 0;
|
||||
|
||||
constructor(role: RoleUpdate, isCap: boolean, isFrd: boolean, heroes: ComRoleStatusHero[] = [], isRobot = false) {
|
||||
constructor(role: RoleUpdate, sid: string, isCap: boolean, isFrd: boolean, heroes: ComRoleStatusHero[] = [], isRobot = false) {
|
||||
if(role) {
|
||||
this.roleId = role.roleId||'';
|
||||
this.roleName = role.roleName||'';
|
||||
@@ -107,6 +109,7 @@ export class RoleStatus {
|
||||
this.topLineupCe = role.topLineupCe||0;
|
||||
this.lv = role.lv||1;
|
||||
}
|
||||
this.sid = sid;
|
||||
this.isCap = isCap;
|
||||
this.totalDmg = 0;
|
||||
this.isFrd = isFrd;
|
||||
|
||||
Reference in New Issue
Block a user