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

Log re-added achievement values at end of game only #6058

Merged
merged 3 commits into from Apr 7, 2024

Conversation

lL1l1
Copy link
Contributor

@lL1l1 lL1l1 commented Apr 6, 2024

Description of the proposed changes

Resolves a132700#commitcomment-140697683
Only log the re-added achievement categories at the end of the game.

Testing done on the proposed changes

Add LOG(repr(ArmyScore)) after GameOverScore

fa/lua/sim/score.lua

Lines 344 to 347 in 0944ed6

GameIsOver = true
GameOverScore()
Sync.ScoreAccum = scoreData
Sync.StatsToSend = ArmyScore

Spawn SACUs, build an air factory, and build some tech 1 and tech 2 transports from it. Press end game in the main menu. The log should show how many SACU were spawned, how many transports were built, how many engineers there are (SACUs + 1 ACU), and the number of units for each tech tier.

Checklist

  • Changes are annotated, including comments where useful
  • Changes are documented in the changelog for the next game version

@Garanas
Copy link
Member

Garanas commented Apr 6, 2024

Great find 👍 , that's a lot better 😄 !

lua/sim/score.lua Outdated Show resolved Hide resolved
@Garanas Garanas merged commit d0ce4c9 into FAForever:deploy/fafdevelop Apr 7, 2024
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.

None yet

2 participants