Keep defender-victim opinions as allies after a quarrel.

The clash penalty applied to every pair except defender looking at the victim, so the person being helped disliked the defender like a second enemy.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Leonid Pershin
2026-08-20 18:15:55 +03:00
co-authored by Cursor
parent 15017ad9a6
commit 9972b30257
4 changed files with 83 additions and 5 deletions
+10
View File
@@ -52,6 +52,16 @@ public class ConflictTests
Assert.True(restored <= baseline);
}
[Fact]
public void QuarrelOpinion_IsStrongerThanRudeTalk()
{
var (catalog, _) = Fixtures.Vanilla();
var quarrel = -Conflict.QuarrelOpinionDelta(catalog.BehaviorRules);
var rude = Math.Abs(catalog.Topics["TopicRude"].OpinionShift);
Assert.True(quarrel > rude);
Assert.True(-Conflict.FightOpinionDelta(catalog.BehaviorRules) > quarrel);
}
[Fact]
public void Catalog_HasNoHealthNeed()
{