From 253f7a74aada7d2c584b48909e4ff71db99c9d78 Mon Sep 17 00:00:00 2001 From: PRO100KatYT Date: Wed, 22 Jun 2022 10:51:57 +0200 Subject: [PATCH] Added Fennix STW Hero and some lobby backgrounds --- profiles/campaign.json | 22 ++++++++++++++++++++++ structure/functions.js | 13 +++++++++++-- 2 files changed, 33 insertions(+), 2 deletions(-) diff --git a/profiles/campaign.json b/profiles/campaign.json index bc0c282..96ca798 100644 --- a/profiles/campaign.json +++ b/profiles/campaign.json @@ -19821,6 +19821,28 @@ }, "quantity": 1 }, + "Hero:HID_Ninja_044_Fennix_SR_T05": { + "templateId": "Hero:HID_Ninja_044_Fennix_SR_T05", + "attributes": { + "outfitvariants": [], + "backblingvariants": [], + "gender": 0, + "level": 50, + "item_seen": true, + "squad_slot_idx": -1, + "portrait": "", + "hero_name": "DefaultHeroName", + "max_level_bonus": 0, + "squad_id": "", + "mode_loadouts": [], + "xp": 0, + "slotted_building_id": "", + "refundable": false, + "building_slot_used": -1, + "favorite": false + }, + "quantity": 1 + }, "Hero:HID_Ninja_XBOX_VR_T05": { "templateId": "Hero:HID_Ninja_XBOX_VR_T05", "attributes": { diff --git a/structure/functions.js b/structure/functions.js index a05084c..ee5d145 100644 --- a/structure/functions.js +++ b/structure/functions.js @@ -209,7 +209,7 @@ function getContentPages(req) { } catch (err) {} try { - if (memory.season < 5 || (memory.season == 5 && Number(memory.build.toString().split(".")[1]) < 30)) { + if (memory.build < 5.30) { news.forEach(mode => { contentpages[mode].news.messages[0].image = "https://cdn.discordapp.com/attachments/927739901540188200/930879507496308736/discord.png"; contentpages[mode].news.messages[1].image = "https://cdn.discordapp.com/attachments/927739901540188200/930879519882088508/lawin.png"; @@ -239,7 +239,16 @@ function getContentPages(req) { } if (memory.season == 20) { - contentpages.dynamicbackgrounds.backgrounds.backgrounds[0].backgroundimage = "https://cdn2.unrealengine.com/t-bp20-lobby-2048x1024-d89eb522746c.png"; + if (memory.build == 20.40) { + contentpages.dynamicbackgrounds.backgrounds.backgrounds[0].backgroundimage = "https://cdn2.unrealengine.com/t-bp20-40-armadillo-glowup-lobby-2048x2048-2048x2048-3b83b887cc7f.jpg" + } + else { + contentpages.dynamicbackgrounds.backgrounds.backgrounds[0].backgroundimage = "https://cdn2.unrealengine.com/t-bp20-lobby-2048x1024-d89eb522746c.png"; + } + } + + if (memory.season == 21) { + contentpages.dynamicbackgrounds.backgrounds.backgrounds[0].backgroundimage = "https://cdn2.unrealengine.com/s21-lobby-background-2048x1024-2e7112b25dc3.jpg" } } catch (err) {}