Compare commits

...

1 Commits

Author SHA1 Message Date
codefactor-io
1bfa41323f
[CodeFactor] Apply fixes
[ci skip] [skip ci]
2022-08-02 13:16:25 +00:00
3 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@ import Packet from "../kcp/Packet";
import Session from "../kcp/Session";
export default async function handle(session: Session, packet: Packet) {
let lineup = await session.player.getLineup();
const lineup = await session.player.getLineup();
session.send("GetCurLineupDataScRsp", {
retcode: 0,

View File

@ -8,7 +8,7 @@ export default async function handle(session: Session, packet: Packet) {
const body = packet.body as JoinLineupCsReq;
session.send("JoinLineupScRsp", { retcode: 0 });
let lineup = await session.player.getLineup();
const lineup = await session.player.getLineup();
const slot = body.slot || 0;
const avatarList = [];
for (const avatarId in lineup) {

View File

@ -5,7 +5,7 @@ import Session from "../kcp/Session";
export default async function handle(session: Session, packet: Packet) {
const body = packet.body as SetLineupNameCsReq;
let curLineup = await session.player.getLineup();
const curLineup = await session.player.getLineup();
curLineup.name = body.name;
session.player.setLineup(curLineup);
session.player.save();