mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 16:10:53 +00:00
4a38561583
## Description: Currently, the game only recorded war gold statistics when a defender was killed as part of a territory‑annexation sequence. Regular attack eliminations did not trigger the war gold stat update. This PR: - Invokes `stats.goldWar(...)` in the standard elimination code path of `AttackExecution`, so that any kill - whether by full annexation or direct attack - correctly increments the attacker's war gold stat. - A new integration test suite `AttackStats.test.ts` covering both scenarios ## Please complete the following: - [X] I have added screenshots for all UI updates - [X] I process any text displayed to the user through translateText() and I've added it to the en.json file - [X] I have added relevant tests to the test directory - [X] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced - [X] I have read and accepted the CLA aggreement (only required once). ## Please put your Discord username so you can be contacted if a bug or regression is found: aaa4xu