From 9b04b2a457d2cd2978612e9c577b8097715f0975 Mon Sep 17 00:00:00 2001 From: Tau Date: Mon, 29 Apr 2019 13:53:07 -0400 Subject: [PATCH] wip team state stub --- src/idz/encoder/loadProfile2.ts | 2 +- src/idz/handler/_team.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/idz/encoder/loadProfile2.ts b/src/idz/encoder/loadProfile2.ts index 0054f82..dff0b4a 100644 --- a/src/idz/encoder/loadProfile2.ts +++ b/src/idz/encoder/loadProfile2.ts @@ -75,7 +75,7 @@ export function loadProfile2(res: LoadProfileResponse2) { buf.writeUInt16LE(res.unlocks.gauges, 0x00b8); buf.writeUInt32LE(res.unlocks.lastMileageReward, 0x01e8); buf.writeUInt16LE(res.unlocks.music, 0x01ec); - buf.writeUInt16LE(1, 0x037c); // Team leader + buf.writeUInt16LE(0, 0x037c); // Team leader mission(res.missions.team).copy(buf, 0x038a); buf.writeUInt16LE(0xffff, 0x0388); // [1] buf.writeUInt32LE(res.profileId, 0x03b8); diff --git a/src/idz/handler/_team.ts b/src/idz/handler/_team.ts index 393d45c..acd7fec 100644 --- a/src/idz/handler/_team.ts +++ b/src/idz/handler/_team.ts @@ -13,7 +13,7 @@ export function _team( const bits = { team: { id: 2 as ExtId, - name: "ASS GENTLEMEN", + name: process.env.TEAM_NAME || "", }, members: [], };