军团活动:修复粮草先行重启问题,诸侯混战宣战问题
This commit is contained in:
@@ -55,6 +55,10 @@ export class WoodenHorseMember {
|
||||
setReceived(hasReceiveInitItems: boolean) {
|
||||
this.hasReceiveInitItems = hasReceiveInitItems;
|
||||
}
|
||||
|
||||
updateSid(sid: string) {
|
||||
this.sid = sid;
|
||||
}
|
||||
}
|
||||
|
||||
// 木牛流马
|
||||
@@ -267,6 +271,13 @@ export class WoodenHorse {
|
||||
}
|
||||
}
|
||||
|
||||
public updateMemberSid(roleId: string, sid: string) {
|
||||
let index = this.members.findIndex(cur => cur.roleId == roleId);
|
||||
if(index != -1) {
|
||||
this.members[index].updateSid(sid);
|
||||
}
|
||||
}
|
||||
|
||||
public setRemainItem(id: number, remain: number, max: number) {
|
||||
this.remainItems.set(id, { total: remain, max });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user