From 3820b975314d62aa13ef3c17325df5019311dd9e Mon Sep 17 00:00:00 2001 From: Dev Date: Tue, 23 Jul 2024 09:07:07 +0100 Subject: [PATCH 1/4] Added null protected to `playerLevelFulfillsQuestRequirement()` (cherry picked from commit c90b8670f2c2f170669c3e93cd0da5f4fafbcc5e) --- project/src/controllers/QuestController.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/project/src/controllers/QuestController.ts b/project/src/controllers/QuestController.ts index adf65d26..f38be134 100644 --- a/project/src/controllers/QuestController.ts +++ b/project/src/controllers/QuestController.ts @@ -215,6 +215,12 @@ export class QuestController */ protected playerLevelFulfillsQuestRequirement(quest: IQuest, playerLevel: number): boolean { + if (!quest.conditions) + { + // No conditions + return true; + } + const levelConditions = this.questConditionHelper.getLevelConditions(quest.conditions.AvailableForStart); if (levelConditions.length) { From 6d1bde60cabfe3883aa1c4e982bd7aa294ca4ee3 Mon Sep 17 00:00:00 2001 From: Dev Date: Tue, 23 Jul 2024 09:57:27 +0100 Subject: [PATCH 2/4] Adjusted `EDITPROFILE` gift to have 50 uses --- project/assets/configs/gifts.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/assets/configs/gifts.json b/project/assets/configs/gifts.json index a7048e87..5cc13d92 100644 --- a/project/assets/configs/gifts.json +++ b/project/assets/configs/gifts.json @@ -2667,7 +2667,7 @@ "localeTextId": "5a2d28f786f77436023be4a5 0", "collectionTimeHours": 72, "associatedEvent": "Promo", - "maxToSendPlayer": 1 + "maxToSendPlayer": 50 }, "TWITCHNEWYEARS2023": { "items": [ From 951655e846502c5c8e38855963265d62160fd12b Mon Sep 17 00:00:00 2001 From: Dev Date: Tue, 23 Jul 2024 13:14:56 +0100 Subject: [PATCH 3/4] Removed redundant rating check now it has been moved to ProfileFixerService --- project/src/controllers/GameController.ts | 9 --------- 1 file changed, 9 deletions(-) diff --git a/project/src/controllers/GameController.ts b/project/src/controllers/GameController.ts index 6ff1f818..aae2ce94 100644 --- a/project/src/controllers/GameController.ts +++ b/project/src/controllers/GameController.ts @@ -152,15 +152,6 @@ export class GameController return; } - if (fullProfile.characters.pmc.RagfairInfo) - { - if (Number.isNaN(fullProfile.characters.pmc.RagfairInfo.rating)) - { - this.logger.warning(`Profile: ${sessionID} ragfair rating was not a valid number, resetting to 0`); - fullProfile.characters.pmc.RagfairInfo.rating = 0; - } - } - if (Array.isArray(fullProfile.characters.pmc.WishList)) { fullProfile.characters.pmc.WishList = {}; From 8e31cd9950e822ad62b68c6fee7d149d277cf843 Mon Sep 17 00:00:00 2001 From: Dev Date: Tue, 23 Jul 2024 14:32:56 +0100 Subject: [PATCH 4/4] Added locations formatted to ignore --- project/biome.jsonc | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/project/biome.jsonc b/project/biome.jsonc index de7958be..1507924e 100644 --- a/project/biome.jsonc +++ b/project/biome.jsonc @@ -33,7 +33,17 @@ "formatter": { "enabled": true, "formatWithErrors": false, - "ignore": [], + "ignore": [ + "**/.git", + "**/.pkg-cache", + "**/.vscode", + "**/build", + "**/node_modules", + "**/types", + "**/tests/__cache__", + "**/tests/__coverage__", + "**/.editorconfig" + ], "attributePosition": "auto", "indentStyle": "space", "indentWidth": 4,