Add names to default team generating
This commit is contained in:
parent
35b2131a05
commit
5128c904b8
@ -163,6 +163,7 @@ export default class Player {
|
||||
for (let i = 0; i <= LINEUPS; i++) {
|
||||
const copy = baseLineup;
|
||||
copy.index = 0;
|
||||
copy.name = `Team ${i}`;
|
||||
dataObj.lineup.lineups[i] = copy;
|
||||
}
|
||||
|
||||
|
@ -62,6 +62,8 @@ export default async function handle(session: Session, packet: Packet) {
|
||||
lineups: {}
|
||||
}
|
||||
for (let i = 0; i <= LINEUPS; i++) {
|
||||
let copy = baseLineup;
|
||||
copy.name = `Team ${i}`;
|
||||
plr.db.lineup.lineups[i] = baseLineup;
|
||||
}
|
||||
plr.save();
|
||||
|
Loading…
Reference in New Issue
Block a user