Add mod enabled text for the disclaimer window (!264)

Add another variation stating mods are enabled for the beta disclaimer window

![image](/attachments/af517b44-e613-4fd4-81fd-c2434d6478b5)

Co-authored-by: Cj <161484149+CJ-SPT@users.noreply.github.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/264
Co-authored-by: Cj <cj@noreply.dev.sp-tarkov.com>
Co-committed-by: Cj <cj@noreply.dev.sp-tarkov.com>
This commit is contained in:
Cj 2024-03-17 08:55:02 +00:00 committed by chomp
parent e497ecc125
commit 0a935651f5
2 changed files with 5 additions and 1 deletions

View File

@ -599,6 +599,7 @@
"launcher-profile_sptdeveloper": "Testing profile, starting level is 69, lots of Roubles/Dollars/Euros, USEC start with all quests ready to start, BEAR start with all quests ready to hand in, invincibility balaclava",
"launcher-missing_property": "Profile: %s is missing a descriptionLocaleKey property",
"release-beta-disclaimer": "By pressing OK you agree that no support is offered and that this is for bug testing only. NOT actual gameplay. Mods are disabled. New profiles may be required frequently. Report all bugs in the reports channel in discord, or on the issues page on the website. If you don't press OK by the time specified, the game will close.",
"release-beta-disclaimer-mods-enabled": "By pressing OK you agree that no support is offered and that this is for bug testing only. NOT actual gameplay. Mods are enabled, do NOT report issues with mods. Do NOT ask mod authors for updated mods. Report all bugs in the reports channel in discord, or on the issues page on the website. If you dont press OK by the time specificed, the game will close.",
"release-beta-disclaimer-accept": "User accepted the beta disclaimer",
"release-server-mods-loaded": "One or more server mods exist on a mod enabled build, reports will be invalid until removed. See the top of the server for loaded server mods to remove to report issues again.",
"release-server-mods-debug-message": "Server mods loaded",

View File

@ -38,7 +38,10 @@ export class ClientLogCallbacks
{
const data: IRelease = this.configServer.getConfig<ICoreConfig>(ConfigTypes.CORE).release;
data.betaDisclaimerText = this.localisationService.getText("release-beta-disclaimer");
data.betaDisclaimerText = globalThis.G_MODS_ENABLED
? this.localisationService.getText("release-beta-disclaimer-mods-enabled")
: this.localisationService.getText("release-beta-disclaimer");
data.betaDisclaimerAcceptText = this.localisationService.getText("release-beta-disclaimer-accept");
data.serverModsLoadedText = this.localisationService.getText("release-server-mods-loaded");
data.serverModsLoadedDebugText = this.localisationService.getText("release-server-mods-debug-message");