mirror of
https://github.com/akaAgar/the-universal-mission-for-dcs-world.git
synced 2025-11-25 19:31:01 +00:00
Player score now reset in playerCareer.awardScore, added "xp added to your log" message
This commit is contained in:
parent
6586b7a513
commit
c263428c7b
@ -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
|
||||
|
||||
|
||||
@ -171,8 +171,6 @@ do
|
||||
|
||||
TUM.radio.playForAll("atcSafeLandingPlayer", {event.initiator:getCallsign(), baseName}, baseName.." ATC")
|
||||
end
|
||||
|
||||
TUM.playerScore.reset(false)
|
||||
end
|
||||
|
||||
-------------------------------------
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user