mirror of
https://github.com/GoodStartLabs/AI_Diplomacy.git
synced 2026-04-19 12:58:09 +00:00
fix prompt errors & add per-power prompt dir functionality
This commit is contained in:
parent
22cf3202c7
commit
7edc7c465f
11 changed files with 160 additions and 112 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue