mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-25 21:24:36 +00:00
Record human/nation/bot conquests (#2949)
## Description: Conquests are currently mixing all player types. This is not ideal as people wonders why a 50 player game can lead to hundred of kills. Having separate records can also help with achievements and better balancing. This PR splits the conquests record into 3 categories: human, nations and bots. It is linked to this infra PR: https://github.com/openfrontio/infra/pull/246 <img width="895" height="497" alt="image" src="https://github.com/user-attachments/assets/66e49100-8114-4406-84ab-d9627355956d" /> While the recorded data make a distinction between bots/nations, it's only displayed here as a single "bot" category. ## 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 ## Please put your Discord username so you can be contacted if a bug or regression is found: IngloriousTom
This commit is contained in:
@@ -149,7 +149,7 @@ export class PlayerStatsTreeView extends LitElement {
|
||||
attacks: this.mergeStatArrays(base.attacks, next.attacks),
|
||||
betrayals: this.mergeStatValue(base.betrayals, next.betrayals),
|
||||
killedAt: this.mergeStatValue(base.killedAt, next.killedAt),
|
||||
conquests: this.mergeStatValue(base.conquests, next.conquests),
|
||||
conquests: this.mergeStatArrays(base.conquests, next.conquests),
|
||||
boats: this.mergeStatRecord(base.boats, next.boats),
|
||||
bombs: this.mergeStatRecord(base.bombs, next.bombs),
|
||||
gold: this.mergeStatArrays(base.gold, next.gold),
|
||||
@@ -203,7 +203,7 @@ export class PlayerStatsTreeView extends LitElement {
|
||||
attacks: stats.attacks ? [...stats.attacks] : undefined,
|
||||
betrayals: stats.betrayals,
|
||||
killedAt: stats.killedAt,
|
||||
conquests: stats.conquests,
|
||||
conquests: stats.conquests ? [...stats.conquests] : undefined,
|
||||
boats: stats.boats ? { ...stats.boats } : undefined,
|
||||
bombs: stats.bombs ? { ...stats.bombs } : undefined,
|
||||
gold: stats.gold ? [...stats.gold] : undefined,
|
||||
|
||||
Reference in New Issue
Block a user