Player score now reset in playerCareer.awardScore, added "xp added to your log" message

This commit is contained in:
Ambroise Garel 2025-07-22 13:09:00 +02:00
parent 6586b7a513
commit c263428c7b
2 changed files with 3 additions and 3 deletions

View File

@ -103,7 +103,7 @@ do
careerStats.bestSortie = math.max(careerStats.bestSortie, score)
careerStats.score = careerStats.score + score
careerStats.completedObjectives = careerStats.completedObjectives + objectives
TUM.log("Awarded "..tostring(score).." xp and "..tostring(objectives).." completed objectives to player.")
trigger.action.outText(DCSEx.string.toStringThousandsSeparator(score).." xp and "..tostring(objectives).." completed objective(s) were registered in your flight log.", 5)
local newRibbonCount = getRibbonCount()
local somethingWasAwarded = false
@ -137,6 +137,8 @@ do
TUM.playerCareer.displayMedalBox(false)
end
TUM.playerScore.reset(false)
return somethingWasAwarded
end

View File

@ -171,8 +171,6 @@ do
TUM.radio.playForAll("atcSafeLandingPlayer", {event.initiator:getCallsign(), baseName}, baseName.." ATC")
end
TUM.playerScore.reset(false)
end
-------------------------------------