missionHasUserSettingsUnlocked
Definition
-- @/lua/ge/extensions/gameplay/missions/progress.lua:1033
M.missionHasUserSettingsUnlocked = function(missionId)
local mission = gameplay_missions_missions.getMissionById(missionId)
if not mission then
plog("E", "", "Trying to missionHasUserSettingsUnlocked nonexistent mission by ID: " .. dumps(id))
return false
end
-- allow userSettings if in freeroam always
if not career_career or not career_career.isActive() then
return true
end
-- allow usersettings if no stars are set up for this mission always
if not next(mission.careerSetup._activeStarCache.defaultStarKeysSorted) then
return true
end
--return mission.saveData.userSettingsUnlocked or false
return true
end
Callers
@/lua/ge/extensions/gameplay/markerInteraction.lua
unlocks = m.unlocks,
hasUserSettingsUnlocked = gameplay_missions_progress.missionHasUserSettingsUnlocked(m.id),
devMission = m.devMission,
@/lua/ge/extensions/gameplay/missions/missionScreen.lua
unlocks = m.unlocks,
hasUserSettingsUnlocked = gameplay_missions_progress.missionHasUserSettingsUnlocked(m.id),
devMission = m.devMission,