diff --git a/Server/src/SOR.Ai/Heuristics/ScoringFunctions.cs b/Server/src/SOR.Ai/Heuristics/ScoringFunctions.cs index 8498eda..316ced2 100644 --- a/Server/src/SOR.Ai/Heuristics/ScoringFunctions.cs +++ b/Server/src/SOR.Ai/Heuristics/ScoringFunctions.cs @@ -64,10 +64,20 @@ internal static class ScoringFunctions var arch = player.ArchSpirit; if (arch is not null) { + // HP ratio: primary survival signal. float maxHp = arch.MaxHealth ?? 1; float curHp = arch.CurrentHealth ?? 0; float ratio = maxHp > 0 ? curHp / maxHp : 0f; score += sign * (ratio * 500f); + + // Permanent stat contributions: each point of attack, defence, or + // movement on the ArchSpirit is worth scoring so that permanent + // stat-buff abilities register as a net gain after their ST cost. + // A 1-point buff costs 1 ST (−8 ResourceScore); weights are set so + // each stat point is worth more than 8 to make the ability attractive. + score += sign * (arch.Damage ?? 0) * 10f; // attack + score += sign * (arch.MaxDefense ?? 0) * 8f; // defence (armour) + score += sign * (arch.MaxMp ?? 0) * 6f; // mobility } }