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++) {
|
for (let i = 0; i <= LINEUPS; i++) {
|
||||||
const copy = baseLineup;
|
const copy = baseLineup;
|
||||||
copy.index = 0;
|
copy.index = 0;
|
||||||
|
copy.name = `Team ${i}`;
|
||||||
dataObj.lineup.lineups[i] = copy;
|
dataObj.lineup.lineups[i] = copy;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -62,6 +62,8 @@ export default async function handle(session: Session, packet: Packet) {
|
|||||||
lineups: {}
|
lineups: {}
|
||||||
}
|
}
|
||||||
for (let i = 0; i <= LINEUPS; i++) {
|
for (let i = 0; i <= LINEUPS; i++) {
|
||||||
|
let copy = baseLineup;
|
||||||
|
copy.name = `Team ${i}`;
|
||||||
plr.db.lineup.lineups[i] = baseLineup;
|
plr.db.lineup.lineups[i] = baseLineup;
|
||||||
}
|
}
|
||||||
plr.save();
|
plr.save();
|
||||||
|
Loading…
Reference in New Issue
Block a user