创建了 ArachnaeSwarmSettings.cs - 包含 enableDebugLogs 字段

 创建了 ArachnaeLog.cs - 中央化日志类,仅检查mod设置(不检查DevMode)
 创建了 ArachnaeSwarmMod.cs - Mod主类,提供UI设置选项
 修改了 MainHarmony.cs - 移除重复的Harmony初始化(现在由ArachnaeSwarmMod处理)
 修改了 .csproj - 添加了3个新文件到编译列表
 替换了所有582个 Log.Message/Error/Warning 调用为 ArachnaeLog.Debug()
This commit is contained in:
2025-12-15 13:11:45 +08:00
parent 8e5cbb1b15
commit 675ac8b298
77 changed files with 731 additions and 673 deletions

View File

@@ -1,4 +1,4 @@
using System.Collections.Generic;
using System.Collections.Generic;
using RimWorld;
using UnityEngine;
using Verse;
@@ -33,7 +33,7 @@ namespace ArachnaeSwarm
Wula_BeamPierce_Extension props = Props;
if (props == null)
{
Log.Error("Projectile_WulaBeam requires a Wula_BeamPierce_Extension in its def.");
ArachnaeLog.Debug("Projectile_WulaBeam requires a Wula_BeamPierce_Extension in its def.");
Destroy(DestroyMode.Vanish);
return;
}

View File

@@ -333,7 +333,7 @@ namespace ArachnaeSwarm
bool flag2 = flag;
if (flag2)
{
Log.Error("TargetTakeDamage has null caster or target");
ArachnaeLog.Debug("TargetTakeDamage has null caster or target");
}
else
{