focus_tree = {
    id = old_belivers_tree
    country = {
        factor = 0
        modifier = {
            add = 10 
            tag = ROL 
        }
    }

    focus = {
        id = rol_story_1 
        icon = GFX_goal_rol_jesus
        completion_reward = {
            country_event = {
                id = old_believer_event.1
            }
        }
        x = 20
        y = 0
        cost = 7 
    }
    focus = {
        id = rol_story_2 #war for freedom 
        icon = GFX_goal_rol_jesus
        relative_position_id = rol_story_1
        prerequisite = {
            focus = rol_story_1
        }
        completion_reward = {
             country_event = {
            id = old_believer_event.2
        }
        }
       
        x = 0
        y = 1
        cost = 7
    }
    focus = {
        id = rol_story_3 
        icon = GFX_goal_rol_jesus
        relative_position_id = rol_story_2
        prerequisite = {
            focus = rol_story_2
        }
         completion_reward = {
             country_event = {
            id = old_believer_event.3
        }
    }
        x = 0
        y = 1
        cost = 7
    }
    focus = {
        id = rol_our_survival
        icon = GFX_goal_rol_door
        relative_position_id = rol_story_3
        prerequisite = {
            focus = rol_story_3
        }
        completion_reward = {
            add_offsite_building = {
                type = industrial_complex
                level = 1
            }
             add_offsite_building = {
                type = arms_factory
                level = 1
            }
        }
        x = -9
        y = 1
        cost = 30
    }
     focus = {
        id = rol_second_coalition 
        icon = GFX_goal_rol_second_coalition
        relative_position_id = rol_our_survival
        prerequisite = {
            focus = rol_our_survival
        }
        mutually_exclusive = {
            focus = rol_go_alone
        }
        available = {
            WPG = {
                has_completed_focus = wpg_form_second_coalition
            }
        }
        completion_reward = {
            WPG = {
                add_to_faction = ROL
            }
        }
        x = 1
        y = 1
        cost = 30
    }
    focus = {
        id = rol_go_alone 
        ai_will_do = {
            factor = 0
        }
        icon = GFX_goal_rol_alone
        relative_position_id = rol_second_coalition
        prerequisite = {
            focus = rol_our_survival
        }
        mutually_exclusive = {
            focus = rol_second_coalition
        }
        completion_reward = {
            add_ideas = rol_in_the_dark
        }
        x = -2
        y = 0 
        cost = 30
    }
   
    focus = {
        id = rol_end_abominations
        icon = GFX_goal_rol_kill_roach_king
        relative_position_id = rol_our_survival
        prerequisite = {
            focus = rol_second_coalition
            focus = rol_go_alone
        }
        bypass = {
            RCK = {
                ROOT = {
                    all_core_land_owned_by_prev_sphere = yes
                }
            }
        }
        completion_reward = {
            RCK = {
                ROOT = {
                    grant_wargoals_on_core_states_of_prev = yes
                }
            }
        }
        x = 0
        y = 2
        cost = 30
    }
    focus = {
        id = rol_no_more_roaches
        icon = GFX_goal_rol_cleansing_fire
        relative_position_id = rol_our_survival
        prerequisite = {
            focus = rol_end_abominations
        }
        available = {
            RCK = {
                all_core_land_owned_by_prev_sphere = yes
            }
        }
        completion_reward = {
            every_owned_state = {
                limit = {
                    is_core_of = RCK
                }
                add_core_of = ROL
            }
        }
        x = 0
        y = 3
        cost = 45
    }
    focus = {
        id = rol_tariff_the_rivers
        icon = GFX_goal_rol_disintegrate_capitalist
        relative_position_id = rol_our_survival
        prerequisite = {
            focus = rol_no_more_roaches
        }
        prerequisite = {
            focus = rol_go_alone
        }
        completion_reward = {
            set_temp_variable = {
                caps_to_add = 200
            }
            add_caps = yes
            add_offsite_building = {
                type = industrial_complex
                level = 2
            }
            1309 = {
                add_extra_state_shared_building_slots = 1
                add_building_construction = {
                    type = dockyard
                    level = 1
                }
            }
            1248 = {
                add_extra_state_shared_building_slots = 1
                add_building_construction = {
                    type = dockyard
                    level = 1
                }
            }
        }
        x = -2
        y = 4
        cost = 30
    }
    focus = {
        id = rol_collaborate_with_three_rivers
        icon = GFX_goal_rol_love_wpg
        relative_position_id = rol_our_survival
        prerequisite = {
            focus = rol_no_more_roaches
        }
        prerequisite = {
            focus = rol_second_coalition
        }
        completion_reward = {
            add_offsite_building = {
                type = industrial_complex
                level = 3
            }
            WPG = {
                add_offsite_building = {
                    type = industrial_complex
                    level = 2
                }
            }
        }
        x = 2
        y = 4
        cost = 30
    }
    focus = {
        id = rol_preachers_of_winnipeg
        icon = GFX_goal_rol_preachers
        relative_position_id = rol_our_survival
        prerequisite = {
            focus = rol_collaborate_with_three_rivers
        }
        completion_reward = {
            add_political_power = 50
            add_stability = 0.05
            WPG = {
                add_stability = 0.03
            }
        }
        x = 2
        y = 5
        cost = 30

    }
    focus = {
        id = rol_vigilance_a_virtue
        icon = GFX_goal_rol_vigilance
        relative_position_id = rol_our_survival
        prerequisite = {
            focus = rol_tariff_the_rivers
        }
        completion_reward = {
            add_war_support = 0.1
            add_ideas = rol_against_republicans
        }
        x = -2
        y = 5
        cost = 30
    }
    focus = {
        id = rol_independent_military_buildup
        icon = GFX_goal_rol_worker
        relative_position_id = rol_our_survival
        prerequisite = {
            focus = rol_vigilance_a_virtue
        }
        completion_reward = {
            1309 = {
                add_extra_state_shared_building_slots = 1
                add_building_construction = {
                    type = arms_factory
                    level = 1
                    instant_build = yes
                }
            }
            1247 = {
                add_extra_state_shared_building_slots = 1
                add_building_construction = {
                    type = arms_factory
                    level = 1
                    instant_build = yes
                }
            }
        }
        x = -3
        y = 6
        cost = 30
    }
    focus = {
        id = rol_strip_the_earth
        icon = GFX_goal_rol_strip_earth
        relative_position_id = rol_our_survival
        prerequisite = {
            focus = rol_independent_military_buildup
        }
        completion_reward = {
            1310 = {
                add_resource = {
                    type = metal 
                    amount = -5
                }
            }
            1247 = {
                add_resource = {
                    type = metal
                    amount = -3
                }
            }
            add_offsite_building = {
                type = arms_factory
                level = 3
            }
            add_stability = -0.05
        }
        x = -3
        y = 7
        cost = 30
    }

    focus = {
        id = rol_local_production
        icon = GFX_goal_rol_local_production
        relative_position_id = rol_our_survival
        prerequisite = {
            focus = rol_winnipeg_recruitment
        }
        completion_reward = {
            add_tech_bonus = {
                bonus = 0.4
                category = infantry_tech_category 
                uses = 1
            }
           add_equipment_to_stockpile = {
            type = ballistic_equipment_1
            amount = 500
            producer = USA
           }
        }
        x = -1
        y = 7
        cost = 30
    }
    focus = {
        id = rol_march_on_winnepeg
        icon = GFX_goal_rol_kill_wpg
        relative_position_id = rol_our_survival
        prerequisite = {
            focus = rol_local_production
        }
        prerequisite = {
            focus = rol_strip_the_earth
        }
        completion_reward = {
            WPG = {
                ROOT = {
                    grant_wargoals_on_core_states_of_prev = yes
                }
            }
        }
        x = -2
        y = 8
        cost = 30
    }




  
    focus = {
        id = rol_winnipeg_recruitment 
        icon = GFX_goal_rol_jesus_followers
        relative_position_id = rol_our_survival
        prerequisite = {
            focus = rol_preachers_of_winnipeg
            focus = rol_vigilance_a_virtue
        }
        completion_reward = {
            custom_effect_tooltip = rol_winnipeg_recruit_tt
            1247 = {
                add_manpower = 750
            }
            1301 = {
                add_manpower = 500
            }
            #same new advisors 
        }
        x = 0
        y = 6
        cost = 15
    }

    focus = {
        id = rol_winnipeg_arms
        icon = GFX_goal_rol_canadian_ammo
        relative_position_id = rol_our_survival
        prerequisite = {
            focus = rol_preachers_of_winnipeg
        }
        completion_reward = {
            add_equipment_to_stockpile = {
                type = ballistic_equipment_1
                amount = 750
                producer = USA
            }
            WPG = {
                add_stability = 0.05
            }
        }
        x = 3
        y = 6
        cost = 30 
    }
    focus = {#this adds a national spirit which allows you to core things easier 
        id = rol_our_own_northern_light
        icon = GFX_goal_rol_northern_lights
        relative_position_id = rol_our_survival
        prerequisite = {
            focus = rol_winnipeg_arms
        }
        completion_reward = {
            add_ideas = rol_god_in_the_north
        }
        x = 3
        y = 7
        cost = 30
        
    }
    focus = {
        id = rol_utility_of_the_faith
        icon = GFX_goal_rol_worker_factory
        relative_position_id = rol_our_survival
        prerequisite = {
            focus = rol_winnipeg_recruitment
        }
        completion_reward = {
            add_tech_bonus = {
                category = production_and_construction_category 
                bonus = 0.4
                uses = 2
            }
        }
        x = 1
        y = 7
        cost = 30
    }
    focus = {#national spirit for everyone in a faction 
        id = rol_northern_church
        icon = GFX_goal_rol_saint_herman
        relative_position_id = rol_our_survival
        prerequisite = {
            focus = rol_utility_of_the_faith
        }
        prerequisite = {
            focus = rol_our_own_northern_light
        }
        completion_reward = {
            add_ideas = rol_united_northern_church
            WPG = {
                add_ideas = rol_united_northern_church
            }
            if = {
                limit = {
                    is_in_faction_with = MTC
                }
                MTC = {
                    add_ideas = rol_united_northern_church
                }
            }
        }
        x = 2
        y = 8
        cost = 30
    }
    focus = {
        id = rol_new_world_seat
        icon = GFX_goal_rol_seats
        relative_position_id = rol_our_survival
        prerequisite = {
            focus = rol_utility_of_the_faith
        }
        prerequisite = {
            focus = rol_local_production
        }
        completion_reward = {
            1247 = {
                set_state_category = large_city
                add_manpower = 2000
                add_extra_state_shared_building_slots = 3
                add_building_construction = {
                    type = arms_factory 
                    level = 1
                    instant_build = yes
                }
                add_building_construction = {
                    type = industrial_complex
                    level = 1
                    instant_build = yes
                }
            }
        }
        x = 0
        y = 8
        cost = 30
    }
    focus = {# modifies Bohdan 
        id = rol_patriarch_of_manitoba
        icon = GFX_goal_rol_patriarch
        relative_position_id = rol_our_survival
        prerequisite = {
            focus = rol_march_on_winnepeg
        }
        prerequisite = {
            focus = rol_new_world_seat
        }
        available = {
            WPG = {
                all_core_land_owned_by_prev_sphere = yes
            }
        }
        completion_reward = {
            add_popularity = {
                ideology = ruler
                popularity = 0.4
            }
            set_politics = {
                ruling_party = ruler 

            }
            add_country_leader_trait = ROL_patriarch
            remove_ideas = rol_against_republicans
        }
        x = -2
        y = 9
        cost = 30
    }
    focus = {# adds in national spirits for everyone in a faction 
        id = rol_a_brotherhood_of_men
        icon = GFX_goal_rol_god_in_the_north
        relative_position_id = rol_our_survival
        prerequisite = {
            focus = rol_northern_church
       }
        prerequisite = {
           focus = rol_new_world_seat
       }
        completion_reward = {
            WPG = {
                 swap_ideas = {
                remove_idea = rol_united_northern_church
                add_idea = rol_united_brotherhood
            }
            }
            if = {
                limit = {
                    is_in_faction_with = MTC
                }
                MTC = {
                     swap_ideas = {
                remove_idea = rol_united_northern_church
                add_idea = rol_united_brotherhood
            }
                }
            }
            swap_ideas = {
                remove_idea = rol_united_northern_church
                add_idea = rol_united_brotherhood
            }
        }
       x = 2
        y = 9
        cost = 30 
    }
    focus = { #can also be used to change wasteland rite
        id = rol_only_one_church
        icon = GFX_goal_rol_burning_man
        relative_position_id = rol_our_survival
        prerequisite = {
            focus = rol_no_more_roaches
        }
        bypass = {
                ATM = {
                    all_core_land_owned_by_prev_sphere = yes
                }
        }
        completion_reward = {
            ATM = {
                ROOT = {
                    grant_wargoals_on_core_states_of_prev = yes
                }
            }
        }
        x = 0
        y = 4
        cost = 30
    }
    

    focus = {
        id = rol_home_far_away # national spirits and industry 
        icon = GFX_goal_rol_home_far
        relative_position_id = rol_story_3
        prerequisite = {
            focus = rol_story_3
        }
        completion_reward = {
            add_war_support = 0.025
            if = {
                limit = {
                    has_idea = rol_far_from_home_1
                }
                 swap_ideas = {
                remove_idea = rol_far_from_home_1
                add_idea = rol_far_from_home_2
                }
                }
            else = {
                swap_ideas = {
                    remove_idea = rol_far_from_home_2
                    add_idea = rol_far_from_home_3
                }
            }
           
        }
        x = -1
        y = 1
        cost = 30
    }
    focus = {
        id = rol_exiles_of_russia 
        icon = GFX_goal_rol_home_left
        relative_position_id = rol_home_far_away
        prerequisite = {
            focus = rol_story_3
        }
        completion_reward = {
            add_stability = 0.025
             if = {
                limit = {
                    has_idea = rol_far_from_home_1
                }
                 swap_ideas = {
                remove_idea = rol_far_from_home_1
                add_idea = rol_far_from_home_2
                }
                }
            else = {
                swap_ideas = {
                    remove_idea = rol_far_from_home_2
                    add_idea = rol_far_from_home_3
                }
                 }
        }
        x = 2
        y = 0
        cost = 30
    }
    focus = {
        id = rol_church_of_notre_dame
        icon = GFX_goal_rol_notre_dame
        relative_position_id = rol_home_far_away
        prerequisite = {
            focus = rol_home_far_away
        }
        prerequisite = {
            focus = rol_exiles_of_russia
        }
        available = {
            owns_state = 1247
        }
        x = 1
        y = 1
        cost = 30
        completion_reward = {
            1247 = {
            add_extra_state_shared_building_slots = 2
            add_building_construction = {
                type = industrial_complex
                level = 2
                instant_build = yes
            }
            }
            
            add_political_power = 50
        }
    }
    focus = {
        id = rol_pilgrims_river
        icon = GFX_goal_rol_pilgrims
        relative_position_id = rol_church_of_notre_dame
        prerequisite = {
            focus = rol_church_of_notre_dame
        }
        completion_reward = {
            1248 = {
                set_state_category = shanty
                add_manpower = 750
            }
            1247 = {
                add_manpower = 1000
            }
            1301 = {
                add_manpower = 500
            }
        }
        x = 0
        y = 1
        cost = 15
    }
    focus = {
        id = rol_be_fruitful 
        icon = GFX_goal_rol_fruitful
        relative_position_id = rol_church_of_notre_dame

        prerequisite = {
            focus = rol_church_of_notre_dame
        }
        completion_reward = {
            add_ideas = rol_fruitful_spirit
        }
        x = 2
        y = 1
        cost = 30
    }
    focus = {
        id = rol_be_diligent 
        icon = GFX_goal_rol_diligence
        relative_position_id = rol_church_of_notre_dame

        prerequisite = {
            focus = rol_church_of_notre_dame
        }
        completion_reward = {
            add_ideas = rol_diligent_spirit
        }
        x = -2
        y = 1
        cost = 30
    }
    focus = {
        id = rol_land_to_the_tiller
        icon = GFX_goal_rol_till_land
        relative_position_id = rol_church_of_notre_dame
        prerequisite = {
            focus = rol_be_diligent
        }
        prerequisite = {
            focus = rol_pilgrims_river
        }
        completion_reward = {
            1248 = {
                add_extra_state_shared_building_slots = 1
                add_building_construction = {
                    type = infrastructure
                    level = 1
                    instant_build = yes
                }
            }
            1247 = {
                add_extra_state_shared_building_slots = 1
                add_building_construction = {
                    type = infrastructure
                    level = 1
                    instant_build = yes
                }
            }
            1301 = {
                add_extra_state_shared_building_slots = 1
                add_building_construction = {
                    type = infrastructure
                    level = 1
                    instant_build = yes
                }
            }
        }
        x = -1
        y = 2
        cost = 30
    }
    focus = {
        id = rol_stewards_of_earth
        icon = GFX_goal_rol_steward
        relative_position_id = rol_church_of_notre_dame
        prerequisite = {
            focus = rol_be_fruitful
        }
        prerequisite = {
            focus = rol_pilgrims_river
        }
        completion_reward = {
          1248 = {
            add_resource = {
                type = water
                amount = 9
            }
          }
          1247 = {
            add_resource = {
                type = water
                amount = 6
            }
          }
          1301 = {
            add_resource = {
                type = water
                amount = 5
            }
          }
        }
        x = 1
        y = 2
        cost = 30
    }
    focus = {
        id = rol_down_by_the_river
        icon = GFX_goal_rol_boat
        relative_position_id = rol_church_of_notre_dame
        prerequisite = {
            focus = rol_be_fruitful
        }
        completion_reward = {
            1248 = {
                add_extra_state_shared_building_slots = 1
                add_building_construction = {
                    type = industrial_complex
                    level = 1
                    instant_build = yes
                }
            }
            1247 = {
                add_extra_state_shared_building_slots = 1
                add_building_construction = {
                    type = industrial_complex
                    level = 1
                    instant_build = yes
                }
            }
        }
        x = 3
        y = 2
        cost = 30
    }
    focus = {
        id = rol_forge_of_war
        icon = GFX_goal_rol_faithful_mob
        relative_position_id = rol_church_of_notre_dame
        prerequisite = {
            focus = rol_be_diligent
        }
        completion_reward = {
            1312 = {
                add_manpower = 500
                add_extra_state_shared_building_slots = 1
                add_building_construction = {
                    type = arms_factory
                    level = 1
                }
            }
        }
        x = -3
        y = 2
        cost = 30
    }
    focus = { 
        id = rol_city_upon_a_hill 
        icon = GFX_goal_rol_city_on_hill
        # unlocks decisions to attract more people to the old believers
        relative_position_id = rol_church_of_notre_dame
        prerequisite = {
            focus = rol_stewards_of_earth
        }
        prerequisite = {
            focus = rol_land_to_the_tiller
        }
        completion_reward = {
            swap_ideas = {
                remove_idea = rol_far_from_home_3
                add_idea = rol_city_on_hill
            }
           hidden_effect = {
          
           }
        }
        x = 0 
        y = 6
        cost = 45
    }
    focus = {
        id = rol_wasteland_rite
        icon = GFX_goal_rol_wasteland_rite
        relative_position_id = rol_city_upon_a_hill
        prerequisite = {
            focus = rol_city_upon_a_hill
        }
        mutually_exclusive = {
            focus = rol_orthodox_rite
        }
        cost = 45
        x = 1
        y = 1
        completion_reward = { 
            add_dynamic_modifier = { modifier = wasteland_rite }
        }
    }
    focus = {
        id = rol_orthodox_rite
        icon = GFX_goal_rol_orthodox_rite
        relative_position_id = rol_city_upon_a_hill
        prerequisite = {
            focus = rol_city_upon_a_hill
        }
        mutually_exclusive = {
            focus = rol_wasteland_rite
        }
        cost = 45
        x = -1
        y = 1
        completion_reward = {
            add_dynamic_modifier = { modifier = orthodox_rite }
         }
    }
    focus = {
        id = rol_new_baptisms
        icon = GFX_goal_rol_baptism
        relative_position_id = rol_city_upon_a_hill
        prerequisite = {
            focus = rol_wasteland_rite
            focus = rol_orthodox_rite
        }
        x = 0
        y = 2
        cost = 45 
        completion_reward = {
            add_political_power = 50
            add_manpower = 1000
        }
    }
    focus = {
        id = rol_generic_industry_civilian_1
        icon = GFX_goal_rol_industry
        prerequisite = {
            focus = rol_down_by_the_river
        }
        relative_position_id = rol_down_by_the_river
        x = 0
        y = 1
        cost = 15
        completion_reward = {
           add_offsite_building = {
                type = industrial_complex
                level = 1
            }
        }
    }
    focus = {
        id = rol_generic_industry_civilian_2
        icon = GFX_goal_rol_industry
        prerequisite = {
            focus = rol_generic_industry_civilian_1
        }
        relative_position_id = rol_generic_industry_civilian_1
        x = 1
        y = 1
        cost = 30
        completion_reward = {
            add_offsite_building = {
                type = industrial_complex
                level = 2
            }
        }
    }
    focus = {
        id = rol_generic_infrastructure
        icon = GFX_goal_rol_industry
        prerequisite = {
            focus = rol_generic_industry_civilian_1
        }
        relative_position_id = rol_generic_industry_civilian_1
        x = -1
        y = 1
        cost = 30
        completion_reward = {
            random_owned_controlled_state = {
                limit = {
                    infrastructure < 10
                    is_core_of = ROL
                }
                add_building_construction = {
                    type = infrastructure
                    level = 1
                    instant_build = yes
                }
            }
            random_owned_controlled_state = {
                limit = {
                    infrastructure < 10
                    is_core_of = ROL
                }
                add_building_construction = {
                    type = infrastructure
                    level = 1
                    instant_build = yes
                }
            }
            random_owned_controlled_state = {
                limit = {
                    infrastructure < 10
                    is_core_of = ROL
                }
                add_building_construction = {
                    type = infrastructure
                    level = 1
                    instant_build = yes
                }
            }
        }
    }
    focus = {
        id = rol_generic_industry_military_1
        icon = GFX_goal_rol_guns_generic
        relative_position_id = rol_forge_of_war
        x = 0
        y = 1
        cost = 15
        prerequisite = {
            focus = rol_forge_of_war
        }
        completion_reward = {
            add_offsite_building = {
                type = arms_factory
                level = 1
            }
        }
    }
    focus = {
        id = rol_generic_industry_military_2
        icon = GFX_goal_rol_guns_generic
        relative_position_id = rol_generic_industry_military_1
        cost = 30
        x = 1
        y = 1
        prerequisite = {
            focus = rol_generic_industry_military_1
        }
        completion_reward = { 
            add_offsite_building = {
                type = arms_factory
                level = 2
            }
        }
    }
    focus = {
        id = rol_generic_industry_military_3
        icon = GFX_goal_rol_guns_generic
        relative_position_id = rol_generic_industry_military_2
        cost = 30
        y = 0
        x = -2
        prerequisite = {
            focus = rol_generic_industry_military_1
        }
        completion_reward = {
           add_offsite_building = {
                type = arms_factory
                level = 2
            }
        }
    }

    focus = {
        id = rol_future_of_the_faith
        icon = GFX_goal_rol_jesus_pray
        relative_position_id = rol_city_upon_a_hill
        prerequisite = {
            focus = rol_new_baptisms
        }
        available = {
            OR = {
                has_completed_focus = rol_a_brotherhood_of_men
                has_completed_focus = rol_patriarch_of_manitoba
            }
        }
        completion_reward = {
            custom_effect_tooltip = choice_old_believers_tt
            if = {
                limit = {
                    has_completed_focus = rol_patriarch_of_manitoba
                }
                country_event = {
                    id = old_believer_event.4
                }
            }
            else_if = {
                limit = {
                    has_completed_focus = rol_a_brotherhood_of_men
                }
                country_event = {id = old_believer_event.5}
            }
            
        }
        x = 0
        y = 3
        cost = 30
    }
    focus = {
        id = rol_wantless_sainthood
        icon = GFX_goal_rol_wantless
        available = {
            always = no
        }
        allow_branch = {
            NOT = {
                has_completed_focus = rol_forth_rome
            }
        }
        offset = {
            trigger = {
                has_completed_focus = rol_wantless_sainthood
            }
            x = -8
            y = 0
        }
        relative_position_id = rol_future_of_the_faith
        x = 8
        y = 1
        cost = 0
        prerequisite = {
            focus = rol_future_of_the_faith
        }
        completion_reward = {
            swap_ideas = {
                remove_idea = ROL_reducing_want
                add_idea = rol_wantless_sainthood_idea
            }
            hidden_effect = {
                mark_focus_tree_layout_dirty = yes
            }
        }

        
    }
    focus = {
        id = rol_death_to_greed
        icon = GFX_goal_rol_greed
        relative_position_id = rol_wantless_sainthood
        x = 2
        y = 1
        cost = 30
        prerequisite = {
            focus = rol_wantless_sainthood
        }
        completion_reward = {
            if = {
                limit = {
                    has_completed_focus = rol_orthodox_rite
                }
                add_to_variable = {
                    rol_consumer_goods_mod = 0.05
                }
                add_to_variable = {
                    rol_factory_mod = 0.025
                }
            }
            else = {
                add_to_variable = {
                    rol_line_change_production_efficiency_mod = 0.075
                }
                add_to_variable = {
                    rol_division_org_mod = 0.05
                }
            }
            custom_effect_tooltip = rol_rite_improve_tt_death_to_world
        }
    }
     focus = {
        id = rol_death_to_pride
        icon = GFX_goal_rol_pride
        relative_position_id = rol_wantless_sainthood
        x = -2
        y = 1
        cost = 30
        prerequisite = {
            focus = rol_wantless_sainthood
        }
        completion_reward = {
            if = {
                limit = {
                    has_completed_focus = rol_orthodox_rite
                }
                subtract_from_variable = {
                    rol_consumer_goods_mod = 0.1
                }
            }
            else = {
                add_to_variable = {
                    rol_line_change_production_efficiency_mod = 0.1
                }
            }
            custom_effect_tooltip = rol_rite_improve_tt_death_to_world
        }
    }
    focus = {
        id = rol_death_to_lust
        icon = GFX_goal_rol_lust
        relative_position_id = rol_wantless_sainthood
        x = 3
        y = 2
        cost = 30
        prerequisite = {
            focus = rol_death_to_greed
        }
        completion_reward = {
            if = {
                limit = {
                    has_completed_focus = rol_orthodox_rite
                }
                add_to_variable = {
                    rol_build_slot_mod = 0.1
                }
            }
            else = {
                add_to_variable = {
                    rol_monthly_population_mod = 0.2
                }
                add_to_variable = {
                    rol_division_org_mod = 0.1
                }
            }
            custom_effect_tooltip = rol_rite_improve_tt_death_to_world
            
        }
    }
    
    focus = {
        id = rol_death_to_wrath
        icon = GFX_goal_rol_wrath
        relative_position_id = rol_wantless_sainthood
        x = -3
        y = 2
        cost = 30
        prerequisite = {
            focus = rol_death_to_pride
        }
        completion_reward = {
            if = {
                limit = {
                    has_completed_focus = rol_orthodox_rite
                }
                add_to_variable = {
                    rol_local_resource_mod = 0.1
                }
            }
            else = {
                add_to_variable = {
                    rol_special_forces_attack_mod = 0.075
                }
                add_to_variable = {
                    rol_special_forces_defence_mod = 0.075
                }
            }
            custom_effect_tooltip = rol_rite_improve_tt_death_to_world
        }
    }
    focus = {
        id = rol_death_to_envy
        icon = GFX_goal_rol_envy
        relative_position_id = rol_wantless_sainthood
        x = -1
        y = 2
        cost = 30
        prerequisite = {
            focus = rol_death_to_pride
        }
        completion_reward = {
             if = {
                limit = {
                    has_completed_focus = rol_orthodox_rite
                }
                add_to_variable = {
                    rol_local_resource_mod = 0.1
                }
                add_to_variable = {
                    rol_consumer_goods_mod = 0.05
                }
            }
            else = {
                add_to_variable = {
                    rol_research_speed_mod = 0.075
                }
            }
            custom_effect_tooltip = rol_rite_improve_tt_death_to_world
        }
    }
    focus = {
        id = rol_death_to_sloth
        icon = GFX_goal_rol_sloth
        relative_position_id = rol_wantless_sainthood
        x = 0
        y = 1
        cost = 30
        prerequisite = {
            focus = rol_wantless_sainthood
        }
        completion_reward = {
            if = {
                limit = {
                    has_completed_focus = rol_orthodox_rite
                }
                add_to_variable = {
                    rol_build_speed_mod = 0.1
                }
            }
            else = {
                add_to_variable = {
                    rol_research_speed_mod = 0.05
                }
                add_to_variable = {
                    rol_division_attack_mod = 0.05
                }
            }
            custom_effect_tooltip = rol_rite_improve_tt_death_to_world
        }
    }
   
    focus = {
        id = rol_death_to_gluttony
        icon = GFX_goal_rol_gluttony
        relative_position_id = rol_wantless_sainthood
        x = 1
        y = 2
        cost = 30
        prerequisite = {
            focus = rol_death_to_greed
        }
        completion_reward = {
            if = {
                limit = {
                    has_completed_focus = rol_orthodox_rite
                }
                subtract_from_variable = {
                    rol_consumer_goods_mod = 0.02
                }
                add_to_variable = {
                    rol_factory_mod = 0.03
                }
            }
            else = {
                add_to_variable = {
                    rol_division_org_regain_mod = 0.1
                }
            }
            custom_effect_tooltip = rol_rite_improve_tt_death_to_world
        }
    }
    focus = {
        id = rol_death_to_the_world
        icon = GFX_goal_rol_death
        relative_position_id = rol_wantless_sainthood
        x = 0
        y = 3
        cost = 60
        prerequisite = {
            focus = rol_death_to_wrath
        }
        prerequisite = {
            focus = rol_death_to_envy
        }
        prerequisite = {
            focus = rol_death_to_sloth
        }
        prerequisite = {
            focus = rol_death_to_gluttony
        }
        prerequisite = {
            focus = rol_death_to_lust
        }
        completion_reward = {
            swap_ideas = {
                remove_idea = rol_wantless_sainthood_idea
                add_idea = rol_death_to_the_world_idea
            }
        }
    }

    focus = {
        id = rol_forth_rome
        icon = GFX_goal_rol_4th_rome
        relative_position_id = rol_city_upon_a_hill
        prerequisite = {
            focus = rol_future_of_the_faith
        }
        available = {
            always = no
        }
        allow_branch = {
            NOT = {
                has_completed_focus = rol_wantless_sainthood
            }
        }
        offset = {
            trigger = {
                has_completed_focus = rol_forth_rome
            }
            x = 8
            y = 1
        }
        completion_reward = {
            add_popularity = {
                ideology = ruler
                popularity = 0.4
            }
            set_cosmetic_tag = ROL_forthrome
            1101 = {
                add_core_of = ROL
            }   
            1108 ={
                add_core_of = ROL
                set_state_name = new_constantinople
            }
            1100 = {
                add_core_of = ROL
            }
            hidden_effect = {
                mark_focus_tree_layout_dirty = yes
            }
            
        }
        x = -8
        y = 4
        cost = 0
    }
    focus = {
        id = rol_forges_of_the_new_patriarchate
        icon = GFX_goal_rol_forge_patriarchate
        relative_position_id = rol_forth_rome
        prerequisite = {
            focus = rol_forth_rome
        }
        completion_reward = {
             1108 = {
                add_extra_state_shared_building_slots = 2
                add_building_construction = {
                    type = arms_factory
                    level = 2
                    instant_build = yes
                }
            }
            1100 = {
                add_extra_state_shared_building_slots = 2
                add_building_construction = {
                    type = arms_factory
                    level = 2
                    instant_build = yes
                }
            }
            1101 = {
                add_extra_state_shared_building_slots = 2
                add_building_construction = {
                    type = arms_factory
                    level = 2
                    instant_build = yes
                }
            }
        }
        x = 0
        y = 1
        cost = 45
    }
        focus = {
        id = rol_invade_metis
        icon = GFX_goal_rol_invade_metis
        relative_position_id = rol_forth_rome
        prerequisite = {
            focus = rol_against_the_decadent
            focus = rol_die_by_the_sword
        }
        completion_reward = {
            MTC = {
                ROOT = {
                    grant_wargoals_on_core_states_of_prev = yes
                }
            }
        }
        x = 7
        y = 4
        cost = 30 
    }
    focus = {
        id = rol_southern_lands
        icon = GFX_goal_rol_mtc_comp
        relative_position_id = rol_invade_metis
        x = -1
        y = 1
        cost = 30
        available = {
            MJW = {
                all_core_land_owned_by_prev_sphere = yes
            }
            MTC = {
                all_core_land_owned_by_prev_sphere = yes
            }
        }
        prerequisite = {
            focus = rol_invade_metis
            
        }
        prerequisite = {
            focus = rol_moose_jaw_guarentee_peace
        }
        completion_reward = {
            every_owned_state = {
                limit = {
                    is_core_of = MTC
                }
                add_compliance = 40
                add_resistance_target = -30
            }
            every_owned_state = {
                limit = {
                    is_core_of = MJW
                }
                add_core_of = ROL
            }
        }
    }
    focus = {
        id = rol_diocese_of_regina
        icon = GFX_goal_rol_mtc_dio
        relative_position_id = rol_invade_metis
        prerequisite = {
            focus = rol_southern_lands
        }
        available = {
            MTC = {
                all_core_land_owned_by_prev_sphere = yes
            }
            MJW = {
                all_core_land_owned_by_prev_sphere = yes
            }
        }
        completion_reward = {
            if = {
                limit = {
                    has_completed_focus = rol_orthodox_rite

                }
                add_to_variable = {
                    rol_build_speed_mod = 0.05
                }
                add_to_variable = {
                    rol_factory_mod = 0.02
                }
                subtract_from_variable = {
                    rol_consumer_goods_mod = 0.03
                }
                add_to_variable = {
                    rol_build_slot_mod = 0.05
                }
            }
            else = {
                add_to_variable = {
                    rol_division_defense_mod = 0.05
                }
                add_to_variable = {
                    rol_research_speed_mod = 0.03
                }
            }
            custom_effect_tooltip = rol_rite_improve_tt
            1319 = {
                add_core_of = ROOT
                add_extra_state_shared_building_slots = 2
                add_building_construction = {
                    type = industrial_complex
                    level = 2
                    instant_build = yes
                }
            }
            set_temp_variable = { core_cost_var = -0.50 }
			MTC = {
				ROOT = {
					decrease_coring_cost_for_prev_cores = yes
				}
			}
            MJW = {
				ROOT = {
					decrease_coring_cost_for_prev_cores = yes
				}
			}
            hidden_effect = {
				every_state = {
					limit = {
						is_core_of = MTC
					}
					set_variable = {
						coring_cost_targeted_state_factor@ROOT = core_cost_var
					}
				}
                every_state = {
                    limit = {
                        is_core_of = MJW
                    }
                    set_variable = {
                        coring_cost_targeted_state_factor@ROOT = core_cost_var
                    }
                }
			}
        }
        x = -1
        y = 2
        cost = 30
    }
    focus = {
        id = rol_diocese_of_new_constantinople
        icon = GFX_goal_rol_diocese_wpg
        relative_position_id = rol_forth_rome
        prerequisite = {
            focus = rol_forges_of_the_new_patriarchate
        }
        completion_reward = {
            custom_effect_tooltip = rol_rite_improve_tt
            if = {
                limit = {
                    has_completed_focus = rol_orthodox_rite

                }
                add_to_variable = {
                    rol_build_speed_mod = 0.05
                }
                add_to_variable = {
                    rol_factory_mod = 0.05
                }
                subtract_from_variable = {
                    rol_consumer_goods_mod = 0.05
                }
            }
            else = {
                add_to_variable = {
                    rol_division_defense_mod = 0.05
                }
                add_to_variable = {
                    rol_monthly_population_mod = 0.2
                }
                add_to_variable = {
                    rol_research_speed_mod = 0.05
                }
            }
            
             set_temp_variable = { core_cost_var = -0.50 }
			WPG = {
				ROOT = {
					decrease_coring_cost_for_prev_cores = yes
				}
			}
            
            hidden_effect = {
				every_state = {
					limit = {
						is_core_of = WPG
					}
					set_variable = {
						coring_cost_targeted_state_factor@ROOT = core_cost_var
					}
				}
			}
        }
        x = 0
        y = 2
        cost = 30 
    }
    focus = {
        id = rol_against_the_decadent
        icon = GFX_goal_rol_cleanse_temple
        relative_position_id = rol_forth_rome
        prerequisite = {
            focus = rol_forges_of_the_new_patriarchate
        }
        available = {
            BRA = {
                BRA = {
                    all_core_land_owned_by_prev_sphere = yes
                }
                
            }
        }
        bypass = {
            BRA = {
                all_core_land_owned_by_prev_sphere = yes
            }
            DLN = {
                all_core_land_owned_by_prev_sphere = yes
            }
        }
        completion_reward = {
            add_timed_idea = {
                idea = rol_against_BRA
                days = 60
            } 
            BRA = {
                ROOT = {
                     grant_wargoals_on_core_states_of_prev = yes
                }
            }
            DLN = {
                ROOT = {
                     grant_wargoals_on_core_states_of_prev = yes
                }
            }
        }
        x = 1
        y = 3
        cost = 30 
    }
    focus = {
        id = rol_die_by_the_sword
        icon = GFX_goal_rol_die_by_sword
        relative_position_id = rol_forth_rome
        prerequisite = {
            focus = rol_forges_of_the_new_patriarchate
        }
        available = {
            DLN = {
                BRA = {
                    all_core_land_owned_by_prev_sphere = yes
                }
            }
        }
        bypass = {
            BRA = {
                all_core_land_owned_by_prev_sphere = yes
            }
            DLN = {
                all_core_land_owned_by_prev_sphere = yes
            }
        }
        completion_reward = {
            # adds a national spirit for attack aagisnt them 
            add_timed_idea = {
                idea = rol_against_DLN
                days = 60 
            }
            BRA = {
                ROOT = {
                     grant_wargoals_on_core_states_of_prev = yes
                }
            }
            DLN = {
                ROOT = {
                     grant_wargoals_on_core_states_of_prev = yes
                }
            }
        }
        x = -1
        y = 3
        cost = 30 
    }
    focus = {
        id = rol_bandits_and_the_damned
        icon = GFX_goal_rol_bandits
        relative_position_id = rol_forth_rome
        prerequisite = {
            focus = rol_against_the_decadent
            focus = rol_die_by_the_sword
        }
        bypass = {
           
                DMM = {
                    all_core_land_owned_by_prev_sphere = yes
                }
            
            
                ARB = {
                    all_core_land_owned_by_prev_sphere = yes
                }
            
        }
        completion_reward = {
            DMM = {
                ROOT = {
                    grant_wargoals_on_core_states_of_prev = yes
                }
            }
            ARB = {
                ROOT = {
                    grant_wargoals_on_core_states_of_prev = yes
                }
            }
        }
        x = 3
        y = 4
        cost = 30 
    }
    focus = {
        id = rol_angers_legacy
        icon = GFX_goal_rol_arb_comp
        relative_position_id = rol_forth_rome
        prerequisite = {
            focus = rol_bandits_and_the_damned
        }
        completion_reward = {
            every_owned_state = {
                limit = {
                    is_core_of = DMM
                }
                add_compliance = 40
                add_resistance_target = -30
            }
            every_owned_state = {
                limit = {
                    is_core_of = ARB
                }
                add_compliance = 40
                add_resistance_target = -30
            }
        }
        x = 3
        y = 5
        cost = 30
    }
    focus = {
        id = rol_glorious_constantinople
        icon = GFX_goal_rol_glorious
        relative_position_id = rol_forth_rome
        x = 0
        y = 6
        cost = 90
        available = {
            owns_state = 1108
        }
        prerequisite = {
            focus = rol_diocese_of_brandon
        }
        prerequisite = {
            focus = rol_diocese_of_langenburg
        }
        prerequisite = {
            focus = rol_diocese_of_new_constantinople
        }
        select_effect = {
           add_timed_idea = {
            idea = rol_massive_fund
            days = 240
           }
           1108 = {
                set_state_category = megalopolis
            }
        }
        completion_reward = {
            1108 = {
                set_state_category = prewar_megacity
            }
        }
        
        
    }
    focus = {
        id = rol_furthur_development
        icon = GFX_goal_rol_more_developement
        relative_position_id = rol_forth_rome
        prerequisite = {
            focus = rol_forges_of_the_new_patriarchate
        }
        available = {
            1101 ={
                is_owned_by = ROL
            }
            1108 = {
                is_owned_by = ROL
            }
            1100 = {
                is_owned_by = ROL
            }
        }
        completion_reward = {
            1101 ={
                add_extra_state_shared_building_slots = 2
                add_building_construction = {
                    type = infrastructure
                    level = 1
                    instant_build = yes
                }
                add_building_construction = {
                    type = industrial_complex
                    level = 1
                    instant_build = yes
                }
            }
            1108 = {
                add_extra_state_shared_building_slots = 2
                add_building_construction = {
                    type = infrastructure
                    level = 1
                    instant_build = yes
                }
                add_building_construction = {
                    type = industrial_complex
                    level = 1
                    instant_build = yes
                }
            }
            1100 = {
                add_extra_state_shared_building_slots = 2
                add_building_construction = {
                    type = infrastructure
                    level = 1
                    instant_build = yes
                }
                add_building_construction = {
                    type = industrial_complex
                    level = 1
                    instant_build = yes
                }
            }
        }
        x = 2
        y = 2
        cost = 30 
    }
    focus = {
        id = rol_cathedral_school_of_winnipeg
        icon = GFX_goal_rol_jesus_carpenter
        relative_position_id = rol_glorious_constantinople
        y = 1
        x = 2
        prerequisite = {
            focus = rol_glorious_constantinople
        }
        select_effect = {
            add_timed_idea = {
                idea = rol_uni_fund
                days = 120
            }
        }
        cost = 60
        completion_reward = {
            set_technology = {
				habitation_tech_level_scientific = 1
			}
        }
    }
    focus = {
        id = rol_unity_of_industry
        icon = GFX_goal_rol_creation
        relative_position_id = rol_glorious_constantinople
        prerequisite = {
            focus = rol_glorious_constantinople
        }
        cost = 60
        x = -2
        y = 1
        available = {
            NOT = {
                has_idea = rol_massive_fund
            }
        }
        select_effect = {
            add_timed_idea = {
                idea = rol_massive_fund
                days = 120
            }
        }
        completion_reward = { 
            set_technology = {
                exploitation_tech_level_scientific = 1
            }
        }
    }
    
    focus = {
        id = rol_hagia_sophia
        icon = GFX_goal_rol_hagia
        relative_position_id = rol_forth_rome
        available = {
            owns_state = 1108
        }
        prerequisite = {
            focus = rol_churches_of_the_patriarchate
        }
       
        completion_reward = {
            1108 = {
                add_dynamic_modifier = {
                    modifier = hagia_sophia 
                }
            }
        }
        x = 0
        y = 8
        cost = 60
    }
    focus = {
        id = rol_churches_of_the_patriarchate
        icon = GFX_goal_rol_churches_patr
        relative_position_id = rol_diocese_of_new_constantinople
        x = 0
        y = 5
        cost = 45
        prerequisite = {
            focus = rol_glorious_constantinople
        }
        prerequisite = {
            focus = rol_diocese_of_angers
        }
        prerequisite = {
            focus = rol_diocese_of_hudson
        }
        prerequisite = {
            focus = rol_diocese_of_saskatoon
        }
        prerequisite = {
            focus = rol_diocese_of_regina
        }
        completion_reward = {
            # unlocks decisions which allows you to build the local churches
        }

    }
    focus = {
        id = rol_of_bread_and_wine
        icon = GFX_goal_rol_feed_5000
        relative_position_id = rol_forth_rome
        prerequisite = {
            focus = rol_forges_of_the_new_patriarchate
        }
        available = {
            owns_state = 1100
            owns_state = 1108
            owns_state = 1101
        }
        completion_reward = {
            1100 = {
                add_resource = {
                    type = water
                    amount = 9
                }
                add_resource = {
                    type = energy
                    amount = 5
                }
            }
            1108 = {
                add_resource = {
                    type = water
                    amount = 11
                }
                add_resource = {
                    type = energy
                    amount = 10
                }
            }
            1101 = {
                add_resource = {
                    type = water
                    amount = 9
                }
                add_resource = {
                    type = energy
                    amount = 5
                }
            }
        }
        x = -2
        y = 2
        cost = 30
    }
    focus = {
        id = rol_moose_jaw_guarentee_peace
        icon = GFX_goal_rol_peace_shepard
        relative_position_id = rol_forth_rome

        prerequisite = {
            focus = rol_die_by_the_sword
            focus = rol_against_the_decadent
        }
        completion_reward = {
           annex_country = {
            target = MJW
           }
           every_state = {
            limit = {
                is_core_of = MJW
            }
            add_dynamic_modifier = {
                modifier = moose_jaw_peace
            } 
           }
        }
        x = 5
        y = 4
        cost = 30
    }

    focus = {
        id = rol_baptisms_of_the_elites
        icon = GFX_goal_rol_bra_comp
        relative_position_id = rol_forth_rome
        prerequisite = {
            focus = rol_against_the_decadent
            focus = rol_die_by_the_sword
        }
        available = {
            BRA = {
                all_core_land_owned_by_prev_sphere = yes
            }
        }
        completion_reward = {
            every_owned_state = {
                limit = {
                    is_core_of = BRA
                }
                add_compliance = 40
                add_resistance_target = -30
            }
        }
        x = 1
        y = 4
        cost = 30
    }
    focus = {
        id = rol_diocese_of_brandon
        icon = GFX_goal_rol_bra_dio
        relative_position_id = rol_forth_rome
        prerequisite = {
            focus = rol_baptisms_of_the_elites
        }

        completion_reward = {
            custom_effect_tooltip = rol_rite_improve_tt
            1105 = {
                add_core_of = ROOT
                add_extra_state_shared_building_slots = 2
                add_building_construction = {
                    type = industrial_complex
                    level = 2
                    instant_build = yes
                }
            }
             set_temp_variable = { core_cost_var = -0.50 }
			BRA = {
				ROOT = {
					decrease_coring_cost_for_prev_cores = yes
				}
			}
            if = {
                limit = {
                    has_completed_focus = rol_orthodox_rite
                }
                subtract_from_variable = {
                    rol_consumer_goods_mod = 0.03
                }
                add_to_variable = {
                    rol_local_resource_mod = 0.05
                }
                add_to_variable = {
                    rol_build_slot_mod = 0.05
                }
            }
            else = {
                add_to_variable = {
                    rol_research_speed_mod = 0.05
                }
                add_to_variable = {
                    rol_division_org_mod = 0.075
                }
            }
            
            hidden_effect = {
				every_state = {
					limit = {
						is_core_of = BRA
					}
					set_variable = {
						coring_cost_targeted_state_factor@ROOT = core_cost_var
					}
				}
			}
        }
        x = 1
        y = 5
        cost = 45

    }
    focus = {
        id = rol_preaching_to_the_choir
        icon = GFX_goal_rol_dln_comp
        relative_position_id = rol_forth_rome
        prerequisite = {
            focus = rol_against_the_decadent
            focus = rol_die_by_the_sword
        }
        available = {
            DLN = {
                all_core_land_owned_by_prev_sphere = yes
            }
        }
        completion_reward = {
            every_owned_state = {
                limit = {
                    is_core_of = DLN
                }
                add_compliance = 40
                add_resistance_target = -30
            }
        }
        x = -1 
        y = 4
        cost = 30 
        
    }
    focus = {
        id = rol_diocese_of_langenburg
        icon = GFX_goal_rol_dln_dio
        relative_position_id = rol_forth_rome
        prerequisite = {
            focus = rol_preaching_to_the_choir
        }
        
        completion_reward = {
            if = {
                limit = {
                    has_completed_focus = rol_orthodox_rite
                }
                subtract_from_variable = {
                    rol_consumer_goods_mod = 0.03
                }
                add_to_variable = {
                    rol_factory_mod = 0.04
                }
            }
            else = {
                add_to_variable = {
                    rol_special_forces_attack_mod = 0.1
                }
                add_to_variable = {
                    rol_division_org_mod = 0.075
                }
                add_to_variable = {
                    rol_special_forces_defence_mod = 0.1
                }
            }
            custom_effect_tooltip = rol_rite_improve_tt
            1328 = {
                add_core_of = ROOT
                add_extra_state_shared_building_slots = 2
                add_building_construction = {
                    type = industrial_complex
                    level = 2
                    instant_build = yes
                }
            }
            set_temp_variable = { core_cost_var = -0.50 }
            DLN = {
                ROOT = {
                    decrease_coring_cost_for_prev_cores = yes
                }
            }
            hidden_effect = {
                every_state = {
                    limit = {
                        is_core_of = DLN
                    }
                    set_variable = {
                        coring_cost_targeted_state_factor@ROOT = core_cost_var
                    }
                }
            }
        }
        x = -1
        y = 5
        cost = 45

    }
    focus = {
        id = rol_this_beautiful_earth
        icon = GFX_goal_rol_red_blizzard
        relative_position_id = rol_forth_rome
        prerequisite = {
            focus = rol_against_the_decadent
            focus = rol_die_by_the_sword
        }
        available = {
            BRA = {
                all_core_land_owned_by_prev_sphere = yes
            }
            DLN = {
                all_core_land_owned_by_prev_sphere = yes
            }
        }
        bypass = {
            TPA = {
                all_core_land_owned_by_prev_sphere = yes
            }
            RRR = {
                all_core_land_owned_by_prev_sphere = yes
            }
        }
        completion_reward = {
            TPA = {
                ROOT = {
                    grant_wargoals_on_core_states_of_prev = yes
                }
            }
            RRR = {
                ROOT = {
                    grant_wargoals_on_core_states_of_prev = yes
                }
            }
        }
        x = -3
        y = 4
        cost = 30 
    }
    focus = {
        id = rol_kiss_the_leper_clean
        icon = GFX_goal_rol_hud_comp
        relative_position_id = rol_forth_rome
        prerequisite = {
            focus = rol_this_beautiful_earth
        }
        available = {
            RRR = {
                all_core_land_owned_by_prev_sphere = yes
            }
            TPA = {
                all_core_land_owned_by_prev_sphere = yes
            }
        }
        completion_reward = {
            every_owned_state = {
                limit = {
                    is_core_of = RRR
                }
                add_compliance = 40
                add_resistance_target = -30
            }
            every_owned_state = {
                limit = {
                    is_core_of = TPA
                }
                add_compliance = 40
                add_resistance_target = -30
            }
        }
        x = -3
        y = 5
        cost = 30
    }
    focus = {
        id = rol_diocese_of_hudson 
        icon = GFX_goal_rol_hud_dio
        relative_position_id = rol_kiss_the_leper_clean
        x = 0
        y = 1
        cost = 30
        prerequisite = {
            focus = rol_kiss_the_leper_clean
        }
        completion_reward = {
            custom_effect_tooltip = rol_rite_improve_tt
            1358 = {
                add_core_of = ROOT
                set_state_name = Hudson
                add_extra_state_shared_building_slots = 2
                add_building_construction = {
                    type = industrial_complex
                    level = 2
                    instant_build = yes
                }
            }
            if ={
                limit = {
                    has_completed_focus = rol_orthodox_rite
                }
                add_to_variable = {
                    rol_local_resource_mod = 0.05
                }
              
            }
            else = {
                add_to_variable = {
                    rol_monthly_population_mod = 0.1
                }
                add_to_variable = {
                    rol_research_speed_mod = 0.02
                }
                add_to_variable = {
                    rol_division_org_regain_mod = 0.05
                }
            }
            
            set_temp_variable = {
                core_cost_var = -0.50
            }
            RRR = {
				ROOT = {
					decrease_coring_cost_for_prev_cores = yes
				}
			}
            TPA = {
                ROOT = {
					decrease_coring_cost_for_prev_cores = yes
				}
            }
            hidden_effect = {
                 every_state = {
                    limit = {
                        is_core_of = TPA
                    }
                    set_variable = {
                        coring_cost_targeted_state_factor@ROOT = core_cost_var
                    }
                }
                every_state = {
                    limit = {
                        is_core_of = RRR
                    }
                    set_variable = {
                        coring_cost_targeted_state_factor@ROOT = core_cost_var
                    }
                }
            }
        }
    }
    focus = {
        id = rol_diocese_of_angers
        icon = GFX_goal_rol_arb_dio
        relative_position_id = rol_angers_legacy
        x = 0
        y = 1
        cost = 30
        prerequisite = {
            focus = rol_angers_legacy
        }
        completion_reward = {
            if = {
                limit = {
                    has_completed_focus = rol_orthodox_rite
                }
                subtract_from_variable = {
                    rol_consumer_goods_mod = 0.03
                }
                add_to_variable = {
                    rol_factory_mod = 0.05
                }
                add_to_variable = {
                    rol_build_speed_mod = 0.05
                }

            }
            else = {
                add_to_variable = {
                    rol_special_forces_attack_mod = 0.05
                }
                add_to_variable = {
                    rol_special_forces_defense_mod = 0.05
                }
                add_to_variable = {
                    rol_line_change_production_efficiency_mod = 0.05
                }
            }
            custom_effect_tooltip = rol_rite_improve_tt
            1175 = {
                add_core_of = ROOT
                add_extra_state_shared_building_slots = 2
                add_building_construction = {
                    type = industrial_complex
                    level = 2
                    instant_build = yes
                }
            }
                set_temp_variable = { core_cost_var = -0.50 }
			DMM = {
				ROOT = {
					decrease_coring_cost_for_prev_cores = yes
				}
			}
            ARB = {
				ROOT = {
					decrease_coring_cost_for_prev_cores = yes
				}
			}

            hidden_effect = {
				every_state = {
					limit = {
						is_core_of = DMM
					}
					set_variable = {
						coring_cost_targeted_state_factor@ROOT = core_cost_var
					}
				}
                every_state = {
                    limit = {
                        is_core_of = ARB
                    }
                    set_variable = {
                        coring_cost_targeted_state_factor@ROOT = core_cost_var
                    }
                }
			}
            
        }
    }
    focus = {
        id = rol_bloodied_heresy
        icon = GFX_goal_rol_cannibals
        relative_position_id = rol_forth_rome
        prerequisite = {
            focus = rol_against_the_decadent
            focus = rol_die_by_the_sword
        }
        mutually_exclusive = {
            focus = rol_most_honorable_of_god
        }
        available = {
            BRA = {
                all_core_land_owned_by_prev_sphere = yes
            }
            DLN = {
                all_core_land_owned_by_prev_sphere = yes
            }
        }
        completion_reward = {
            STN = {
                ROOT = {
                    grant_wargoals_on_core_states_of_prev = yes
                }
            }
            PLT = {
                ROOT = {
                    grant_wargoals_on_core_states_of_prev = yes
                }
            }
            DUN = {
                ROOT = {
                    grant_wargoals_on_core_states_of_prev = yes
                }
            }
        }
        x = -5
        y = 4
        cost = 30 
    }
    focus = {
        id = rol_most_honorable_of_god
        icon = GFX_goal_rol_honorable
        relative_position_id = rol_forth_rome
        prerequisite = {
            focus = rol_against_the_decadent
            focus = rol_die_by_the_sword
        }
        available = {
            STN = {
                has_country_leader = {
				character = STN_daniel
				ruling_only = yes
			}
            }
        }
         mutually_exclusive = {
            focus = rol_bloodied_heresy
        }
        completion_reward = {
            diplomatic_relation = {
                country = STN
                relation = non_aggression_pact
            }
            STN = {
                add_political_power = 150
            }
        }
        x = -7
        y = 4
        cost = 30
    }
    focus = {
        id = rol_diocese_of_saskatoon
        icon = GFX_goal_rol_stn_dio
        relative_position_id = rol_forth_rome
        prerequisite = {
            focus = rol_blood_and_madness
        }
        completion_reward = {
             custom_effect_tooltip = rol_rite_improve_tt
            1188 = {
                set_state_name = Saskatoon
            }
            if = {
                limit = {
                    has_completed_focus = rol_orthodox_rite
                }
                add_to_variable = {
                    rol_local_resource_mod = 0.05
                }
                add_to_variable = {
                    rol_factory_mod = 0.02
                }
                add_to_variable = {
                    rol_build_speed_mod = 0.05
                }
            }
            else = {
                add_to_variable = {
                    rol_special_forces_attack_mod = 0.05
                }
                add_to_variable = {
                    rol_special_forces_defence_mod = 0.05
                }
            }
            set_temp_variable = {
                core_cost_var = -0.50
            }
            DUN = {
				ROOT = {
					decrease_coring_cost_for_prev_cores = yes
				}
			}
            STN = {
                ROOT = {
					decrease_coring_cost_for_prev_cores = yes
				}
            }
            PLT = {
                ROOT = {
					decrease_coring_cost_for_prev_cores = yes
				}
            }
            hidden_effect = {
                 every_state = {
                    limit = {
                        is_core_of = DUN
                    }
                    set_variable = {
                        coring_cost_targeted_state_factor@ROOT = core_cost_var
                    }
                }
                every_state = {
                    limit = {
                        is_core_of = STN
                    }
                    set_variable = {
                        coring_cost_targeted_state_factor@ROOT = core_cost_var
                    }
                }
                 every_state = {
                    limit = {
                        is_core_of = PLT
                    }
                    set_variable = {
                        coring_cost_targeted_state_factor@ROOT = core_cost_var
                    }
                }
            }
            1188 = {
                add_core_of = ROOT
                add_extra_state_shared_building_slots = 2
                add_building_construction = {
                    type = industrial_complex
                    level = 2
                    instant_build = yes
                }
            }
           
            
        }
        x = -6
        y = 6
        cost = 30
    }
    focus = {
        id = rol_blood_and_madness #misnomer
        icon = GFX_goal_rol_stn_comp
        relative_position_id = rol_bloodied_heresy
        x = -1
        y = 1
        cost =30 
        prerequisite = {
            focus = rol_bloodied_heresy
            focus = rol_most_honorable_of_god
        }
        available = {
            STN = {
                all_core_land_owned_by_prev_sphere = yes
            }
            DUN = {
                all_core_land_owned_by_prev_sphere = yes
            }
            PLT = {
                all_core_land_owned_by_prev_sphere = yes
            }
        }
        
        completion_reward = {
            if = {
                limit = {
                    has_completed_focus = rol_bloodied_heresy
                }
                country_event = {
                    id = old_believer_event.6
                }
            }
            else_if = {
                limit = { 
                    has_completed_focus = rol_most_honorable_of_god
                }
                country_event = {
                    id = old_believer_event.7
                }
            }
        }

    }
    
    focus = {
        id = rol_military
        relative_position_id = rol_story_3
        icon = GFX_goal_rol_military
        prerequisite = {
            focus = rol_story_3
        }
        completion_reward = {
            add_manpower = 500
            army_experience = 10
        }
        x = 9
        y = 1
        cost = 30
    }
    focus = {
        id = rol_lords_army
        relative_position_id = rol_military
        icon = GFX_goal_rol_lords_army
        prerequisite = {
            focus = rol_military
        }
        completion_reward = {
            add_ideas = rol_lords_inf
        }
        x = 1
        y = 1
        cost = 30
    }
    focus = {# I guess add some debuffs?
        id = rol_scarce_recruitment
        icon = GFX_goal_rol_recruitment
        relative_position_id = rol_military
        prerequisite = {
            focus = rol_military
        }
        completion_reward = {
            swap_ideas = {
                remove_idea = rol_scarce_military
                add_idea = rol_scarce_military_reduced
            }
        }
        x = -1
        y = 1
        cost = 30
    }
    focus = {#this is military factories 
        id = rol_faithful_militarization
        icon = GFX_goal_rol_faithful_mob
        relative_position_id = rol_military
        prerequisite = {
            focus = rol_lords_army
        }
        completion_reward = {
            random_owned_controlled_state = {
                add_extra_state_shared_building_slots = 2
                add_building_construction = {
                    type = arms_factory
                    level = 2
                    instant_build = yes
                }
            }
        }
        x = 1
        y = 2
        cost = 30
    }
    focus = {
        id = rol_knights_of_god
        relative_position_id = rol_military
        icon = GFX_goal_rol_knights_of_god
        prerequisite = {
            focus = rol_scarce_recruitment
        }
        completion_reward = {
           swap_ideas = {
                remove_idea = rol_scarce_military_reduced
                add_idea = rol_knights
            }
            add_tech_bonus = {
                category = infantry_weapons_tech_category
                bonus = 0.5
                uses = 1
            }
        }
        x = -1
        y = 2
        cost = 30 
    }
    focus = {
        id = rol_who_does_not_work
        icon = GFX_goal_rol_work
        relative_position_id = rol_military
        prerequisite = {
            focus = rol_military
        }
        completion_reward = {
            1247 = {
                add_resource = {
                    type = metal
                    amount = 9
                }
            }
            add_tech_bonus = {
                category = extraction_category 
                bonus = 0.6
                uses = 1
            }
        }
        x = 3
        y = 1
        cost = 30
    }
    focus = {
        id = rol_smiths_of_devotion
        icon = GFX_goal_rol_bible_gun
        relative_position_id = rol_military
        prerequisite = {
            focus = rol_who_does_not_work
        }
        completion_reward = {
            add_equipment_to_stockpile = {
                type = ballistic_equipment_1
                amount = 500
                producer = USA
            }
        }
        x = 3
        y = 2
        cost = 15

    }
    focus = {
        id = rol_warrior_priests
        icon = GFX_goal_rol_warrior_priest
        relative_position_id = rol_military
        prerequisite = {
            focus = rol_military
        }
        completion_reward = {
            add_manpower = 500
            add_stability = -0.05
            add_war_support = 0.1
        }
        x = -3
        y = 1
        cost = 30
    }
    focus = {
        id = rol_a_healing_touch
        icon = GFX_goal_rol_healing_touch
        relative_position_id = rol_military
        prerequisite = {
            focus = rol_warrior_priests
        }
        completion_reward = {
            add_tech_bonus = {
                category = support_medical_tech_category
                bonus = 0.5
                uses = 1
            }
        }
        x = -3
        y = 2
        cost = 15
    }
    focus = {
        id = rol_praise_the_lord_and_pass_the_ammunition 
        icon = GFX_goal_rol_machinegunner
        relative_position_id = rol_military
        prerequisite = {
            focus = rol_knights_of_god
        }
        prerequisite = {
            focus = rol_faithful_militarization
        }
        completion_reward = {
            add_ideas = rol_pass_the_ammunition
        }
        x = 0
        y = 3
        cost = 30
    }
    focus = {
        id = rol_those_so_vibrant
        icon = GFX_goal_rol_those_vibrant
        relative_position_id = rol_military
        available = {
                ATM = {
                    all_core_land_owned_by_prev_sphere = yes
                }
        }
        prerequisite = {
            focus = rol_faithful_militarization
        }
        completion_reward = {
            if = {
                limit = {
                    has_completed_focus = rol_wasteland_rite
                }
                add_to_variable = {
                    rol_division_attack_mod = 0.075
                }
                add_to_variable = {
                    rol_division_org_regain_mod = 0.1
                }
            }
            else = {
                1302 = {
                    add_resource = {
                        type = energy
                        amount = 10
                    }
                }
            }

            1302 = {
                add_core_of = ROL
            }
        }
        x = 2
        y = 3
        cost = 30
    }
    focus = {
        id = rol_varangians_of_manitoba
        icon = GFX_goal_rol_varangians
        relative_position_id = rol_military
        prerequisite = {
            focus = rol_knights_of_god
        }
        completion_reward = {
            custom_effect_tooltip = varangains_tt
            hidden_effect = {
                 load_oob = rol_varangians_oob
            }
           
        }
        x = -2
        y = 3
        cost = 30
    }

    focus = {
        id = rol_rivers_of_the_rus
        icon = GFX_goal_rol_boat
        relative_position_id = rol_military
        prerequisite = {
            focus = rol_varangians_of_manitoba
        }
        available = {
            has_completed_focus = rol_no_more_roaches
        }
        completion_reward = {
            1309 = {
                add_extra_state_shared_building_slots = 1
                add_building_construction = {
                    type = dockyard
                    level = 1
                    instant_build = yes
                }
               
            }
             add_tech_bonus = {
                    category = naval_tech_category
                    bonus = 0.4
                    uses = 2
                }
        }
        x = -2
        y = 4
        cost = 30
    }
    focus = {
        id = rol_safe_guard_river
        icon = GFX_goal_rol_torpedo
        relative_position_id = rol_military
        prerequisite = {
            focus = rol_rivers_of_the_rus
        }
        completion_reward = {
            1247 = {
                add_extra_state_shared_building_slots = 3
                add_building_construction = {
                    type = dockyard
                    level = 2
                    instant_build = yes
                }
            }
        }
        x = -2
        y = 5
        cost = 45
    }
    focus = {
        id = rol_fires_of_faith
        icon = GFX_goal_rol_fire_cross
        relative_position_id = rol_military
        prerequisite = {
            focus = rol_those_so_vibrant

            focus = rol_praise_the_lord_and_pass_the_ammunition
        }
        completion_reward = {
            1302 = {
                add_resource = {
                    type = metal
                    amount = 7
                }
                add_resource = {
                    type = energy
                    amount = 5
                }
                add_extra_state_shared_building_slots = 1
                add_building_construction = {
                    type = arms_factory
                    level = 1
                    instant_build = yes
                }
            }
        }
        x = 2
        y = 4
        cost = 30
    }
    focus = {# knight buffs
        id = rol_elevate_the_Druzhina
        icon = GFX_goal_rol_druzhina
        relative_position_id = rol_military
        prerequisite = {
            focus = rol_varangians_of_manitoba
            focus = rol_praise_the_lord_and_pass_the_ammunition
        }
        completion_reward = {
            add_ideas = rol_druzhina_elevated
            add_tech_bonus = {
                category = spec_force_equipment_tech_category
                bonus = 1
                uses = 1
            }

        }
        x = 0
        y = 4
        cost = 30
    }
    focus = {#adds the final military buff 
        id = rol_crusaders_of_manitoba
        icon = GFX_goal_rol_crusaders
        relative_position_id = rol_military
        prerequisite = {
            focus = rol_elevate_the_Druzhina

        }
        prerequisite = {
            focus = rol_fires_of_faith
        }
        completion_reward = {
            hidden_effect = {
            remove_ideas = rol_druzhina_elevated
            remove_ideas = rol_lords_inf
            remove_ideas = rol_pass_the_ammunition
            swap_ideas = {
                remove_idea = rol_knights
                add_idea = rol_crusaders
            }
            }
            custom_effect_tooltip = merge_rol_army_tt

            
        }
        x = 1
        y = 5
        cost = 30
    }




}