UnlockAllSkins breaks trying to apply Look from Look Links #548

Closed
opened 2024-10-13 19:45:10 -07:00 by VampireKitten · 2 comments
VampireKitten commented 2024-10-13 19:45:10 -07:00 (Migrated from github.com)

Solution from Lemon in the Space Ninja Server discord: change the UnlockAllSkins section in InventoryController.ts for the following:

    if (config.unlockAllSkins) {
        inventoryResponse.WeaponSkins = [];
        let i = 0;
        for (const uniqueName in ExportCustoms) {
            i++;
            inventoryResponse.WeaponSkins.push({
                ItemId: {
                    $oid: (i).toString().padStart(24, '0')
                },
                ItemType: uniqueName
            });
        }
    }
Solution from Lemon in the Space Ninja Server discord: change the UnlockAllSkins section in InventoryController.ts for the following: ``` if (config.unlockAllSkins) { inventoryResponse.WeaponSkins = []; let i = 0; for (const uniqueName in ExportCustoms) { i++; inventoryResponse.WeaponSkins.push({ ItemId: { $oid: (i).toString().padStart(24, '0') }, ItemType: uniqueName }); } } ```

Seems like a pretty easy PR to make?

Seems like a pretty easy PR to make?
VampireKitten commented 2024-10-14 05:57:02 -07:00 (Migrated from github.com)

It was 4:45AM when I made this issue, it was mostly just to remind myself of what to do.

It was 4:45AM when I made this issue, it was mostly just to remind myself of what to do.
Sign in to join this conversation.
No description provided.