This commit is contained in:
2025-12-28 16:25:20 +08:00
parent 642c204f28
commit 98d88c353d
12 changed files with 1000 additions and 1 deletions

View File

@@ -0,0 +1,28 @@
using System;
using HarmonyLib;
using RimWorld;
using Verse;
using WulaFallenEmpire.EventSystem.AI;
namespace WulaFallenEmpire.EventSystem.AI.LetterInterceptor
{
[HarmonyPatch(typeof(LetterStack), nameof(LetterStack.ReceiveLetter), new Type[] { typeof(Letter), typeof(string) })]
public static class Patch_LetterStack_ReceiveLetter
{
public static void Postfix(Letter let, string debugInfo)
{
var settings = WulaFallenEmpireMod.settings;
if (settings == null || !settings.enableAIAutoCommentary)
{
return;
}
if (let == null)
{
return;
}
AIAutoCommentary.ProcessLetter(let);
}
}
}