Skip to content

Diplomacy Tab#103

Merged
1brucben merged 7 commits into
v0.2.0from
diplomacytab
Nov 19, 2025
Merged

Diplomacy Tab#103
1brucben merged 7 commits into
v0.2.0from
diplomacytab

Conversation

@1brucben
Copy link
Copy Markdown
Owner

This pull request introduces a new "Declare War" feature to the game, expanding the diplomacy system and user interface. Players can now explicitly declare war on other players who are not currently allies or enemies, both through the radial menu and the new Diplomacy tab in the control panel. The backend supports this intent with schema updates and a new execution class, and the UI includes improved visual feedback and management tools for embargos. Below are the most important changes grouped by theme.

Gameplay & Diplomacy System:

  • Added support for a new DeclareWarIntent and corresponding execution logic, allowing players to declare war on others who are neither allies nor enemies. This includes schema updates, backend handling, and mutual war/aggression recording. [1] [2] [3] [4] [5] [6] [7] [8]
  • Updated GameRunner and player interaction logic to expose the canDeclareWar flag, ensuring the option is only available when appropriate.

User Interface Enhancements:

  • Added a "Diplomacy" tab to ControlPanel2 showing lists of players at war, allied, or neutral, and integrated embargo management buttons ("Embargo All" and "Remove All Embargos"). [1] [2] [3] [4] [5] [6]
  • Improved the radial menu to support "Declare War" actions, including a new war icon and conditional display logic for peace/war options. [1] [2] [3] [4]

Gameplay Mechanics Updates:

  • Modified attack and MIRV execution logic to ensure war status is enforced for targeting and launching attacks, and to automatically declare war/aggression when a MIRV is launched. [1] [2]

Event Handling:

  • Added a new SendDeclareWarIntentEvent and integrated it into the transport/event bus system for client-server communication. [1] [2] [3]

Miscellaneous:

  • Minor UI and codebase updates to support new features and improve maintainability, including imports and style changes.

Let me know if you have questions about how the new Declare War feature works, or if you want to walk through the flow from UI to backend!

@1brucben 1brucben merged commit adf71f3 into v0.2.0 Nov 19, 2025
4 of 7 checks passed
@El-Magico777 El-Magico777 added this to the v0.1.11 milestone Feb 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants