From 347cef0c4ffa6d7304f9d92d106976bcf1a520cb Mon Sep 17 00:00:00 2001 From: PRO100KatYT <67335438+PRO100KatYT@users.noreply.github.com> Date: Thu, 14 Nov 2024 06:53:51 +0100 Subject: [PATCH] Added some new STW content --- profiles/campaign.json | 114 ++++++++++++++++++++++++++++++++++++ responses/contentpages.json | 18 +++++- structure/timeline.js | 8 ++- 3 files changed, 136 insertions(+), 4 deletions(-) diff --git a/profiles/campaign.json b/profiles/campaign.json index b9d0032..58ba250 100644 --- a/profiles/campaign.json +++ b/profiles/campaign.json @@ -52326,6 +52326,98 @@ }, "quantity": 1 }, + "Schematic:SID_Sniper_Primal_FlameBow_SR_Ore_T05": { + "templateId": "Schematic:SID_Sniper_Primal_FlameBow_SR_Ore_T05", + "attributes": { + "legacy_alterations": [], + "max_level_bonus": 0, + "level": 50, + "refund_legacy_item": false, + "item_seen": true, + "alterations": [ + "", + "", + "", + "", + "", + "" + ], + "xp": 0, + "refundable": false, + "alteration_base_rarities": [], + "favorite": false + }, + "quantity": 1 + }, + "Schematic:SID_Sniper_Primal_FlameBow_SR_Crystal_T05": { + "templateId": "Schematic:SID_Sniper_Primal_FlameBow_SR_Crystal_T05", + "attributes": { + "legacy_alterations": [], + "max_level_bonus": 0, + "level": 50, + "refund_legacy_item": false, + "item_seen": true, + "alterations": [ + "", + "", + "", + "", + "", + "" + ], + "xp": 0, + "refundable": false, + "alteration_base_rarities": [], + "favorite": false + }, + "quantity": 1 + }, + "Schematic:SID_Sniper_Primal_StinkBow_SR_Ore_T05": { + "templateId": "Schematic:SID_Sniper_Primal_StinkBow_SR_Ore_T05", + "attributes": { + "legacy_alterations": [], + "max_level_bonus": 0, + "level": 50, + "refund_legacy_item": false, + "item_seen": true, + "alterations": [ + "", + "", + "", + "", + "", + "" + ], + "xp": 0, + "refundable": false, + "alteration_base_rarities": [], + "favorite": false + }, + "quantity": 1 + }, + "Schematic:SID_Sniper_Primal_StinkBow_SR_Crystal_T05": { + "templateId": "Schematic:SID_Sniper_Primal_StinkBow_SR_Crystal_T05", + "attributes": { + "legacy_alterations": [], + "max_level_bonus": 0, + "level": 50, + "refund_legacy_item": false, + "item_seen": true, + "alterations": [ + "", + "", + "", + "", + "", + "" + ], + "xp": 0, + "refundable": false, + "alteration_base_rarities": [], + "favorite": false + }, + "quantity": 1 + }, "Schematic:Gadget_Generic_Turret": { "templateId": "Schematic:Gadget_Generic_Turret", "attributes": { @@ -61618,6 +61710,28 @@ }, "quantity": 1 }, + "Hero:HID_Ninja_045_Snowstrike_SR_T05": { + "templateId": "Hero:HID_Ninja_045_Snowstrike_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 + }, "Token:hordepointstier2": { "templateId": "Token:hordepointstier2", "attributes": { diff --git a/responses/contentpages.json b/responses/contentpages.json index 460de24..9628312 100644 --- a/responses/contentpages.json +++ b/responses/contentpages.json @@ -10,7 +10,23 @@ "message": { "_type": "CommonUI Simple Message Base", "title": "LawinServer", - "body": "Join our discord: https://discord.gg/KJ8UaHZ\nYouTube: Lawin\nTwitter: @lawin_010" + "body": { + "ar": "انضم إلى خادم الديسكورد الخاص بنا: https://discord.gg/KJ8UaHZ\nيوتيوب: Lawin\nتويتر: @lawin_010", + "de": "Tritt unserem Discord bei: https://discord.gg/KJ8UaHZ\nYouTube: Lawin\nTwitter: @lawin_010", + "en": "Join our Discord: https://discord.gg/KJ8UaHZ\nYouTube: Lawin\nTwitter: @lawin_010", + "es": "Únete a nuestro Discord: https://discord.gg/KJ8UaHZ\nYouTube: Lawin\nTwitter: @lawin_010", + "es-419": "Únete a nuestro Discord: https://discord.gg/KJ8UaHZ\nYouTube: Lawin\nTwitter: @lawin_010", + "fr": "Rejoignez notre Discord : https://discord.gg/KJ8UaHZ\nYouTube : Lawin\nTwitter : @lawin_010", + "it": "Unisciti al nostro Discord: https://discord.gg/KJ8UaHZ\nYouTube: Lawin\nTwitter: @lawin_010", + "ja": "私たちのDiscordに参加してください: https://discord.gg/KJ8UaHZ\nYouTube: Lawin\nTwitter: @lawin_010", + "ko": "우리의 Discord에 참여하세요: https://discord.gg/KJ8UaHZ\nYouTube: Lawin\nTwitter: @lawin_010", + "pl": "Dołącz do naszego Discorda: https://discord.gg/KJ8UaHZ\nYouTube: Lawin\nTwitter: @lawin_010", + "pt-BR": "Junte-se ao nosso Discord: https://discord.gg/KJ8UaHZ\nYouTube: Lawin\nTwitter: @lawin_010", + "ru": "Присоединяйтесь к нашему Discord: https://discord.gg/KJ8UaHZ\nYouTube: Lawin\nTwitter: @lawin_010", + "tr": "Discord sunucumuza katıl: https://discord.gg/KJ8UaHZ\nYouTube: Lawin\nTwitter: @lawin_010", + "zh-CN": "加入我们的Discord: https://discord.gg/KJ8UaHZ\nYouTube: Lawin\nTwitter: @lawin_010", + "zh-Hant": "加入我們的Discord: https://discord.gg/KJ8UaHZ\nYouTube: Lawin\nTwitter: @lawin_010" + } } }, "_activeDate": "2017-07-19T13:14:04.490Z", diff --git a/structure/timeline.js b/structure/timeline.js index 835a531..dbd69b0 100644 --- a/structure/timeline.js +++ b/structure/timeline.js @@ -1706,21 +1706,23 @@ express.get("/fortnite/api/calendar/v1/timeline", async (req, res) => { "EventFlag.Spring2019.Phase2", "EventFlag.Starlight", "EventFlag.StormKing.Landmark", + "EventFlag.STWHuntMonster", "EventFlag.STWOutlandish", "EventFlag.YarrrTwo" ] - var activeEventsSet = new Set(activeEvents.map(e => e.eventType)); - for (var i = 0; i < Events.length; i++) { - var Event = Events[i]; + const activeEventsSet = new Set(activeEvents.map(e => e.eventType)); + Events.forEach(Event => { if (!activeEventsSet.has(Event)) { activeEvents.push({ "eventType": Event, "activeUntil": "9999-01-01T00:00:00.000Z", "activeSince": "2020-01-01T00:00:00.000Z" }); + activeEventsSet.add(Event); } } + }); } const stateTemplate = {