0
0
mirror of https://github.com/sp-tarkov/server.git synced 2025-02-13 09:50:43 -05:00

Added givemesunshine command to force summer

This commit is contained in:
Chomp 2025-01-04 13:03:46 +00:00
parent 1676ea0d2b
commit 2110edb9c2
2 changed files with 12 additions and 1 deletions

View File

@ -730,5 +730,6 @@
"chatbot-cannot_accept_any_more_of_gift": "You cannot accept any more of this gift",
"chatbot-forced_event_enabled": "%s event has been enabled, restart your game client before starting a raid",
"chatbot-added_stash_rows_please_restart": "Added 2 rows to stash, please restart your game to see them",
"chatbot-snow_enabled": "Snow is enabled for all subsequent raids until the server is restarted"
"chatbot-snow_enabled": "Snow is enabled for all subsequent raids until the server is restarted",
"chatbot-summer_enabled": "Summer has been enabled for all subsequent raids until the server is restarted"
}

View File

@ -169,6 +169,16 @@ export class SptDialogueChatBot implements IDialogueChatBot {
);
}
if (requestInput === "givemesunshine") {
this.weatherConfig.overrideSeason = Season.SUMMER;
this.mailSendService.sendUserMessageToPlayer(
sessionId,
sptFriendUser,
this.randomUtil.getArrayValue([this.localisationService.getText("chatbot-summer_enabled")]),
);
}
if (requestInput === "veryspooky") {
const enableEventResult = this.seasonalEventService.forceSeasonalEvent(SeasonalEventType.HALLOWEEN);
if (enableEventResult) {