From 9e7065a66d39d37a63769bd7efecb03b5d549eb4 Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Fri, 10 May 2024 00:10:43 -0400 Subject: [PATCH 1/3] Add a hard reference to Calamity Music Mod. It is no longer possible to play Calamity without its soundtrack. TML May Stable features allow users to seamlessly install it as a dependency. --- build.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/build.txt b/build.txt index 4ae2df0d93..e72a263356 100644 --- a/build.txt +++ b/build.txt @@ -1,6 +1,7 @@ author = Fabsol and the Dev Team version = 2.0.3.011 displayName = Calamity Mod +modReferences = CalamityModMusic homepage = https://discord.gg/calamity buildIgnore = .vs\*, Properties\*, *.csproj, *.user, obj\*, bin\*, *.config, .git\*, .github\*, LICENSE, README.md, .editorconfig, .gitignore, .gitattributes, Effects\Compiler\* hideCode = false From 3da06db952e48d355216f92e4ae70f50c6bac223 Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Fri, 10 May 2024 00:37:57 -0400 Subject: [PATCH 2/3] Properly localized Draedon's openers. --- Localization/en-US/Mods.CalamityMod.UI.hjson | 3 +++ UI/DraedonSummoning/CodebreakerUI.Communication.cs | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Localization/en-US/Mods.CalamityMod.UI.hjson b/Localization/en-US/Mods.CalamityMod.UI.hjson index 9d2b324962..3e88bfe11f 100644 --- a/Localization/en-US/Mods.CalamityMod.UI.hjson +++ b/Localization/en-US/Mods.CalamityMod.UI.hjson @@ -159,6 +159,9 @@ DebuffSystem: { // Draedon Contact UI. Repeated newlines indicate pauses in Draedon's speaking. As a result, newline characters may be explicitly defined. // The code that interprets these strings will transform them. +CommunicationStart: ... +CommunicationStartRepeat: State your inquiry. + Communication: { WhoAreYou: { Inquiry: Introduction diff --git a/UI/DraedonSummoning/CodebreakerUI.Communication.cs b/UI/DraedonSummoning/CodebreakerUI.Communication.cs index 3323354a0b..29d6133274 100644 --- a/UI/DraedonSummoning/CodebreakerUI.Communication.cs +++ b/UI/DraedonSummoning/CodebreakerUI.Communication.cs @@ -183,7 +183,7 @@ namespace CalamityMod.UI.DraedonSummoning /// /// The text Draedon starts off with when you interact with the codebreaker. The first time you see him he says nothing, but in successive calls he asks what your inquiry is. /// - public static string InquiryText => Main.LocalPlayer.Calamity().HasTalkedAtCodebreaker ? "State your inquiry." : "..."; + public static string InquiryText => CalamityUtils.GetTextValue(Main.LocalPlayer.Calamity().HasTalkedAtCodebreaker ? "UI.CommunicationStartRepeat" : "UI.CommunicationStart"); /// /// The text of the previously hovered topic option. This is used to ensure hover clicking sounds only play if the sound type changes. From 8a0b14e57d72b7c31f1cf39010abfc6d111703ae Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Fri, 10 May 2024 00:54:55 -0400 Subject: [PATCH 3/3] Added a reminder to Draedon's introduction to use Draedon's Forge. --- Localization/en-US/Mods.CalamityMod.UI.hjson | 5 +++-- UI/DraedonSummoning/CodebreakerUI.Communication.cs | 10 +++++++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/Localization/en-US/Mods.CalamityMod.UI.hjson b/Localization/en-US/Mods.CalamityMod.UI.hjson index 3e88bfe11f..ede9fc3c6a 100644 --- a/Localization/en-US/Mods.CalamityMod.UI.hjson +++ b/Localization/en-US/Mods.CalamityMod.UI.hjson @@ -159,8 +159,9 @@ DebuffSystem: { // Draedon Contact UI. Repeated newlines indicate pauses in Draedon's speaking. As a result, newline characters may be explicitly defined. // The code that interprets these strings will transform them. -CommunicationStart: ... -CommunicationStartRepeat: State your inquiry. +CommunicationStartInitial: ... +CommunicationStartNoForge: Craft something using my Forge, then return. +CommunicationStartNormal: State your inquiry. Communication: { WhoAreYou: { diff --git a/UI/DraedonSummoning/CodebreakerUI.Communication.cs b/UI/DraedonSummoning/CodebreakerUI.Communication.cs index 29d6133274..5c508b6d85 100644 --- a/UI/DraedonSummoning/CodebreakerUI.Communication.cs +++ b/UI/DraedonSummoning/CodebreakerUI.Communication.cs @@ -183,7 +183,15 @@ namespace CalamityMod.UI.DraedonSummoning /// /// The text Draedon starts off with when you interact with the codebreaker. The first time you see him he says nothing, but in successive calls he asks what your inquiry is. /// - public static string InquiryText => CalamityUtils.GetTextValue(Main.LocalPlayer.Calamity().HasTalkedAtCodebreaker ? "UI.CommunicationStartRepeat" : "UI.CommunicationStart"); + public static string InquiryText + { + get + { + var mp = Main.LocalPlayer.Calamity(); + string key = mp.HasTalkedAtCodebreaker ? (mp.HasCraftedDraedonsForge ? "UI.CommunicationStartNormal" : "UI.CommunicationStartNoForge") : "UI.CommunicationStartInitial"; + return CalamityUtils.GetTextValue(key); + } + } /// /// The text of the previously hovered topic option. This is used to ensure hover clicking sounds only play if the sound type changes.