;--------------------------------------------------------------------------------------------------
; ASSAULT TERRITORY FOR MONOLITH TASK-

[pri_monolith_monolith_trader_stalker_task_1]
icon = ui_inGame2_Odin_vistrel
prior = 2
storyline = false
title = pri_monolith_monolith_trader_stalker_task_1_name
descr = pri_monolith_monolith_trader_stalker_task_1_text
job_descr = pri_monolith_monolith_trader_stalker_task_1_about
task_complete_descr = pri_monolith_monolith_trader_stalker_task_1_finish
repeat_timeout = 43200
target_functor = general_under_faction_control
status_functor = check_smart_under_faction_control_staged
status_functor_params = stalker,army,freedom,dolg,killer,csky,bandit
stage_complete = 1
on_init = %=find_smart_under_faction_control_ex(pri_monolith_monolith_trader_stalker_task_1_id:stalker:army:freedom:dolg:killer:csky:bandit)%
precondition = {=all_avail_smart_stayed_squad_count_ge_by_faction_ex(1:nil:false:stalker:army:freedom:dolg:killer:csky:bandit)} true, false
on_complete = %=complete_task_inc_goodwill(50:monolith) =reward_random_money(9000:12000) =reward_stash(true) =inc_task_stage(pri_monolith_monolith_trader_stalker_task_1) =pstor_reset(pri_monolith_monolith_trader_stalker_task_1_id) =pstor_reset(pri_monolith_monolith_trader_stalker_task_1_target_id)%
on_fail = %=pstor_reset(pri_monolith_monolith_trader_stalker_task_1_id) =pstor_reset(pri_monolith_monolith_trader_stalker_task_1_target_id) =fail_task_dec_goodwill(25:monolith)%
on_cancel = %=pstor_reset(pri_monolith_monolith_trader_stalker_task_1_id) =pstor_reset(pri_monolith_monolith_trader_stalker_task_1_target_id)%


;--------------------------------------------------------------------------------------------------
; ASSASSINATION FOR MONOLITH TASK-

[pri_monolith_monolith_trader_stalker_task_2]
icon = ui_inGame2_Odin_vistrel
prior = 40
storyline = false
title = pri_monolith_monolith_trader_stalker_task_2_name
descr = pri_monolith_monolith_trader_stalker_task_2_text
job_descr = pri_monolith_monolith_trader_stalker_task_2_about
task_complete_descr = pri_monolith_monolith_trader_stalker_task_2_finish
precondition = true
repeat_timeout = 43200
status_functor = bounty_task
target_functor = general_bounty_task
stage_complete = 1
on_job_descr = %=on_init_bounty_hunt(pri_monolith_monolith_trader_stalker_task_2:stalker:army:freedom:dolg:killer:csky:bandit)%
on_complete = %=reward_random_money(11000:13000) =reward_stash(true) =inc_task_stage(pri_monolith_monolith_trader_stalker_task_2) =complete_task_inc_goodwill(50:monolith)%


;--------------------------------------------------------------------------------------------------
; FIND WEAPON FOR MONOLITH TASK-

[pri_monolith_monolith_trader_stalker_task_3]
icon = ui_inGame2_Osobiy_zakaz
prior = 50
storyline = false
title = pri_monolith_monolith_trader_stalker_task_3_name
title_functor = general_fetch_task
descr = pri_monolith_monolith_trader_stalker_task_3_text
descr_functor = general_fetch_task
job_descr = pri_monolith_monolith_trader_stalker_task_3_about
fetch_descr = pri_monolith_monolith_trader_stalker_task_3_fetch_about
fetch_func = %=setup_weapon_fetch_task(pri_monolith_monolith_trader_stalker_task_3_fetch)%
stage_complete = 1
status_functor = actor_has_fetch_item
target_functor = general_fetch_task
task_complete_descr = pri_monolith_monolith_trader_stalker_task_3_fetch_finish
; precondition = true
repeat_timeout = 43200
on_complete = %=complete_task_inc_goodwill(50:monolith) =reward_weapon_cost_mult_and_remove(pri_monolith_monolith_trader_stalker_task_3_fetch:1) =reward_stash(true) =inc_task_stage(pri_monolith_monolith_trader_stalker_task_3)%
on_fail = %=fail_task_dec_goodwill(25:monolith)%


;--------------------------------------------------------------------------------------------------
; FIND MUTANT MEAT FOR MONOLITH TASK-

[pri_monolith_monolith_trader_stalker_task_4]
icon = ui_inGame2_Nochnaya_ohota
prior = 60
storyline = false
title = pri_monolith_monolith_trader_stalker_task_4_name
title_functor = general_fetch_task
descr = pri_monolith_monolith_trader_stalker_task_4_text
descr_functor = general_fetch_task
job_descr = pri_monolith_monolith_trader_stalker_task_4_about
fetch_descr = pri_monolith_monolith_trader_stalker_task_4_fetch_about
fetch_func = %=setup_generic_fetch_task_random(pri_monolith_monolith_trader_stalker_task_4_fetch:2:4:mutant_part_boar_chop:mutant_part_dog_meat:mutant_part_flesh_meat:mutant_part_psevdodog_meat:mutant_part_krovosos_meat:mutant_part_chimera_meat)%
stage_complete = 1
; precondition = true
repeat_timeout = 21600
status_functor = actor_has_fetch_item
target_functor = general_fetch_task
task_complete_descr = pri_monolith_monolith_trader_stalker_task_4_fetch_finish
on_complete = %=complete_task_inc_goodwill(50:monolith) =reward_and_remove(pri_monolith_monolith_trader_stalker_task_4_fetch:3) =reward_stash(true) =inc_task_stage(pri_monolith_monolith_trader_stalker_task_4)%


; --------------------------------------------------------------------------------------------------
; FIND SUPPLIES FOR MONOLITH TASK-

[pri_monolith_monolith_trader_stalker_task_5]
icon = ui_inGame2_PD_Opitniy_stalker
prior = 75
repeat_timeout = 21600
storyline = false
title = pri_monolith_monolith_trader_stalker_task_5_name
title_functor = general_fetch_task
descr = pri_monolith_monolith_trader_stalker_task_5_text
descr_functor = general_fetch_task
job_descr = pri_monolith_monolith_trader_stalker_task_5_about
fetch_descr = pri_monolith_monolith_trader_stalker_task_5_fetch_about
fetch_func = %=setup_supplies_fetch_task(pri_monolith_monolith_trader_stalker_task_5_fetch:2:5)%
stage_complete = 1
status_functor = actor_has_fetch_item
target_functor = general_fetch_task
task_complete_descr = pri_monolith_monolith_trader_stalker_task_5_fetch_finish
; precondition = {=random_chance(60)} true, false
on_complete = %=reward_random_item(equ_small_pack:ammo_5.45x39_fmj:ammo_5.56x45_ss190:ammo_12x70_buck:ammo_11.43x23_fmj:ammo_7.62x39_fmj:ammo_12x70_buck) =reward_and_remove(pri_monolith_monolith_trader_stalker_task_5_fetch:0.8) =reward_stash(true) =inc_task_stage(pri_monolith_monolith_trader_stalker_task_5) =pstor_reset(pri_monolith_monolith_trader_stalker_task_5_fetch)%


;--------------------------------------------------------------------------------------------------
; FIND ARTEFACT FOR MONOLITH TASK-

[pri_monolith_monolith_trader_stalker_task_6]
icon = ui_inGame2_Kontrakt_s_uchenimi
prior = 90
storyline = false
title = pri_monolith_monolith_trader_stalker_task_6_name
title_functor = general_fetch_task
descr = pri_monolith_monolith_trader_stalker_task_6_text
descr_functor = general_fetch_task
job_descr = pri_monolith_monolith_trader_stalker_task_6_about
fetch_descr = pri_monolith_monolith_trader_stalker_task_6_fetch_about
fetch_func = %=setup_artefact_fetch_task(pri_monolith_monolith_trader_stalker_task_6_fetch)%
stage_complete = 1
status_functor = actor_has_fetch_item
target_functor = general_fetch_task
task_complete_descr = pri_monolith_monolith_trader_stalker_task_6_fetch_finish
; precondition = true
repeat_timeout = 64800
on_complete = %=complete_task_inc_goodwill(50:monolith) =reward_stash(true) =reward_item_cost_mult_and_remove(pri_monolith_monolith_trader_stalker_task_6_fetch:0.75) =inc_task_stage(pri_monolith_monolith_trader_stalker_task_6)%
on_fail = %=fail_task_dec_goodwill(25:monolith)%

;--------------------------------------------------------------------------------------------------
; FIND LEVEL 1 TOOLKIT FOR CLERIC TASK-

[pri_monolith_monolith_mechanic_stalker_task_1]
icon = ui_inGame2_Instrumenti
prior = 10
storyline = false
title = pri_monolith_monolith_mechanic_stalker_task_1_name
title_functor = general_fetch_task
descr = pri_monolith_monolith_mechanic_stalker_task_1_text
descr_functor = general_fetch_task
job_descr = pri_monolith_monolith_mechanic_stalker_task_1_about
fetch_descr = pri_monolith_monolith_mechanic_stalker_task_1_fetch_about
fetch_func = %=setup_generic_fetch_task(pri_monolith_monolith_mechanic_stalker_task_1_fetch:1:itm_repairkit_tier_1)%
stage_complete = 1
status_functor = actor_has_fetch_item
target_functor = general_fetch_task
task_complete_descr = pri_monolith_monolith_mechanic_stalker_task_1_fetch_finish
on_complete = %+pri_monolith_monolith_mechanic_stalker_upgrade_tier_1 =complete_task_inc_goodwill(50:monolith) =reward_item_cost_mult_and_remove(pri_monolith_monolith_mechanic_stalker_task_1_fetch:0.8) =inc_task_stage(pri_monolith_monolith_mechanic_stalker_task_1)%
precondition = {-pri_monolith_monolith_mechanic_stalker_upgrade_tier_1} true, false


;--------------------------------------------------------------------------------------------------
; FIND LEVEL 2 TOOLKIT FOR CLERIC TASK-

[pri_monolith_monolith_mechanic_stalker_task_2]
icon = ui_inGame2_Instrumenti
prior = 10
storyline = false
title = pri_monolith_monolith_mechanic_stalker_task_2_name
title_functor = general_fetch_task
descr = pri_monolith_monolith_mechanic_stalker_task_2_text
descr_functor = general_fetch_task
job_descr = pri_monolith_monolith_mechanic_stalker_task_2_about
fetch_descr = pri_monolith_monolith_mechanic_stalker_task_2_fetch_about
fetch_func = %=setup_generic_fetch_task(pri_monolith_monolith_mechanic_stalker_task_2_fetch:1:itm_repairkit_tier_2)%
stage_complete = 1
status_functor = actor_has_fetch_item
target_functor = general_fetch_task
task_complete_descr = pri_monolith_monolith_mechanic_stalker_task_2_fetch_finish
on_complete = %+pri_monolith_monolith_mechanic_stalker_upgrade_tier_2 =complete_task_inc_goodwill(50:monolith) =reward_item_cost_mult_and_remove(pri_monolith_monolith_mechanic_stalker_task_2_fetch:0.8) =inc_task_stage(pri_monolith_monolith_mechanic_stalker_task_2)%
precondition = {+pri_monolith_monolith_mechanic_stalker_upgrade_tier_1 -pri_monolith_monolith_mechanic_stalker_upgrade_tier_2} true, false


;--------------------------------------------------------------------------------------------------
; FIND LEVEL 3 TOOLKIT FOR CLERIC TASK-

[pri_monolith_monolith_mechanic_stalker_task_3]
icon = ui_inGame2_Instrumenti
prior = 10
storyline = false
title = pri_monolith_monolith_mechanic_stalker_task_3_name
title_functor = general_fetch_task
descr = pri_monolith_monolith_mechanic_stalker_task_3_text
descr_functor = general_fetch_task
job_descr = pri_monolith_monolith_mechanic_stalker_task_3_about
fetch_descr = pri_monolith_monolith_mechanic_stalker_task_3_fetch_about
fetch_func = %=setup_generic_fetch_task(pri_monolith_monolith_mechanic_stalker_task_3_fetch:1:itm_repairkit_tier_3)%
stage_complete = 1
status_functor = actor_has_fetch_item
target_functor = general_fetch_task
task_complete_descr = pri_monolith_monolith_mechanic_stalker_task_3_fetch_finish
on_complete = %+pri_monolith_monolith_mechanic_stalker_upgrade_tier_3 =complete_task_inc_goodwill(50:monolith) =reward_item_cost_mult_and_remove(pri_monolith_monolith_mechanic_stalker_task_3_fetch:0.8) =inc_task_stage(pri_monolith_monolith_mechanic_stalker_task_3)%
precondition = {+pri_monolith_monolith_mechanic_stalker_upgrade_tier_2 -pri_monolith_monolith_mechanic_stalker_upgrade_tier_3} true, false
