This commit is contained in:
2026-02-24 12:02:38 +08:00
parent 1af5f0c1d8
commit 96bc1d4c5a
57 changed files with 6595 additions and 1170 deletions

View File

@@ -127,16 +127,10 @@ namespace WulaFallenEmpire
// 播放声音
Props.sound.PlayOneShot(soundInfo);
soundPlayed = true;
// 调试日志
if (Prefs.DevMode)
{
WulaLog.Debug($"Played spawn sound: {Props.sound.defName} for {parent.Label} at {parent.Position}");
}
}
catch (System.Exception ex)
{
WulaLog.Debug($"Error playing spawn sound for {parent.Label}: {ex}");
Log.Error($"Error playing spawn sound for {parent.Label}: {ex}");
}
}
@@ -162,10 +156,6 @@ namespace WulaFallenEmpire
{
PlaySound();
}
else
{
WulaLog.Debug("No sound defined for CompPlaySoundOnSpawn");
}
}
};