Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: utf-8 for i18n, new report for start of scenario on acar, player name, misc #5622

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Scoppio
Copy link
Collaborator

@Scoppio Scoppio commented Jan 2, 2025

Fixes:

  • Forces resource bundle for the Internationalization file to read file as UTF-8.
  • Player name will show in the ACAR reports as the name of the company instead of self.
  • Starting scenario phase opens with a report on the setup of each formation.
  • Small fix for formation skill values.

…acar, fix for formation values and player name on acar
@Scoppio Scoppio self-assigned this Jan 2, 2025
@@ -35,5 +36,9 @@
getSimulationManager().calculatePlayerInitialCounts();
getSimulationManager().getGame().setupTeams();
getSimulationManager().getGame().setupDeployment();

var reporter = new StartingScenarioPhaseReporter(getSimulationManager().getGame(), getSimulationManager()::addReport);

Check notice

Code scanning / CodeQL

Unread local variable Note

Variable 'StartingScenarioPhaseReporter reporter' is never read.
}
}

private void playerFinalReport(Player player) {

Check notice

Code scanning / CodeQL

Useless parameter Note

The parameter 'player' is never used.
Comment on lines +71 to +75
var playerEntities = game.getInGameObjects().stream()
.filter(e -> e.getOwnerId() == player.getId())
.filter(Entity.class::isInstance)
.map(Entity.class::cast)
.toList();

Check notice

Code scanning / CodeQL

Unread local variable Note

Variable 'toList playerEntities' is never read.
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 10.02%. Comparing base (465a50e) to head (e84fa81).
Report is 31 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #5622      +/-   ##
============================================
- Coverage     10.04%   10.02%   -0.02%     
+ Complexity     6073     6066       -7     
============================================
  Files          1074     1075       +1     
  Lines        141557   141644      +87     
  Branches      20639    20650      +11     
============================================
- Hits          14215    14202      -13     
- Misses       125974   126069      +95     
- Partials       1368     1373       +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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