This commit is contained in:
2025-12-13 16:12:11 +08:00
parent d477477043
commit b62a12bc36
3 changed files with 13 additions and 0 deletions

View File

@@ -129,6 +129,7 @@ namespace WulaFallenEmpire.EventSystem.AI.Tools
float baseMaxPoints = StorytellerUtility.DefaultThreatPointsNow(map);
float adjustedMaxPoints = baseMaxPoints * goodwillFactor * 1.5f;
Log.Message($"[WulaAI] send_reinforcement: totalCost={totalCost}, adjustedMaxPoints={adjustedMaxPoints}");
if (totalCost > adjustedMaxPoints)
{
return $"Error: Total cost {totalCost} exceeds limit {adjustedMaxPoints:F0}. Reduce unit count.";