mirror of
https://github.com/sp-tarkov/server.git
synced 2025-02-13 02:10:44 -05:00
Feature: warn players who have botReload skill active (!58)
Co-authored-by: Dev <dev@noreply.dev.sp-tarkov.com> Reviewed-on: SPT-AKI/Server#58
This commit is contained in:
parent
457a4607f4
commit
a79c04ad28
@ -190,6 +190,7 @@
|
|||||||
"server_start_meme_23": "SPT keeping your virginity safe since 2018",
|
"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_meme_24": "The secret safe haven server is real! Dont tell anyone!",
|
||||||
"server_start_success": "Happy playing",
|
"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",
|
"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_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}}",
|
"trader-missing_trader_details_using_default_refresh_time": "Trader: {{traderId}} not found, generating temp entry with default refresh time of: {{updateTime}}",
|
||||||
|
@ -133,6 +133,24 @@ export class GameController
|
|||||||
{
|
{
|
||||||
this.seasonalEventService.checkForAndEnableSeasonalEvents();
|
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"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user