fix prompt errors & add per-power prompt dir functionality

This commit is contained in:
sam-paech 2025-07-04 11:31:57 +10:00
parent 22cf3202c7
commit 7edc7c465f
11 changed files with 160 additions and 112 deletions

View file

@ -363,7 +363,10 @@ class StatisticalGameAnalyzer:
# Categorize by relationship
recipient = msg.get('recipient_power')
normalized_recipient = self._normalize_recipient_name(recipient)
try:
normalized_recipient = PowerEnum(recipient).value
except ValueError:
normalized_recipient = None
# Skip self-messages and invalid recipients
if normalized_recipient and normalized_recipient != power and normalized_recipient in relationships: