diff --git a/project/assets/locales/en.json b/project/assets/locales/en.json index bebffdb1..a36ad038 100644 --- a/project/assets/locales/en.json +++ b/project/assets/locales/en.json @@ -190,6 +190,7 @@ "server_start_meme_23": "SPT keeping your virginity safe since 2018", "server_start_meme_24": "The secret safe haven server is real! Dont tell anyone!", "server_start_success": "Happy playing", + "server_start_player_active_botreload_skill": "Your character has the 'BotReload' skill active, this will cause your guns to reload unnaturally fast, ignore this message if this is intended", "started_webserver_success": "Started webserver at %s", "trader-missing_durability_threshold_value": "Unable to find durability threshold value for trader: {{traderId}}, falling back to default of: {{value}}", "trader-missing_trader_details_using_default_refresh_time": "Trader: {{traderId}} not found, generating temp entry with default refresh time of: {{updateTime}}", diff --git a/project/src/controllers/GameController.ts b/project/src/controllers/GameController.ts index 0fa355af..497e1982 100644 --- a/project/src/controllers/GameController.ts +++ b/project/src/controllers/GameController.ts @@ -133,6 +133,24 @@ export class GameController { this.seasonalEventService.checkForAndEnableSeasonalEvents(); } + + if (pmcProfile?.Skills?.Common) + { + this.warnOnActiveBotReloadSkill(pmcProfile); + } + } + } + + /** + * Players set botReload to a high value and don't expect the crazy fast reload speeds, give them a warn about it + * @param pmcProfile Player profile + */ + protected warnOnActiveBotReloadSkill(pmcProfile: IPmcData): void + { + const botReloadSkill = pmcProfile.Skills.Common.find(x => x.Id === "BotReload"); + if (botReloadSkill?.Progress > 0) + { + this.logger.warning(this.localisationService.getText("server_start_player_active_botreload_skill")); } }