mirror of
https://github.com/Lawin0129/AthenaProfileGenerator.git
synced 2026-01-13 03:02:22 +01:00
Merge pull request #2 from PRO100KatYT/main
This commit is contained in:
@@ -103,6 +103,55 @@
|
|||||||
"favorite": false
|
"favorite": false
|
||||||
},
|
},
|
||||||
"quantity": 1
|
"quantity": 1
|
||||||
|
},
|
||||||
|
"characterloadout": {
|
||||||
|
"templateId": "CosmeticLoadout:LoadoutSchema_Character",
|
||||||
|
"attributes": {
|
||||||
|
"slots": [],
|
||||||
|
"display_name": "LawinServer"
|
||||||
|
},
|
||||||
|
"quantity": 1
|
||||||
|
},
|
||||||
|
"emotesloadout": {
|
||||||
|
"templateId": "CosmeticLoadout:LoadoutSchema_Emotes",
|
||||||
|
"attributes": {
|
||||||
|
"slots": [],
|
||||||
|
"display_name": "LawinServer"
|
||||||
|
},
|
||||||
|
"quantity": 1
|
||||||
|
},
|
||||||
|
"platformloadout": {
|
||||||
|
"templateId": "CosmeticLoadout:LoadoutSchema_Platform",
|
||||||
|
"attributes": {
|
||||||
|
"slots": [
|
||||||
|
{
|
||||||
|
"slot_template": "CosmeticLoadoutSlotTemplate:LoadoutSlot_Banner_Icon",
|
||||||
|
"equipped_item": "HomebaseBannerIcon:StandardBanner1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"slot_template": "CosmeticLoadoutSlotTemplate:LoadoutSlot_Banner_Color",
|
||||||
|
"equipped_item": "HomebaseBannerColor:DefaultColor1"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"display_name": "LawinServer"
|
||||||
|
},
|
||||||
|
"quantity": 1
|
||||||
|
},
|
||||||
|
"wrapsloadout": {
|
||||||
|
"templateId": "CosmeticLoadout:LoadoutSchema_Wraps",
|
||||||
|
"attributes": {
|
||||||
|
"slots": [],
|
||||||
|
"display_name": "LawinServer"
|
||||||
|
},
|
||||||
|
"quantity": 1
|
||||||
|
},
|
||||||
|
"vehicleloadout": {
|
||||||
|
"templateId": "CosmeticLoadout:LoadoutSchema_Vehicle",
|
||||||
|
"attributes": {
|
||||||
|
"slots": [],
|
||||||
|
"display_name": "LawinServer"
|
||||||
|
},
|
||||||
|
"quantity": 1
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"stats": {
|
"stats": {
|
||||||
@@ -112,6 +161,23 @@
|
|||||||
"loadouts": [
|
"loadouts": [
|
||||||
"loadout1"
|
"loadout1"
|
||||||
],
|
],
|
||||||
|
"loadout_presets": {
|
||||||
|
"CosmeticLoadout:LoadoutSchema_Character": {
|
||||||
|
"0": "characterloadout"
|
||||||
|
},
|
||||||
|
"CosmeticLoadout:LoadoutSchema_Emotes": {
|
||||||
|
"0": "emotesloadout"
|
||||||
|
},
|
||||||
|
"CosmeticLoadout:LoadoutSchema_Platform": {
|
||||||
|
"0": "platformloadout"
|
||||||
|
},
|
||||||
|
"CosmeticLoadout:LoadoutSchema_Wraps": {
|
||||||
|
"0": "wrapsloadout"
|
||||||
|
},
|
||||||
|
"CosmeticLoadout:LoadoutSchema_Vehicle": {
|
||||||
|
"0": "vehicleloadout"
|
||||||
|
}
|
||||||
|
},
|
||||||
"favorite_victorypose": "",
|
"favorite_victorypose": "",
|
||||||
"mfa_reward_claimed": false,
|
"mfa_reward_claimed": false,
|
||||||
"quest_manager": {
|
"quest_manager": {
|
||||||
|
|||||||
25
index.js
25
index.js
@@ -2,18 +2,32 @@ const { default: request } = require("axios");
|
|||||||
const fs = require("fs");
|
const fs = require("fs");
|
||||||
let athena = require("./athena_template.json");
|
let athena = require("./athena_template.json");
|
||||||
|
|
||||||
console.log("Fortnite Athena Profile Generator by Lawin v1.0.2\n");
|
const fixedBackendValues = {
|
||||||
request.get("https://fortnite-api.com/v2/cosmetics/br").then(resp => {
|
"AthenaEmoji": "AthenaDance",
|
||||||
|
"AthenaSpray": "AthenaDance",
|
||||||
|
"AthenaToy": "AthenaDance",
|
||||||
|
"AthenaPetCarrier": "AthenaBackpack",
|
||||||
|
"AthenaPet": "AthenaBackpack",
|
||||||
|
"SparksDrum": "SparksDrums",
|
||||||
|
"SparksMic": "SparksMicrophone"
|
||||||
|
}
|
||||||
|
|
||||||
|
console.log("Fortnite Athena Profile Generator by Lawin v1.0.3\n");
|
||||||
|
request.get("https://fortnite-api.com/v2/cosmetics").then(resp => {
|
||||||
let data = resp.data.data;
|
let data = resp.data.data;
|
||||||
|
|
||||||
console.log("[GEN] Starting to generate...\n");
|
console.log("[GEN] Starting to generate...\n");
|
||||||
|
|
||||||
data.forEach(item => {
|
for (var mode in data) {
|
||||||
|
if (mode == "lego") continue; // Adding lego characters to the profile is unnecessary
|
||||||
|
|
||||||
|
data[mode].forEach(item => {
|
||||||
if (item.id.toLowerCase().includes("random")) return;
|
if (item.id.toLowerCase().includes("random")) return;
|
||||||
|
|
||||||
|
if (mode == "tracks") item.type = {"backendValue": "SparksSong"};
|
||||||
|
|
||||||
// Credits to PRO100KatYT for backendValue fixes
|
// Credits to PRO100KatYT for backendValue fixes
|
||||||
if (item.type.backendValue == "AthenaEmoji" || item.type.backendValue == "AthenaSpray" || item.type.backendValue == "AthenaToy") item.type.backendValue = "AthenaDance";
|
if (fixedBackendValues.hasOwnProperty(item.type.backendValue)) item.type.backendValue = fixedBackendValues[item.type.backendValue];
|
||||||
if (item.type.backendValue == "AthenaPetCarrier") item.type.backendValue = "AthenaBackpack";
|
|
||||||
|
|
||||||
let id = `${item.type.backendValue}:${item.id}`;
|
let id = `${item.type.backendValue}:${item.id}`;
|
||||||
let variants = [];
|
let variants = [];
|
||||||
@@ -41,6 +55,7 @@ request.get("https://fortnite-api.com/v2/cosmetics/br").then(resp => {
|
|||||||
"quantity": 1
|
"quantity": 1
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
}
|
||||||
|
|
||||||
fs.writeFileSync("./athena.json", JSON.stringify(athena, null, 2));
|
fs.writeFileSync("./athena.json", JSON.stringify(athena, null, 2));
|
||||||
const stats = fs.statSync("./athena.json");
|
const stats = fs.statSync("./athena.json");
|
||||||
|
|||||||
Reference in New Issue
Block a user