This commit is contained in:
2025-12-28 16:40:03 +08:00
parent 98d88c353d
commit 17d40a2bdd
8 changed files with 61 additions and 10 deletions

View File

@@ -6,11 +6,15 @@ using WulaFallenEmpire.EventSystem.AI;
namespace WulaFallenEmpire.EventSystem.AI.LetterInterceptor
{
[HarmonyPatch(typeof(LetterStack), nameof(LetterStack.ReceiveLetter), new Type[] { typeof(Letter), typeof(string) })]
[HarmonyPatch(typeof(LetterStack), nameof(LetterStack.ReceiveLetter),
new Type[] { typeof(Letter), typeof(string), typeof(int), typeof(bool) })]
public static class Patch_LetterStack_ReceiveLetter
{
public static void Postfix(Letter let, string debugInfo)
public static void Postfix(Letter let, string debugInfo, int delayTicks, bool playSound)
{
// Only process if not delayed (delayTicks == 0 or already arrived)
if (delayTicks > 0) return;
var settings = WulaFallenEmpireMod.settings;
if (settings == null || !settings.enableAIAutoCommentary)
{