qoala / InvisibleInc-CommunityBugFixes

1 stars 0 forks source link

Alarm-wheel tooltip incorrectly claims extended campaign "Advanced Security Level" #61

Closed qoala closed 2 years ago

qoala commented 2 years ago

The description of the next alarm level is accurate, but it shouldn't claim "new security measures are active" during the early part of the campaign.

qoala commented 2 years ago

https://discord.com/channels/313015356052471828/313015598789427202/934235694883291136

In hud/hud.lua

local tip = STRINGS.UI.ADVANCED_ALARM_TOOLTIP
if params.missionEvents and params.missionEvents.advancedAlarm then
  tip =STRINGS.UI.ADVANCED_ALARM_TOOLTIP
end

Also, change the hardcoded "Every 5" to checking simdefs.TRACKER_INCREMENT for PE compatibility.