mirror of
https://github.com/akaAgar/the-universal-mission-for-dcs-world.git
synced 2025-11-25 19:31:01 +00:00
Missions with higher cloud cover and wind speed now award more XP
This commit is contained in:
parent
a51ff5cff0
commit
3fd0d39be0
@ -78,6 +78,7 @@ Please also note that PvP is not supported at the moment and that the mission wi
|
|||||||
- [x] Helicopter hunt
|
- [x] Helicopter hunt
|
||||||
- [x] Offensive counter-air
|
- [x] Offensive counter-air
|
||||||
- Balance improvements
|
- Balance improvements
|
||||||
|
- [x] Missions with higher cloud cover and wind speed now award more XP
|
||||||
- [ ] Tweaked XP requirements for medals/promotions
|
- [ ] Tweaked XP requirements for medals/promotions
|
||||||
- Bug fixes
|
- Bug fixes
|
||||||
- [x] AWACS datalinked now showing on SA pages
|
- [x] AWACS datalinked now showing on SA pages
|
||||||
@ -87,7 +88,7 @@ Please also note that PvP is not supported at the moment and that the mission wi
|
|||||||
- Extras
|
- Extras
|
||||||
- [ ] GitHub page
|
- [ ] GitHub page
|
||||||
- Improvements
|
- Improvements
|
||||||
- [ ] Better weather reports (cloud cover, rain, etc)
|
- [x] Better weather reports (cloud cover, rain, etc)
|
||||||
- Misc
|
- Misc
|
||||||
- [x] AWACS unit now spawned when mission is loaded
|
- [x] AWACS unit now spawned when mission is loaded
|
||||||
- New features
|
- New features
|
||||||
|
|||||||
@ -300,11 +300,18 @@ do
|
|||||||
if not DCSEx.io.canReadAndWrite() then return 1.0 end -- IO disabled, career and scoring disabled
|
if not DCSEx.io.canReadAndWrite() then return 1.0 end -- IO disabled, career and scoring disabled
|
||||||
if TUM.settings.getValue(TUM.settings.id.MULTIPLAYER) then return 1.0 end -- No scoring in multiplayer
|
if TUM.settings.getValue(TUM.settings.id.MULTIPLAYER) then return 1.0 end -- No scoring in multiplayer
|
||||||
|
|
||||||
|
-- Base XP multiplier is 1.0 (100%)
|
||||||
local scoreMultiplier = 1.0
|
local scoreMultiplier = 1.0
|
||||||
|
|
||||||
|
-- Add XP multipliers for game settings
|
||||||
for _,v in pairs(TUM.settings.id) do
|
for _,v in pairs(TUM.settings.id) do
|
||||||
scoreMultiplier = scoreMultiplier + (TUM.playerScore.getScoreMultiplier(v) or 0.0)
|
scoreMultiplier = scoreMultiplier + (TUM.playerScore.getScoreMultiplier(v) or 0.0)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- Add XP multipliers for weather
|
||||||
|
scoreMultiplier = scoreMultiplier + TUM.weather.getWeatherXPModifier()
|
||||||
|
scoreMultiplier = scoreMultiplier + TUM.weather.getWindXPModifier()
|
||||||
|
|
||||||
return math.max(0.0, scoreMultiplier)
|
return math.max(0.0, scoreMultiplier)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@ -194,6 +194,10 @@ do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- Weather
|
||||||
|
summary = summary.."\n\nWEATHER: "..TUM.weather.getWeatherName().." (+"..tostring(math.ceil(TUM.weather.getWeatherXPModifier() * 100)).."% xp)"
|
||||||
|
summary = summary.."\nWIND: "..DCSEx.string.firstToUpper(TUM.weather.getWindName()).." (+"..tostring(math.ceil(TUM.weather.getWindXPModifier() * 100)).."% xp)"
|
||||||
|
|
||||||
if showScoreMultiplier then
|
if showScoreMultiplier then
|
||||||
summary = summary.."\n\nTotal XP modifier: "..tostring(math.ceil(TUM.playerScore.getTotalScoreMultiplier() * 100)).."%"
|
summary = summary.."\n\nTotal XP modifier: "..tostring(math.ceil(TUM.playerScore.getTotalScoreMultiplier() * 100)).."%"
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user