军团活动:修改粮草先行
This commit is contained in:
+5
-19
@@ -188,7 +188,8 @@ export class GuildRankInfo extends GuildRankParam {
|
||||
code: string;
|
||||
num: number;
|
||||
time: number;
|
||||
active?: number;
|
||||
num1?: number;
|
||||
num2?: number;
|
||||
|
||||
setInfo(rank: number, myId: myIdInter, num: number, time: number) {
|
||||
this.rank = rank;
|
||||
@@ -197,12 +198,12 @@ export class GuildRankInfo extends GuildRankParam {
|
||||
this.time = time;
|
||||
}
|
||||
|
||||
setInfo2(rank: number, myId: myIdInter, num: number, active: number, time: number) {
|
||||
setInfo2(rank: number, myId: myIdInter, num: number, num1: number, num2: number) {
|
||||
this.rank = rank;
|
||||
this.code = myId.guildCode;
|
||||
this.num = num;
|
||||
this.time = time;
|
||||
this.active = active;
|
||||
this.num1 = num1;
|
||||
this.num2 = num2;
|
||||
}
|
||||
|
||||
isMyInfo(myId: myIdInter) {
|
||||
@@ -258,21 +259,6 @@ export class SimpleGuildRankParam {
|
||||
}
|
||||
}
|
||||
|
||||
export class SimpleGuildRankWithTimeParam extends SimpleGuildRankParam {
|
||||
time: number = 0;
|
||||
durability: number = 0;
|
||||
|
||||
constructor(rank: number, code: string, name: string, obj: WoodenHorse|{distance: number, time: number, startTime: number, durability: number}|false) {
|
||||
super(rank, code, name, obj?obj.distance:0);
|
||||
// console.log(JSON.stringify(obj));
|
||||
if(obj) {
|
||||
this.num = obj.distance;
|
||||
this.time = Math.floor((obj.time - obj.startTime)/1000);
|
||||
this.durability = obj.durability;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export class SimpleRoleRankParam {
|
||||
rank: number;
|
||||
roleId: string;
|
||||
|
||||
Reference in New Issue
Block a user