mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-25 13:44:36 +00:00
fix(events): make donation received events blue instead of green
Donation events were split into DONATION_SENT/DONATION_RECEIVED, and DONATION_RECEIVED was grouped with the green "success" colors. In v31 all player donations (sent and received) were blue. Move DONATION_RECEIVED back to the blue group so both directions render blue again. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -514,7 +514,6 @@ export function getMessageTypeClasses(type: MessageType): string {
|
||||
case MessageType.SAM_HIT:
|
||||
case MessageType.CAPTURED_ENEMY_UNIT:
|
||||
case MessageType.CONQUERED_PLAYER:
|
||||
case MessageType.DONATION_RECEIVED:
|
||||
case MessageType.ALLIANCE_ACCEPTED:
|
||||
return severityColors["success"];
|
||||
case MessageType.ATTACK_FAILED:
|
||||
@@ -526,6 +525,7 @@ export function getMessageTypeClasses(type: MessageType): string {
|
||||
case MessageType.ATTACK_CANCELLED:
|
||||
case MessageType.ATTACK_REQUEST:
|
||||
case MessageType.DONATION_SENT:
|
||||
case MessageType.DONATION_RECEIVED:
|
||||
return severityColors["blue"];
|
||||
case MessageType.MIRV_INBOUND:
|
||||
case MessageType.NUKE_INBOUND:
|
||||
|
||||
Reference in New Issue
Block a user