Fix for job selector on update
#10
Thanks to "transcend" from UC.
Code:
-- Spawning Jobs
-- job_id: "branchbank_cash_prof", etc
-- difficulty: "easy" *Easy*, "normal" *Normal*, "hard" *Hard*, "overkill" *Very Hard*, "overkill_145" *Overkill*
function add_job(job_id, difficulty)
local difficulty_id = tweak_data:difficulty_to_index( difficulty )
table.insert( managers.crimenet._presets, { job_id = job_id, difficulty_id = difficulty_id, difficulty = difficulty, chance = 1 } )
managers.crimenet._MAX_ACTIVE_JOBS = managers.crimenet._MAX_ACTIVE_JOBS + 1
end
-- _NEW_JOB_MIN_TIME/_NEW_JOB_MAX_TIME are a better alternative to managers.crimenet._debug_mass_spawning
managers.crimenet._NEW_JOB_MIN_TIME = 0
managers.crimenet._NEW_JOB_MAX_TIME = 0
managers.crimenet._presets = { }
managers.crimenet._active_jobs = { }
managers.crimenet._MAX_ACTIVE_JOBS = 0
add_job("welcome_to_the_jungle_prof", "overkill_145")
add_job("framing_frame", "overkill_145")
add_job("branchbank_prof", "overkill_145")
add_job("ukrainian_job_prof", "overkill_145")
add_job("watchdogs", "overkill_145")
add_job("alex", "overkill_145")
add_job("firestarter", "overkill_145")
add_job("jewelry_store", "overkill_145")
add_job("four_stores", "overkill_145")
add_job("nightclub", "overkill_145")
add_job("mallcrasher", "overkill_145")
Code:
"welcome_to_the_jungle_prof", -- (Big Oil)
"framing_frame", "framing_frame_prof",
"watchdogs", "watchdogs_prof",
"alex", "alex_prof", -- (Rats)
"firestarter", "firestarter_prof",
"ukrainian_job_prof",
"jewelry_store",
"four_stores",
"nightclub",
"mallcrasher",
"branchbank_deposit", "branchbank_cash", "branchbank_gold_prof", "branchbank_prof"