Skip to content

Commit

Permalink
slight refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
ThisNils committed Nov 3, 2024
1 parent 84c2244 commit 17ab945
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion resources/defaultPartyMeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"Default:PlaylistData_j": "{\"PlaylistData\":{\"playlistName\":\"Playlist_DefaultSquad\",\"tournamentId\":\"\",\"eventWindowId\":\"\",\"linkId\":{\"mnemonic\":\"playlist_defaultsquad\",\"version\":-1},\"bGracefullyUpgraded\":false,\"matchmakingRulePreset\":\"RespectParties\"}}",
"Default:PrimaryGameSessionId_s": "",
"Default:PrivacySettings_j": "{\"PrivacySettings\":{\"partyType\":\"Public\",\"partyInviteRestriction\":\"AnyMember\",\"bOnlyLeaderFriendsCanJoin\":false}}",
"Default:SquadInformation_j": "{\"SquadInformation\":{}}",
"Default:SquadInformation_j": "{\"SquadInformation\":{\"rawSquadAssignments\":[],\"squadData\":[{\"jamTempo\":0,\"jamKey\":0,\"jamMode\":0}]}}",
"Default:RegionId_s": "EU",
"Default:SelectedIsland_j": "{\"SelectedIsland\":{\"linkId\":{\"mnemonic\":\"playlist_defaultsquad\",\"version\":-1},\"worldId\":{\"iD\":\"\",\"ownerId\":\"INVALID\",\"name\":\"\"},\"sessionId\":\"\",\"joinInfo\":{\"islandJoinability\":\"CanNotBeJoinedOrWatched\",\"bIsWorldJoinable\":false,\"sessionKey\":\"\"}}}",
"Default:TileStates_j": "{\"TileStates\":[]}",
Expand Down
15 changes: 6 additions & 9 deletions src/structures/party/ClientPartyMeta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,14 @@ class ClientPartyMeta extends PartyMeta {
i += 1;
}
});
const squadData = [
{
"jamTempo": 0,
"jamKey": 0,
"jamMode": 0
}
]

const squadInformation = this.get('Default:SquadInformation_j');

return this.set('Default:SquadInformation_j', {
...squadInformation,
SquadInformation: {
"rawSquadAssignments": assignments,
"squadData": squadData
...squadInformation.SquadInformation,
rawSquadAssignments: assignments,
},
});
}
Expand Down

0 comments on commit 17ab945

Please sign in to comment.