From cc1d222a9817422856b3083bbcfb640ea3e22eb4 Mon Sep 17 00:00:00 2001 From: CWX Date: Tue, 21 May 2024 19:18:57 +0100 Subject: [PATCH] rebranding part3 --- LICENSE.md | 2 +- project/SPT.Custom/Patches/EasyAssetsPatch.cs | 2 +- project/SPT.PrePatch/SPTBotsPrePatcher.cs | 4 ++-- .../Patches/MainMenu/PluginErrorNotifierPatch.cs | 2 +- .../Utils/Insurance/InsuredItemManager.cs | 10 +++++----- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/LICENSE.md b/LICENSE.md index f775688..ecbc45d 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -18,7 +18,7 @@ this list of conditions and the following disclaimers. this list of conditions and the following disclaimers in the documentation and/or other materials provided with the distribution. -* Neither the names of Merijn Hendriks, SPT-AKI, nor the names of +* SPT, nor the names of its contributors may be used to endorse or promote products derived from this Software without specific prior written permission. diff --git a/project/SPT.Custom/Patches/EasyAssetsPatch.cs b/project/SPT.Custom/Patches/EasyAssetsPatch.cs index bac4e46..87f8ae9 100644 --- a/project/SPT.Custom/Patches/EasyAssetsPatch.cs +++ b/project/SPT.Custom/Patches/EasyAssetsPatch.cs @@ -59,7 +59,7 @@ namespace SPT.Custom.Patches ? await GetManifestJson(jsonfile) : await GetManifestBundle(filepath); - // lazy-initialize aki bundles + // lazy-initialize SPT bundles if (BundleManager.Bundles.Keys.Count == 0) { await BundleManager.DownloadManifest(); diff --git a/project/SPT.PrePatch/SPTBotsPrePatcher.cs b/project/SPT.PrePatch/SPTBotsPrePatcher.cs index 0eb7a37..38bd752 100644 --- a/project/SPT.PrePatch/SPTBotsPrePatcher.cs +++ b/project/SPT.PrePatch/SPTBotsPrePatcher.cs @@ -51,7 +51,7 @@ namespace SPT.PrePatch { string errorTitle = (!launcherUsed) ? "Startup Error" : "Missing Core Files"; string errorMessage = (!launcherUsed) ? launcherError : pluginErrorMessage; - MessageBoxHelper.Show(errorMessage, $"[SPT-AKI] {errorTitle}", MessageBoxHelper.MessageBoxType.OK); + MessageBoxHelper.Show(errorMessage, $"[SPT] {errorTitle}", MessageBoxHelper.MessageBoxType.OK); Environment.Exit(0); return; } @@ -68,7 +68,7 @@ namespace SPT.PrePatch return true; } - message = "Please start SPT-AKI using Aki.Launcher.exe. Exiting."; + message = "Please start SPT using SPT.Launcher.exe. Exiting."; return false; } diff --git a/project/SPT.SinglePlayer/Patches/MainMenu/PluginErrorNotifierPatch.cs b/project/SPT.SinglePlayer/Patches/MainMenu/PluginErrorNotifierPatch.cs index 6cdaf35..eb0e5e7 100644 --- a/project/SPT.SinglePlayer/Patches/MainMenu/PluginErrorNotifierPatch.cs +++ b/project/SPT.SinglePlayer/Patches/MainMenu/PluginErrorNotifierPatch.cs @@ -54,7 +54,7 @@ namespace SPT.SinglePlayer.Patches.MainMenu Logger.LogError(errorMessage); // Show errors in the server console - ServerLog.Error("Aki.Singleplayer", errorMessage); + ServerLog.Error("SPT.Singleplayer", errorMessage); // Show an error in the in-game console, we have to write this in reverse order because the // in-game console shows newer messages at the top diff --git a/project/SPT.SinglePlayer/Utils/Insurance/InsuredItemManager.cs b/project/SPT.SinglePlayer/Utils/Insurance/InsuredItemManager.cs index 51ab664..7dac739 100644 --- a/project/SPT.SinglePlayer/Utils/Insurance/InsuredItemManager.cs +++ b/project/SPT.SinglePlayer/Utils/Insurance/InsuredItemManager.cs @@ -40,7 +40,7 @@ namespace SPT.SinglePlayer.Utils.Insurance foreach (var item in _items) { - var aki = new SPTInsuredItemClass + var spt = new SPTInsuredItemClass { id = item.Id }; @@ -49,18 +49,18 @@ namespace SPT.SinglePlayer.Utils.Insurance if (dura != null) { - aki.durability = dura.Durability; - aki.maxDurability = dura.MaxDurability; + spt.durability = dura.Durability; + spt.maxDurability = dura.MaxDurability; } var faceshield = item.GetItemComponent(); if (faceshield != null) { - aki.hits = faceshield.Hits; + spt.hits = faceshield.Hits; } - itemsToSend.Add(aki); + itemsToSend.Add(spt); } return itemsToSend;