#include "levels.lua"

MissionsFP = {}

-- 1
MissionsFP["bluetide"] = {
	level = "bluetide",
	title = "loc@MISSION_BLUETIDE_TITLE",
	mapDesc = "loc@MISSION_BLUETIDE_MAPDESC",
	securityTitle = "loc@MISSION_BLUETIDE_SECTITLE",
	securityDesc = "loc@MISSION_BLUETIDE_SECDESC",
	desc = "loc@MISSION_BLUETIDE_DESC",
	primary = 1,
	secondary = 2,
	required = 1,
	sidemission = true,
	bonus = {},
	reward = 7500,
	w = 518,
	h = 60,
}

-- 2
MissionsFP["paperboy"] = {
	level = "paperboy",
	title = "loc@MISSION_HONEST_WORK_TITLE",
	desc = "loc@MISSION_HONEST_WORK_DESC",
	mapDesc = "loc@MISSION_HONEST_WORK_MAPDESC",
	securityTitle = "",
	securityDesc = "",
	primary = 5,
	secondary = 0,
	required = 5,
	sidemission = true,
	bonus = {},
	reward = 7500,
	w = 518,
	h = 60,
}

-- 3
MissionsFP["camera"] = {
	level = "camera",
	title = "loc@MISSION_CAMERA_TITLE",
	mapDesc = "loc@MISSION_CAMERA_MAPDESC",
	targetsFailedReason = "fail_integrity",
	securityTitle = "loc@MISSION_CAMERA_SECTITLE",
	securityDesc = "loc@MISSION_CAMERA_SECDESC",
	desc = "loc@MISSION_CAMERA_DESC",
	primary = 3,
	secondary = 1,
	required = 3,
	sidemission = true,
	bonus = {},
	reward = 10000,
	w = 518,
	h = 60,
}

-- 4
MissionsFP["bjorn_revenge"] = {
	level = "bjorn_revenge",
	title = "loc@MISSION_BJORN_REVENGE_TITLE",
	mapDesc = "loc@MISSION_BJORN_REVENGE_MAPDESC",
	securityTitle = "loc@SECURITYTITLE_FIRE_ALARM_WIRED_ALARM_BOXES",
	securityDesc = "loc@SECURITYDESC_FIRE_ALARM_WIRED_ALARM_BOXES",
	desc = "loc@MISSION_BJORN_REVENGE_DESC",
	primary = 4,
	secondary = 0,
	required = 4,
	sidemission = true,
	bonus = {},
	reward = 12000,
	w = 518,
	h = 60,
    needLobbyReload = true,
}

-- 5
MissionsFP["demolish"] = {
	level = "demolish",
	title = "loc@MISSION_DEMOLISH_TITLE",
	mapDesc = "loc@MISSION_DEMOLISH_MAPDESC",
	securityTitle = "loc@SECURITYTITLE_GUARD_ROBOTS",
	securityDesc = "loc@SECURITYDESC_FIRE_ALARM_GUARD_ROBOTS",
	desc = "loc@MISSION_DEMOLISH_DESC",
	primary = 2,
	secondary = 0,
	required = 2,
	sidemission = true,
	bonus = {},
	reward = 14000,
	w = 518,
	h = 60,
}

for _, v in pairs(MissionsFP) do
	v.layers = gFrLevels[v.level].bake_layers
	v.file = gFrLevels[v.level].path
    for i = 1, 2 do
        local level = gFrLevels[v.level .. "_" .. i]
        if not level then break end

        v["layers_" .. i] = level.bake_layers
        v["file_" .. i] = level.path
    end
end
