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": [ 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, 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 = {}; 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) {