✨ feat(gvg): 激战期内存以及玩家移动、挑战操作
This commit is contained in:
@@ -363,7 +363,7 @@ export class LeagueFarmMember {
|
||||
setByFields(fields: GVGLeagueFarmType[]) {
|
||||
this.count = fields.length;
|
||||
this.harvestTime = Math.min(...fields.map(cur => cur.harvestTime))||0;
|
||||
this.canHelp = !!fields.find(cur => cur.harvestTime < nowSeconds());
|
||||
this.canHelp = !!fields.find(cur => cur.harvestTime > 0 && cur.harvestTime < nowSeconds());
|
||||
this.output = fields.reduce((pre, cur) => (pre + cur.output||0), 0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user