### search_filters = {FOCUS_FILTER_POLITICAL}
### search_filters = {FOCUS_FILTER_RESEARCH}
### search_filters = {FOCUS_FILTER_INDUSTRY}
### search_filters = {FOCUS_FILTER_STABILITY}
### search_filters = {FOCUS_FILTER_WAR_SUPPORT}
### search_filters = {FOCUS_FILTER_MANPOWER}
### search_filters = {FOCUS_FILTER_ANNEXATION}

focus_tree = {
    id = indian_focus_goe
    
    country = {
        factor = 0
        
        modifier = {
            add = 10
            tag = RAJ
            has_dlc = "Graveyard of Empires"
        }
    }
    default = no
    continuous_focus_position = { x = 200 y = 3800 }

    focus = {
        id = RAJ_indianize_the_army
        icon = GFX_focus_RAJ_indianisation_of_army
        x = 0
        y = 0
        mutually_exclusive = { focus = RAJ_keep_british_generals }
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {
        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = { FOCUS_FILTER_MILITARY_CHARACTER }

        completion_reward = {
            IF = {
                limit = {
                    NOT = {
                        has_completed_focus = RAJ_look_to_the_past
                    }
                }
                every_army_leader = {
                    limit = {
                        has_trait = loyalty_to_india
                    }
                    add_skill_level = 1
                    random_list = {
                        seed = random 
                        25 = {
                            add_logistics = 1
                            add_attack = 1
                        }
                        25 = {
                            add_planning = 1
                            add_attack = 1
                        }
                        25 = {
                            add_defense = 1
                        }
                        25 = {
                            add_logistics = 1
                            add_attack = 1
                            add_defense = 1
                        }
                        
                    }
                }
            }
            ELSE = {
                army_experience = 50
            }
        }
    }

   focus = {
        id = RAJ_great_depression_price_controls
        icon = GFX_focus_generic_price_controls
        #prerequisite = { focus = }
        mutually_exclusive = { focus = RAJ_provincial_autonomy }
        x = -55
        y = 0
        relative_position_id = RAJ_indianize_the_army

        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        allow_branch = {
            NOT = {
                has_completed_focus = RAJ_provincial_autonomy
            }
        }

        offset = {
            x = 29
            y = 0
            trigger = {
                has_game_rule = {
                    rule = obsolete_focus_branches_visibility
                    option = HIDE
                }
                has_completed_focus = RAJ_great_depression_price_controls
            }
        }

        offset = {
            x = 15
            y = 0
            trigger = {
                has_game_rule = {
                    rule = obsolete_focus_branches_visibility
                    option = HIDE
                }
                has_completed_focus = RAJ_look_to_the_future
            }
        }

        offset = {
            x = 13
            y = 0
            trigger = {
                has_game_rule = {
                    rule = obsolete_focus_branches_visibility
                    option = HIDE
                }
                has_completed_focus = RAJ_look_to_the_past
            }
        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY FOCUS_FILTER_INDUSTRY}

        completion_reward = {
            if = {
                limit = {
                    has_idea = idea_RAJ_great_depression_1
                }
                swap_ideas = {
                    remove_idea = idea_RAJ_great_depression_1
                    add_idea = idea_RAJ_price_controls
                }
            }
            else_if = {
                limit = {
                    has_idea = idea_RAJ_great_depression_2
                }
                swap_ideas = {
                    remove_idea = idea_RAJ_great_depression_2
                    add_idea = idea_RAJ_price_controls
                }
            }
            add_political_power = 20

            hidden_effect = {
                if = {
                    limit = {
                        has_game_rule = {
                            rule = obsolete_focus_branches_visibility
                            option = HIDE
                        }
                    }
                    mark_focus_tree_layout_dirty = yes
                }
            }
        } 
    }

   focus = {
        id = RAJ_look_to_the_past
        icon = GFX_focus_generic_monarchy_1
        prerequisite = { focus = RAJ_great_depression_price_controls }

        x = -9
        y = 2
        relative_position_id = RAJ_great_depression_price_controls
        mutually_exclusive = { focus = RAJ_look_to_the_future }
        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        allow_branch = {
            NOT = { has_completed_focus = RAJ_look_to_the_future }
            NOT = { has_completed_focus = RAJ_provincial_autonomy }
        }

        offset = {
            x = 7
            y = 0
            trigger = {
                has_game_rule = {
                    rule = obsolete_focus_branches_visibility
                    option = HIDE
                }
                has_completed_focus = RAJ_look_to_the_past
            }
        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL FOCUS_FILTER_WAR_SUPPORT }

        completion_reward = {
            add_popularity = {
                ideology = neutrality
                popularity = 0.05
            }
            add_stability = 0.05
            add_war_support = 0.05
            add_political_power = 80 

            hidden_effect = {
                if = {
                    limit = {
                        has_game_rule = {
                            rule = obsolete_focus_branches_visibility
                            option = HIDE
                        }
                    }
                    mark_focus_tree_layout_dirty = yes
                }
            }
        } 
    }


   focus = {
        id = RAJ_look_to_the_future
        icon = GFX_focus_RAJ_the_other_solution
        prerequisite = { focus = RAJ_great_depression_price_controls }
        mutually_exclusive = { focus = RAJ_look_to_the_past }
        x = 22
        y = 0
        relative_position_id = RAJ_look_to_the_past

        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        allow_branch = {
            NOT = { has_completed_focus = RAJ_look_to_the_past }
            NOT = { has_completed_focus = RAJ_provincial_autonomy }
        }

        offset = {
            x = -17
            y = 0
            trigger = {
                has_game_rule = {
                    rule = obsolete_focus_branches_visibility
                    option = HIDE
                }
                has_completed_focus = RAJ_look_to_the_future
            }
        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY FOCUS_FILTER_INDUSTRY}

        completion_reward = {
            add_popularity = {
                ideology = neutrality
                popularity = 0.05
            }
            swap_ideas = {
                remove_idea = idea_RAJ_price_controls
                add_idea = idea_RAJ_price_controls_2
            }
            hidden_effect = {
                if = {
                    limit = {
                        has_game_rule = {
                            rule = obsolete_focus_branches_visibility
                            option = HIDE
                        }
                    }
                    mark_focus_tree_layout_dirty = yes
                }
            }
        } 
    }


   focus = {
        id = RAJ_lobby_parliment
        icon = GFX_focus_generic_devaluation
        prerequisite = { focus = RAJ_look_to_the_future }

        x = 2
        y = 1
        relative_position_id = RAJ_look_to_the_future

        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {
            if = {
                limit = { is_ai = no }
                ENG = {
                    has_opinion = {
                        target = ROOT
                        value > 70 # Use < or >
                    }
                }
            }

        }
        
        bypass = {
                    ENG = {
                        exists = no
                        is_subject = yes
                    }
        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL}

        completion_reward = {
            set_country_flag = RAJ_industrialists_joined_eic
            if = {
                limit = {
                    ENG = {
                        exists = yes
                        is_subject = no
                    }
                }

                ENG = {
                    country_event = { id = GOE_RAJ.31 hours = 2  }
                }
            }


        } 
    }

   focus = {
        id = RAJ_secure_weapons
        icon = GFX_focus_FIN_weapon_caches
        prerequisite = { focus = RAJ_look_to_the_past }

        x = -1
        y = 1
        relative_position_id = RAJ_look_to_the_past

        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL FOCUS_FILTER_INTERNATIONAL_TRADE}

        completion_reward = {
            IF = {
                limit = {
                    has_dlc = "Arms Against Tyranny"
                }
                add_equipment_subsidy = {
                    cic = 1000
                    equipment_type = infantry_equipment
                    seller_tags = { SOV GER JAP ITA } 
                }
                add_equipment_subsidy = {
                    cic = 1000
                    equipment_type = artillery_equipment
                    seller_tags = { SOV GER JAP ITA }
                }
                add_equipment_subsidy = {
                    cic = 1000
                    equipment_type = light_tank_chassis
                    seller_tags = { SOV GER JAP ITA } 
                }
            }
            ELSE = {
                set_country_flag = RAJ_mughal_no_aat_give_equipment
                effect_tooltip = {
                    add_equipment_to_stockpile = { 
                        type = infantry_equipment
                        amount = 4000
                        producer = SOV
                    }
                    add_equipment_to_stockpile = { 
                        type = artillery_equipment
                        amount = 800
                        producer = SOV
                    }
                }
            }

            effect_tooltip = {
                add_equipment_to_stockpile = { 
                    type = infantry_equipment
                    amount = 2000
                    producer = SOV
                }
                add_equipment_to_stockpile = { 
                    type = artillery_equipment
                    amount = 500
                    producer = SOV
                }
            }
            IF = {
                limit = {
                    has_dlc = "No Step Back"
                }
                create_equipment_variant = {
                    name = "BT-7"
                    type = light_tank_chassis_2

                   upgrades = {       
                       tank_nsb_engine_upgrade = 10
                       tank_nsb_armor_upgrade = 2 
                   }
                    modules={
                        main_armament_slot=tank_small_cannon_2
                        engine_type_slot=tank_gasoline_engine
                        turret_type_slot=tank_light_two_man_tank_turret
                        suspension_type_slot=tank_christie_suspension
                        armor_type_slot=tank_welded_armor
                    }
                    
                    model = "SOV_light_armor_entity"
                    icon = "GFX_SOV_improved_light_tank_medium" 
                }
                effect_tooltip = {
                    add_equipment_to_stockpile = {
                        type =  light_tank_chassis
                        variant_name = "BT-7"
                        amount = 100
                        producer = SOV
                    }
                }
            }
            ELSE = {
                effect_tooltip = {
                    add_equipment_to_stockpile = { 
                        type = light_tank_equipment_1 
                        amount = 100 
                        producer = SOV 
                    }
                }
            }
			custom_effect_tooltip = newline_tt
			custom_effect_tooltip = MUGHAL_divisions_spawned
        } 
    }

   focus = {
        id = RAJ_stir_unrest_in_the_north
        icon = GFX_focus_generic_support_the_left_right
        prerequisite = { focus = RAJ_look_to_the_past }

        x = 2
        y = 0
        relative_position_id = RAJ_secure_weapons

        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {
            
        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL}

        completion_reward = {
            custom_effect_tooltip = RAJ_stir_unrest_in_the_north_focus_tt
            custom_effect_tooltip = RAJ_princley_state_breakaway_tt
			hidden_effect = {
				442 = {
					set_state_flag = has_stirred_unrest
				}
				987 = {
					set_state_flag = has_stirred_unrest
				}
				988 = {
					set_state_flag = has_stirred_unrest
				}
				444 = {
					set_state_flag = has_stirred_unrest
				}
				445 = {
					set_state_flag = has_stirred_unrest
				}
				1012 = {
					set_state_flag = has_stirred_unrest
				}
			}

            add_war_support = 0.05
            if = {
                limit = {
                    987 = { is_controlled_by = ROOT }
                }

                987 = {
                    add_extra_state_shared_building_slots = 1
                    add_building_construction = {
                        type = arms_factory
                        level = 1
                        instant_build = yes
                    }
                }
            }
            set_technology = {
                tech_mountaineers = 1
                popup = no
            }
        } 
    }

   focus = {
        id = RAJ_the_mughal_uprising
        icon =GFX_focus_generic_provoke_border_clashes # 
        prerequisite = { focus = RAJ_stir_unrest_in_the_north }
		prerequisite = { focus = RAJ_secure_weapons }

        x = -1
        y = 1
        relative_position_id = RAJ_stir_unrest_in_the_north 

        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL}

        completion_reward = {
            hidden_effect = {
                every_country = {
                    limit = {
                        OR = {
                            is_in_faction_with = ENG
                            original_tag = ENG
                        }
                    }
                    set_country_flag = RAJ_mughal_was_in_faction_with_eng
                }
            }
            set_country_flag = RAJ_mughal_uprising_started
            set_country_flag = RAJ_allow_release_states
            set_country_flag = stop_unrest_events
            leave_faction = yes
            if = {
                limit = { has_idea  = idea_RAJ_price_controls }
                remove_ideas = idea_RAJ_price_controls
            }
            else = {
                effect_tooltip = {
                    remove_ideas = idea_RAJ_price_controls
                }
            }
            hidden_effect = {
                drop_cosmetic_tag = yes
                OVERLORD = {
                    set_autonomy = {
                        target=RAJ
                        autonomy_state = autonomy_free
                    }
                }


                create_dynamic_country = {
                    original_tag = RAJ
                            # copy_tag = TAG # if set, it will copy stuff from copy tag instead of original_tag
                    reserve_dynamic_country = yes
                    every_state = {
                        limit = {
                            OR = {
                                is_in_array = {
                                    array = RAJ.owned_states_at_game_start
                                    value = THIS
                                }
                                AND = {
                                    state = 992
                                    OR = {
                                        is_owned_by = RAJ
                                        is_owned_by = PREV
                                    }
                                }
                            }
                            NOT = {
                                has_state_flag = has_stirred_unrest
                            }
                        }
                        PREV = { transfer_state = PREV } 
                    }
					ROOT = {
						transfer_units_fraction = {
							target = PREV
							size = 0.5
							stockpile_ratio = 0.5
							army_ratio = 0.5
							navy_ratio = 0
							air_ratio = 0
						}
					}
					THIS = { #This effect appears to be scopeless. Sometimes.
						save_global_event_target_as = UK_INDIA
					}
                    add_dynamic_modifier = { modifier = idea_RAJ_agrarian_society }
                    add_ideas = RAJ_marginalized_muslim_community_angry
                    add_ideas = RAJ_princely_states
                    add_ideas = RAJ_risk_of_famine
                    ENG = {
                        set_autonomy = {
                            target=PREV
                            autonomy_state = autonomy_colony
                            freedom_level = 0.5 # 0-1 
                            end_wars  = yes
                            end_civil_wars = yes
                        }
                    }
                    add_to_tech_sharing_group = commonwealth_research
                    set_cosmetic_tag = RAJ_UK
                    every_army_leader = {
                        set_nationality = RAJ
                    }
                    RAJ = {
                        random_character = {
                            limit = {
                                is_character = RAJ_freeman_freeman_thomas
                            }
                            set_nationality = PREV.PREV
                        }
                        set_politics = {
                            ruling_party = neutrality
                            elections_allowed = no
                            name = RAJ_mughal_court_party
                            long_name = RAJ_mughal_court_party_long
                        }
                    }
                    promote_character = RAJ_freeman_freeman_thomas
                    set_popularities = {
                        democratic= 28 # 0.0-100
                        neutrality = 70 # 0.0-100
                        fascism = 1 # 0.0-100
                        communism = 1 # 0.0-100
                    }
                    set_politics = {
                        ruling_party = neutrality
                        elections_allowed = no
                    }
                }

                hidden_effect = {
                    if = {
                        limit = {
                            has_country_flag = RAJ_mughal_no_aat_give_equipment
                        }

                        add_equipment_to_stockpile = { 
                            type = infantry_equipment
                            amount = 4000
                            producer = SOV
                        }
                        add_equipment_to_stockpile = { 
                            type = artillery_equipment
                            amount = 800
                            producer = SOV
                        }
                    }

                    if = {
                        limit = {
                            has_completed_focus = RAJ_secure_weapons
                        }

                        add_equipment_to_stockpile = { 
                            type = infantry_equipment
                            amount = 2000
                            producer = SOV
                        }
                        add_equipment_to_stockpile = { 
                            type = artillery_equipment
                            amount = 500
                            producer = SOV
                        }

                        if = {
                            limit = {
                                has_dlc = "No Step Back"
                            }
                            set_technology = {
                                basic_light_tank_chassis = 1
                                popup = no
                            }
                            add_equipment_to_stockpile = {
                                type =  light_tank_chassis
                                variant_name = "BT-7"
                                amount = 100
                                producer = SOV
                            }
                            
                        }
                        else = {
                            set_technology = {
                                basic_light_tank = 1
                                popup = no
                            }
                            add_equipment_to_stockpile = { 
                                type = light_tank_equipment_1 
                                amount = 100 
                                producer = SOV 
                            }
                        }
                    }
                }

                # to whoever created the character system, why did you do it the way you did? - lily
                every_navy_leader = {
                    set_nationality = event_target:UK_INDIA
                }

                every_character = {
                    limit = {
                        is_advisor = yes
                        is_unit_leader = no
                        NOT = {
                            is_character = RAJ_sir_mohammed_iqbal
                            is_character = RAJ_GOE_muhammad_ali_jinnah
                            is_character = RAJ_GOE_ukkirapandi_muthuramalinga_thevar
                            is_character = RAJ_mehar_singh
                            is_character = RAJ_GOE_mughal_army_command_1
                            is_character = RAJ_GOE_mughal_army_command_2
                            is_character = RAJ_GOE_mughal_army_command_3
                            is_character = RAJ_GOE_mughal_army_command_4
                            is_character = RAJ_GOE_mughal_army_command_5
                            is_character = RAJ_GOE_mughal_theorist
                            is_character = RAJ_GOE_mughal_navy_guy
                            is_character = RAJ_GOE_mughal_air_guy  
                            is_character = RAJ_intel_generic
                            is_character = RAJ_cap_industry_mughal
                            is_character = RAJ_mughal_industrialist
                            is_character = RAJ_silent_mughal
                            is_character = RAJ_backroom_mughal
                        }
                    }
                    set_nationality = event_target:UK_INDIA
                }

                every_army_leader = {
                    limit = {
                        NOT = {
                            has_trait = loyalty_to_britain
                            has_trait = loyalty_to_india
                        }
                    }
                    set_nationality = RAJ
                }

                retire_country_leader = yes
				
                division_template = {
                    name = "Princely Personal Guard"
                    is_locked = yes
                    priority = 0 # optional 
                    regiments = {
                        militia = { x = 0 y = 0 }
                        militia = { x = 0 y = 1 }
                        militia = { x = 0 y = 2 }
                        
                    }
                    support = {
                        
                    }
                }
                division_template = {
                    name = "Ahadi Division"
                    is_locked = no
                    division_names_group = RAJ_SIKH_01 # optional
                    priority = 2 # optional 
                    
                    regiments = {
                        mountaineers = { x = 0 y = 0 }
                        mountaineers = { x = 0 y = 1 }
                        mountaineers = { x = 0 y = 2 }
                        mountaineers = { x = 0 y = 3 }
                        mountaineers = { x = 1 y = 0 }
                        mountaineers = { x = 1 y = 1 }
                        mountaineers = { x = 1 y = 2 }
                        mountaineers = { x = 1 y = 3 }
                    }
                    support = {
                        engineer = { x = 0 y = 0 }
                    }
                }
				988 = {
                    create_unit = {
                        division = "name = \"Princely Personal Guard\" division_template = \"Princely Personal Guard\" start_experience_factor = 0.05 start_equipment_factor = 0.95 start_manpower_factor = 1"
                        owner = RAJ
                        allow_spawning_on_enemy_provs = no 
                        count = 5 
                    }
                    create_unit = {
                        division = "name = \"Ahadi Division\" division_template = \"Ahadi Division\" start_experience_factor = 0.5 start_equipment_factor = 0.8 start_manpower_factor = 1"
                        owner = ROOT
                        allow_spawning_on_enemy_provs = no 
                        count = 4
                    }
				}
                445 = {
                    create_unit = {
                        division = "name = \"Princely Personal Guard\" division_template = \"Princely Personal Guard\" start_experience_factor = 0.05 start_equipment_factor = 0.95 start_manpower_factor = 1"
                        owner = RAJ
                        allow_spawning_on_enemy_provs = no 
                        count = 3 
                    }
                }


                every_controlled_state = {
                    limit = {
                        is_in_array = {
                            array = RAJ.owned_states_at_game_start
                            value = THIS
                        }
                    }
                    add_core_of = ROOT
                }
            }
            set_cosmetic_tag = RAJ_mughal_breakaway_state
            remove_ideas = RAJ_risk_of_famine
            custom_effect_tooltip = RAJ_the_mughal_uprising_tt
			
			hidden_effect = {
				ROOT = { set_country_flag = independence_war_mughals }
				event_target:UK_INDIA = {
					declare_war_on = {
						target = RAJ
						type = annex_everything
					}

                    division_template = {
                        name = "Loyalist Infantry Division"
                        is_locked = no
                        priority = 0 # optional 
                        regiments = {
                            infantry = { x = 0 y = 0 }
                            infantry = { x = 0 y = 1 }
                            infantry = { x = 0 y = 2 }
                            infantry = { x = 1 y = 0 }
                            infantry = { x = 1 y = 1 }
                            
                        }
                        support = {
                            
                        }
                    }
                    439 = {
                        create_unit = {
                             division = "name = \"Loyalist Infantry Division\" division_template = \"Loyalist Infantry Division\" start_experience_factor = 0.07 start_equipment_factor = 0.95 start_manpower_factor = 1"
                             owner = PREV
                             count = 4 
                         } 
                    }
                    989 = {
                        create_unit = {
                             division = "name = \"Loyalist Infantry Division\" division_template = \"Loyalist Infantry Division\" start_experience_factor = 0.07 start_equipment_factor = 0.95 start_manpower_factor = 1"
                             owner = PREV
                             count = 4 
                         } 
                    }
                    440 = {
                        create_unit = {
                             division = "name = \"Loyalist Infantry Division\" division_template = \"Loyalist Infantry Division\" start_experience_factor = 0.07 start_equipment_factor = 0.95 start_manpower_factor = 1"
                             owner = PREV
                             count = 4 
                         } 
                    }

				}
			}
            ENG = { country_event = { id = GOE_RAJ.33 days = 14 random_days = 2 } }
            
            every_army_leader = {
                limit = {
                    has_trait = loyalty_to_britain
                }
                set_nationality = ENG
            }

            every_army_leader = {
                limit = {
                    has_trait = loyalty_to_india
                }
                set_nationality = event_target:UK_INDIA
            }
            country_event = {
                id = GOE_RAJ.33
                hours = 1
            }
        } 
    }



   focus = {
        id = RAJ_reform_the_agricultural_system 
        icon = GFX_focus_generic_farmland
        prerequisite = { focus = RAJ_the_mughal_uprising }

        x = -2
        y = 1
        relative_position_id = RAJ_the_mughal_uprising

        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        bypass = {
            NOT = { has_dynamic_modifier = { modifier = idea_RAJ_agrarian_society } }
        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_MANPOWER}
        search_filters = {FOCUS_FILTER_INDUSTRY}

        completion_reward = {
            try_build_civ_in_core_otherwise_build_in_controlled = yes
            custom_effect_tooltip = RAJ_relax_agrarian_society_criteria_tt
            add_to_variable = { RAJ_agrarian_society_conscription_factor = 0.05 tooltip = conscription_factor_tt }
            add_to_variable = { RAJ_agrarian_society_mobilization_speed = 0.05  tooltip = mobilization_speed_tt }
            add_to_variable = { RAJ_agrarian_society_mobilization_laws_cost_factor = -0.1 tooltip = mobilization_laws_cost_factor_tt }
            remove_agrarian_society_if_void = yes
        }
    }
   focus = {
        id = RAJ_forging_the_mughal_arsenal
        icon = GFX_goal_generic_construct_mil_factory
        prerequisite = { focus = RAJ_the_mughal_uprising }

        x = 2
        y = 1
        relative_position_id = RAJ_the_mughal_uprising

        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY FOCUS_FILTER_ARMY_XP}
        completion_reward = {
            try_build_mil_in_core_otherwise_build_in_controlled_2_mil = yes
            try_build_civ_in_core_otherwise_build_in_controlled = yes
            add_tech_bonus = {
                name = RAJ_forging_the_mughal_arsenal
                bonus = 0.35
                uses = 1
                category = artillery # optional 
                # technology  = technology_id # optional
            }

            army_experience = 30
        }
    }

#RAJ_reform_the_agricultural_system

#RAJ_forging_the_mughal_arsenal

   focus = {
        id = RAJ_the_legacy_of_babur
        icon = GFX_focus_RAJ_the_legacy_of_babur
        prerequisite = { focus = RAJ_the_mughal_uprising }
        #mutually_exclusive = { }
        x = 0
        y = 1
        relative_position_id = RAJ_the_mughal_uprising

        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY FOCUS_FILTER_STABILITY FOCUS_FILTER_MANPOWER}

        completion_reward = {
        

            try_build_civ_in_core_otherwise_build_in_controlled_2_civs = yes
            try_build_civ_in_core_otherwise_build_in_controlled = yes
            try_build_mil_in_core_otherwise_build_in_controlled = yes
			custom_effect_tooltip = newline_tt
            if = {
                limit = {
                    NOT = {
                        any_state = {
                            has_state_flag = has_stirred_unrest
                        }
                    }
                }

                custom_effect_tooltip = RAJ_the_legacy_of_babur_tt
                effect_tooltip = {
                    add_dynamic_modifier = {
                        modifier = idea_RAJ_mughal_influence
                    }
                }
            }
            else = {
              every_controlled_state = {
                    limit = {
                        has_state_flag = has_stirred_unrest
                    }
                    add_dynamic_modifier = {
                        modifier = idea_RAJ_mughal_influence
                    }
                }  
            }
			custom_effect_tooltip = newline_tt
			ROOT = { add_stability = 0.10 }
        } 

    }

   focus = {
        id = RAJ_a_peacock_prince
        icon = GFX_focus_RAJ_peacock_prince
        prerequisite = { focus = RAJ_the_legacy_of_babur }
        #mutually_exclusive = { }
        x = 0
        y = 1
        relative_position_id = RAJ_the_legacy_of_babur

        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {
            has_war = no
        }
        
        bypass = {
 
        }

        search_filters = {FOCUS_FILTER_POLITICAL}

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no
        completion_reward = {
            country_event = { id = GOE_RAJ_princely.1 } 
            drop_cosmetic_tag = yes
            set_cosmetic_tag = RAJ_al_hind
        }

    }

   focus = {
        id = RAJ_halls_of_knowledge
        icon = GFX_focus_research
        prerequisite = { focus = RAJ_a_peacock_prince }
        #mutually_exclusive = { }
        x = -2
        y = 1
        relative_position_id = RAJ_a_peacock_prince

        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {
            num_of_factories > 10
        }
        
        bypass = {

        }

        search_filters = {FOCUS_FILTER_RESEARCH}

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no
        completion_reward = {
            add_tech_bonus = {
                #bonus = <float>
                name = RAJ_halls_of_knowledge
                uses = 1
                ahead_reduction = 1
                category = electronics # optional 
                # technology  = technology_id # optional
            }
            add_tech_bonus = {
                name = RAJ_halls_of_knowledge
                bonus = 0.4
                uses = 2
                category = infantry_weapons # optional 
                # technology  = technology_id # optional
            }
            add_research_slot = 1
        }

    }

   focus = {
        id = RAJ_halls_of_knowledge_2
        icon = GFX_focus_research2
        prerequisite = { focus = RAJ_halls_of_knowledge }
        #mutually_exclusive = { }
        x = 0
        y = 1
        relative_position_id = RAJ_halls_of_knowledge

        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {
            num_of_factories > 25
        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_RESEARCH}

        completion_reward = {
            add_research_slot = 1
        }

    }

    focus = {
        id = RAJ_halls_of_knowledge_3
        icon = GFX_focus_ARG_universidad_de_buenos_aires
        prerequisite = { focus = RAJ_halls_of_knowledge_2 }
        #mutually_exclusive = { }
        x = 0
        y = 1
        relative_position_id = RAJ_halls_of_knowledge_2

        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {
            num_of_factories > 60
        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_RESEARCH}

        completion_reward = {
            add_research_slot = 1
        }
    }

    focus = {
        id = RAJ_secret_weapons
        icon = GFX_focus_rocketry
        prerequisite = { focus = RAJ_halls_of_knowledge_3 }
        prerequisite = { focus = RAJ_thunder_elephants }
        #mutually_exclusive = { }
        #allow_branch = { has_dlc = "Gotterdammerung" }
        x = 2
        y = 1
        relative_position_id = RAJ_halls_of_knowledge_3

        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {
            any_owned_state = {
                nuclear_facility < 1
                air_facility < 1
                land_facility < 1
                naval_facility < 1
            }
        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_RESEARCH}

        completion_reward = {
            IF = {
                limit = {
                    has_dlc = "Gotterdammerung"
                }
                random_owned_controlled_state = {
                    limit = {
                        can_construct_building = air_facility
                    }
                    prioritize = { 291 }
                    construct_building_in_random_province = {
                        air_facility = 1
                    }
                }
                add_breakthrough_progress = {
                    specialization = specialization_air
                    value = 0.25
                }
            }
            ELSE = {
                add_tech_bonus = {
                    name = RAJ_secret_weapons
                    bonus = 0.75
                    category = rocketry
                }
            }
        }
    }

    focus = {
        id = RAJ_sharpen_the_tulwar
        icon = GFX_goal_generic_special_forces
        prerequisite = { focus = RAJ_a_peacock_prince }
        #mutually_exclusive = { }
        x = 2
        y = 1
        relative_position_id = RAJ_a_peacock_prince

        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {
        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_RESEARCH  FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_INDUSTRY FOCUS_FILTER_MANPOWER}

        completion_reward = {
            try_build_mil_in_core_otherwise_build_in_controlled_2_mil = yes
            add_war_support = 0.05
            add_doctrine_cost_reduction = {
                name = RAJ_sharpen_the_tulwar
                cost_reduction = 0.66
                uses = 1
                category = land_doctrine
            }

            set_technology = {
                tech_mountaineers = 1
                popup = no
            }

            division_template = {
                name = "Mountain Lions"
                is_locked = no
                priority = 2 # optional 
                regiments = {
                    mountaineers = { x = 0 y = 0 }
                    mountaineers = { x = 0 y = 1 }
                    mountaineers = { x = 0 y = 2 }
                    mountaineers = { x = 0 y = 3 }
                    mountaineers = { x = 1 y = 0 }
                    mountaineers = { x = 1 y = 1 }
                    mountaineers = { x = 1 y = 2 }
                    mountaineers = { x = 1 y = 3 }
                    mountaineers = { x = 2 y = 0 }

                }
                support = {
                    
                }
            }

            random_controlled_state = {
                limit = {
                    is_fully_controlled_by = ROOT
                }

                create_unit = {
                    division = "name = \"Mountain Lions\" division_template = \"Mountain Lions\" start_experience_factor = 0.65 start_equipment_factor = 0.8 start_manpower_factor = 1"
                    owner = RAJ
                    allow_spawning_on_enemy_provs = no 
                    count = 1
                }
                prioritize = { 988 445 } #optional: to pick those states first if they fulfill the limit
                
            }

            if = {
                limit = {
                    OR = {
                        has_idea = volunteer_only
                        has_idea = disarmed_nation
                    }
                }

                add_ideas = limited_conscription    
            }

        }
    }

    focus = {
        id = RAJ_reviving_the_workshop_of_the_world
        icon = GFX_focus_generic_modernize_industry
        prerequisite = { focus = RAJ_a_peacock_prince }
        #mutually_exclusive = { }
        x = 0
        y = 1
        relative_position_id = RAJ_a_peacock_prince

        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {
        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}

        completion_reward = {
            try_build_civ_in_core_otherwise_build_in_controlled_2_civs = yes
            if = {
                limit = {
                    has_idea = civilian_economy
                }

                add_ideas = low_economic_mobilisation
            }

            add_ideas = idea_RAJ_reviving_the_workshop_of_the_world

        }
    }

    focus = {
        id = RAJ_rebuilding_the_empires_roads
        icon = GFX_goal_generic_construct_infrastructure
        prerequisite = { focus = RAJ_reviving_the_workshop_of_the_world }
        #mutually_exclusive = { }
        x = 0
        y = 1
        relative_position_id = RAJ_reviving_the_workshop_of_the_world

        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {
        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}

        completion_reward = {
            try_build_civ_in_core_otherwise_build_in_controlled = yes
            random_core_state = {
                limit = {
                    is_controlled_by = ROOT
                    infrastructure < 5
                }
                add_building_construction = {
                    type = infrastructure
                    level = 1
                    instant_build = yes
                } 
            }

            random_core_state = {
                limit = {
                    is_controlled_by = ROOT
                    infrastructure < 5
                }
                add_building_construction = {
                    type = infrastructure
                    level = 1
                    instant_build = yes
                } 
            }

            random_core_state = {
                limit = {
                    is_controlled_by = ROOT
                    infrastructure < 5
                }
                add_building_construction = {
                    type = infrastructure
                    level = 1
                    instant_build = yes
                } 
            }

            swap_ideas = {
                remove_idea = idea_RAJ_reviving_the_workshop_of_the_world
                add_idea = idea_RAJ_reviving_the_workshop_of_the_world_2
            }


        }
    }

    

    


   focus = {
        id = RAJ_elephants_for_the_modern_age
        icon = GFX_focus_RAJ_indian_gentlemen_offcers
        prerequisite = { focus = RAJ_sharpen_the_tulwar }
        #mutually_exclusive = { }
        x = 0
        y = 1
        relative_position_id = RAJ_sharpen_the_tulwar

        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {
        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_RESEARCH FOCUS_FILTER_ARMY_XP}

        completion_reward = {

            set_technology = {
                elephantry = 1
                popup = no
            }

            division_template = {
                name = "Gajhastas"
                is_locked = no
                #division_names_group = NAMELIST_ID # optional
                priority = 1 # optional 
                template_counter = 108 # optional
                regiments = {
                    elephantry = { x = 0 y = 0 }
                    elephantry = { x = 0 y = 1 }
                    elephantry = { x = 0 y = 2 }
                    elephantry = { x = 0 y = 3 }
                    elephantry = { x = 1 y = 0 }
                    elephantry = { x = 1 y = 1 }
                    elephantry = { x = 1 y = 2 }
                    elephantry = { x = 1 y = 3 }
                }
                #support = {
                #    artillery = { x = 0 y = 0 }
                #}
            }
            capital_scope = {
                create_unit = {
                    division = "name = \"Gajhastas\" division_template = \"Gajhastas\" start_experience_factor = 0.2 start_equipment_factor = 0.8 start_manpower_factor = 1"
                    owner = ROOT
                    allow_spawning_on_enemy_provs = yes 
                    count = 2
                }
            }

            army_experience = 70

            custom_effect_tooltip = generic_skip_one_line_tt
            if = {
                limit = {
                    amount_taken_ideas = {
                        amount < 1
                        slots = { army_spirit }
                    }
                    has_dlc = "No Step Back"
                    NOT = {
                        has_idea = proper_heritage_spirit
                    }
                }
                add_ideas = proper_heritage_spirit
            }
            #add_extra_state_shared_building_slots = 1
        }
    }

   focus = {
        id = RAJ_timurid_bureaucracy
        icon = GFX_focus_TUR_loosen_the_laws_on_secularism
        prerequisite = { focus = RAJ_a_peacock_prince }
        #mutually_exclusive = { }
        x = 2
        y = 0
        relative_position_id = RAJ_sharpen_the_tulwar

        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {
        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY FOCUS_FILTER_MANPOWER}

        completion_reward = {

            add_popularity = {
                ideology = neutrality
                popularity = 0.15
            }

            if = {
                limit = {
                    has_idea = RAJ_marginalized_muslim_community
                }
                swap_ideas = {
                    remove_idea = RAJ_marginalized_muslim_community
                    add_idea = idea_RAJ_timurid_bureaucracy
                }
            }
            else = {
                add_ideas = idea_RAJ_timurid_bureaucracy
            }
        }
    }

   focus = {
        id = RAJ_revolt_of_the_princes
        icon = GFX_focus_rom_royal_dictatorship
        prerequisite = { focus = RAJ_a_peacock_prince }
        #mutually_exclusive = { }
        x = -6
        y = 0
        relative_position_id = RAJ_sharpen_the_tulwar

        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {
		    is_subject = no
			num_of_factories > 15
			has_army_manpower = { size > 49999 }
        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_MANPOWER FOCUS_FILTER_ANNEXATION}

        completion_reward = {
            add_war_support = 0.05
            add_manpower = 25000
            custom_effect_tooltip = RAJ_revolt_of_the_princes_tt
			create_wargoal = {
				type = annex_everything
				target = event_target:UK_INDIA
			}
        }
    }

    focus = {
            id = RAJ_unite_the_subcontinent
            icon = GFX_goal_generic_position_armies
            prerequisite = { focus = RAJ_revolt_of_the_princes }
            #mutually_exclusive = { }
            x = 0
            y = 1
            relative_position_id = RAJ_revolt_of_the_princes

            cost = 6

            ai_will_do = {
                factor = 1
            }

            available = {
                has_full_control_of_state = 439
                has_full_control_of_state = 438
                has_full_control_of_state = 435
                has_full_control_of_state = 431
		        is_subject = no
			    num_of_factories > 20
			    has_army_manpower = { size > 99999 }
            }
            
            bypass = {

            }

            cancel_if_invalid = no
            continue_if_invalid = no
            available_if_capitulated = no

            search_filters = {FOCUS_FILTER_ANNEXATION}

            completion_reward = {
                BRM = {
                    every_core_state = {
                        add_core_of = ROOT
                    }
                }
                every_state = {
                    limit = {
                        is_in_array = {
                            array = RAJ.owned_states_at_game_start
                            value = THIS
                        }
                        if = {
                            limit = { ROOT = { has_completed_focus = RAJ_the_silk_road } }
                            NOT = {
                                OR = {
                                    state = 982
                                    state = 423
                                    state = 425
                                    state = 424
                                    state = 983
                                    state = 426
                                }
                            }
                        }                   
                    }

                    add_core_of = ROOT
                }

                if = {
                    limit = {
                        has_event_target = UK_INDIA
                        event_target:UK_INDIA = {
                            all_core_state = {
                                is_fully_controlled_by = PREV
                            }
                        }
                    }

                    create_wargoal = {
                        type = annex_everything
                        target = event_target:UK_INDIA
                    }
                }
                else_if = {
                    limit = {
                        has_event_target = UK_INDIA
                    }
                    event_target:UK_INDIA = {
                        every_core_state = {
                            if = {
                                limit = {

                                    NOT = { ROOT = { has_annex_war_goal =  PREV.controller } }
                                    controller = {  NOT = { tag = ROOT } } 
                                }

                                ROOT = {
                                    create_wargoal = {
                                        type = annex_everything
                                        target = PREV.controller
                                    }
                                }
                            }
                        }
                    }
                }

                if = {
                    limit = {
                        BRM = {
                            all_core_state = {
                                is_fully_controlled_by = PREV
                            }
                        }
                    }

                    create_wargoal = {
                        type = annex_everything
                        target = BRM
                    }
                }
                else = {
                    BRM = {
                        every_core_state = {
                            if = {
                                limit = {

                                    NOT = { ROOT = { has_annex_war_goal =  PREV.controller } }
                                    controller = {  NOT = { original_tag = ROOT } } 
                                }

                                ROOT = {
                                    create_wargoal = {
                                        type = annex_everything
                                        target = PREV.controller
                                    }
                                }
                            }
                        }
                    }
                }
                
                if = {
                    limit = { NOT = { has_completed_focus = RAJ_the_silk_road } }
                    custom_effect_tooltip = newline_tt
                    custom_effect_tooltip = if_not_silk_road_tt
                    set_capital = {
                        state = 439
                    }
                    drop_cosmetic_tag = yes
                    set_cosmetic_tag = RAJ_mughal_empire
                    custom_effect_tooltip = also_on_vijay_tt
                }
                
            }
        }

        focus = {
        id = RAJ_secular_rule
        icon = GFX_focus_hol_the_foundations_of_defense
        prerequisite = { focus = RAJ_unite_the_subcontinent }
        mutually_exclusive  = { focus = RAJ_theocratic_rule }
        x = -2
        y = 1
        relative_position_id = RAJ_unite_the_subcontinent

        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {
        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_RESEARCH}

        completion_reward = {
            add_ideas = idea_RAJ_secular_rule
        }
    }

    focus = {
        id = RAJ_theocratic_rule
        icon = GFX_focus_TUR_turanist_ambition
        prerequisite = { focus = RAJ_unite_the_subcontinent }
        mutually_exclusive  = { focus = RAJ_secular_rule }
        #mutually_exclusive = { }
        x = 2
        y = 0
        relative_position_id = RAJ_secular_rule

        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {
        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_STABILITY}

        completion_reward = {
            add_ideas = idea_RAJ_theocratic_rule
        }
    }


    focus = {
        id = RAJ_mughal_court
        icon = GFX_goal_generic_national_unity
        prerequisite = { focus = RAJ_secular_rule focus = RAJ_theocratic_rule }
        #mutually_exclusive = { }
        x = 1
        y = 1
        relative_position_id = RAJ_secular_rule

        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {
        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL_CHARACTER}

        completion_reward = {
            hidden_effect = {
                HYD = {
                    RAJ_mir_osman_ali_khan = {
                        if = {
                            limit = {
                                NOT = {
                                    has_character_flag = is_mughal_emperor
                                }
                            }
                            set_nationality = RAJ
                            remove_country_leader_role = {
                                character = RAJ_mir_osman_ali_khan
                                ideology = despotism
                            }
                        }
                    }
                }
                RAS = {
                    RAJ_chithira_thirunal_balarma_varma = {
                        if = {
                            limit = {
                                NOT = {
                                    has_character_flag = is_mughal_emperor
                                }
                            }
                            set_nationality = RAJ
                            remove_country_leader_role = {
                                character = RAJ_chithira_thirunal_balarma_varma
                                ideology = despotism
                            }
                        }
                    }
                }
                KLT = {
                    RAJ_ahmad_yar_khan = {
                        if = {
                            limit = {
                                NOT = {
                                    has_character_flag = is_mughal_emperor
                                }
                            }
                            set_nationality = RAJ
                            remove_country_leader_role = {
                                character = RAJ_ahmad_yar_khan
                                ideology = despotism
                            }
                        }
                    }
                }
                BAN = {
                    RAJ_huseyn_shaheed_suhrawardy = {
                        if = {
                            limit = {
                                NOT = {
                                    has_character_flag = is_mughal_emperor
                                }
                            }
                            set_nationality = RAJ
                            remove_country_leader_role = {
                                character = RAJ_huseyn_shaheed_suhrawardy
                                ideology = despotism
                            }
                        }
                    }
                }
                KAS = {
                    RAJ_maharaja_hari_singh = {
                        if = {
                            limit = {
                                NOT = {
                                    has_character_flag = is_mughal_emperor
                                }
                            }
                            set_nationality = RAJ
                            remove_country_leader_role = {
                                character = RAJ_maharaja_hari_singh
                                ideology = despotism
                            }
                        }
                    }
                }
                MPU = {
                    RAJ_bodh_chandra_singh = {
                        if = {
                            limit = {
                                NOT = {
                                    has_character_flag = is_mughal_emperor
                                }
                            }
                            set_nationality = RAJ
                            remove_country_leader_role = {
                                character = RAJ_bodh_chandra_singh
                                ideology = despotism
                            }
                        }
                    }
                }
                RJP = {
                    RAJ_umed_singh = {
                        if = {
                            limit = {
                                NOT = {
                                    has_character_flag = is_mughal_emperor
                                }
                            }
                            set_nationality = RAJ
                            remove_country_leader_role = {
                                character = RAJ_umed_singh
                                ideology = despotism
                            }
                        }
                    }
                }
                WIS = {
                    RAJ_pratap_singh_rao_gaekwad = {
                        if = {
                            limit = {
                                NOT = {
                                    has_character_flag = is_mughal_emperor
                                }
                            }
                            set_nationality = RAJ
                            hidden_effect = {
                                remove_country_leader_role = {
                                    character = RAJ_pratap_singh_rao_gaekwad
                                    ideology = despotism
                                }
                            }
                        }
                    }
                }
            }
            custom_effect_tooltip = RAJ_mughal_court_princely_states_tt
            custom_effect_tooltip = generic_skip_one_line_tt

            HYD = {
                custom_effect_tooltip = available_political_advisor
                show_ideas_tooltip = RAJ_mir_osman_ali_khan
            }
            RAS = {
                custom_effect_tooltip = available_political_advisor
                show_ideas_tooltip = RAJ_chithira_thirunal_balarma_varma
            }
            KLT = {
                custom_effect_tooltip = available_political_advisor
                show_ideas_tooltip = RAJ_ahmad_yar_khan
            }
            BAN = {
                custom_effect_tooltip = available_political_advisor
                show_ideas_tooltip = RAJ_huseyn_shaheed_suhrawardy
            }
            KAS = {
                custom_effect_tooltip = available_political_advisor
                show_ideas_tooltip = RAJ_maharaja_hari_singh
            }
            MPU = {
                custom_effect_tooltip = available_political_advisor
                show_ideas_tooltip = RAJ_bodh_chandra_singh
            }
            RJP = {
                custom_effect_tooltip = available_political_advisor
                show_ideas_tooltip = RAJ_umed_singh
            }
            WIS = {
                custom_effect_tooltip = available_political_advisor
                show_ideas_tooltip = RAJ_pratap_singh_rao_gaekwad
            }
        }
    }
	
	focus = {
        id = RAJ_conquer_afghanistan
        icon = GFX_focus_generic_attack_afghanistan
        prerequisite = { focus = RAJ_timurid_bureaucracy }
        #mutually_exclusive = { }
        x = 0
        y = 1
        relative_position_id = RAJ_timurid_bureaucracy

        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {
		        is_subject = no
			    num_of_factories > 25
			    has_army_manpower = { size > 99999 }
        }
        
        bypass = {
            AFG = {
                OR = {
                    exists = no
                    is_subject_of = ROOT
                    has_war_with = ROOT
                }
            }
        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_ANNEXATION}

        completion_reward = {
            if = {
                limit = {
                    has_dlc = "Arms Against Tyranny"
                }
                add_doctrine_cost_reduction = {
                    cost_reduction = 0.4
                    uses = 1
                    category = special_forces_doctrine
                }
            }
            else = {
                army_experience = 100
            }
            if = {
                limit = {
                    AFG = {
                        all_core_state = {
                            is_fully_controlled_by = PREV
                        }
                    }
                }

                create_wargoal = {
                    type = annex_everything
                    target = AFG
                }
            }
            else = {
                AFG = {
                    every_core_state = {
                        if = {
                            limit = {

                                NOT = { ROOT = { has_annex_war_goal =  PREV.controller } }
                                controller = {  NOT = { original_tag = ROOT } } 
                            }

                            ROOT = {
                                create_wargoal = {
                                    type = annex_everything
                                    target = PREV.controller
                                }
                            }
                        }
                    }
                }
            }
        }
    }
	
	focus = {
        id = RAJ_through_the_wakhan_corridor
        icon = GFX_focus_AFG_sinkang_intervention
        prerequisite = { focus = RAJ_conquer_afghanistan }
        #mutually_exclusive = { }
        x = 2
        y = 1
        relative_position_id = RAJ_conquer_afghanistan

        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {
		        is_subject = no
			    num_of_factories > 25
			    has_army_manpower = { size > 99999 }
        }
        
        bypass = {
            
        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL}
        search_filters = {FOCUS_FILTER_INDUSTRY}
        search_filters = {FOCUS_FILTER_ANNEXATION}

        completion_reward = {
            if = {
                limit = {
                    controls_province = 7519
                }
                1005 = {
                    add_building_construction = {
                        type = supply_node
                        level = 1
                        instant_build = yes
                        province = 7519
                    }

                    add_building_construction = {
                        type = air_base
                        level = 1
                        instant_build = yes
                    }
                }
            }
            else = {
                effect_tooltip = {
                    1005 = {
                        add_building_construction = {
                            type = supply_node
                            level = 1
                            instant_build = yes
                            province = 7519
                        }
                    }
                }
            }


            if = {
                limit = {
                    SIK = {
                        all_core_state = {
                            is_fully_controlled_by = PREV
                        }
                    }
                }

                create_wargoal = {
                    type = annex_everything
                    target = SIK
                }
            }
            else = {
                SIK = {
                    every_core_state = {
                        if = {
                            limit = {

                                NOT = { ROOT = { has_annex_war_goal =  PREV.controller } }
                                controller = {  NOT = { original_tag = ROOT } } 
                            }

                            ROOT = {
                                create_wargoal = {
                                    type = annex_everything
                                    target = PREV.controller
                                }
                            }
                        }
                    }
                }
            }
        }
    }

    focus = {
        id = RAJ_the_silk_road
        icon = GFX_focus_RAJ_the_silk_road
		prerequisite = { focus = RAJ_through_the_wakhan_corridor }
        prerequisite = { focus = RAJ_legacy_of_timur }
        x = -2
        y = 1
        relative_position_id = RAJ_through_the_wakhan_corridor

        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {
			has_full_control_of_state = 415
			has_full_control_of_state = 267
			has_full_control_of_state = 1007
			has_full_control_of_state = 1005
			has_full_control_of_state = 1006
			has_full_control_of_state = 619
			has_full_control_of_state = 287
			has_full_control_of_state = 617
			has_full_control_of_state = 759
        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = { FOCUS_FILTER_INDUSTRY}

        completion_reward = {
            build_railway = {
                level = 3
                start_province = 4709
                target_province = 4893 
            }
            add_ideas = BRA_road_investment
            add_ideas = BRA_rail_investment
            random_owned_state = {
                limit = {
                    is_fully_controlled_by = ROOT
                    free_building_slots = {
                        building = industrial_complex
                        size > 1
                        include_locked = yes
                    }
                }
                add_extra_state_shared_building_slots = 2
                add_building_construction = {
                    type = industrial_complex
                    level = 2
                    instant_build = yes
                }
            }
            random_owned_state = {
                limit = {
                    is_fully_controlled_by = ROOT
                    free_building_slots = {
                        building = industrial_complex
                        size > 0
                        include_locked = yes
                    }
                }
                add_extra_state_shared_building_slots = 1
                add_building_construction = {
                    type = arms_factory
                    level = 1
                    instant_build = yes
                }
            }			
        }
    }

    focus = {
        id = RAJ_legacy_of_timur
        icon = GFX_focus_rom_royal_dictatorship
        prerequisite = { focus = RAJ_conquer_afghanistan }
        x = 0
        y = 1
        relative_position_id = RAJ_conquer_afghanistan

        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {
            has_full_control_of_state = 415
            has_full_control_of_state = 1009
            has_full_control_of_state = 1008
        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL}

        completion_reward = {
            every_state = {
                limit = {
                    is_core_of = AFG
                }
                add_core_of = ROOT
            }            
        }
    }

    focus = {
        id = RAJ_peacock_throne_for_the_modern_age
        icon = GFX_focus_RAJ_peacock_throne_for_the_modern_age
        prerequisite = { focus = RAJ_mughal_court }
        x = 0
        y = 1
        relative_position_id = RAJ_mughal_court

        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {
			has_full_control_of_state = 439
        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL}

        completion_reward = {
            add_ideas = idea_RAJ_ruler_of_the_peacock_throne
        }
    }

    focus = {
        id = RAJ_the_crown_and_the_world
        icon = GFX_focus_RAJ_the_crown_and_the_world
        prerequisite = { focus = RAJ_peacock_throne_for_the_modern_age  }
        x = 1
        y = 1
        relative_position_id = RAJ_peacock_throne_for_the_modern_age

        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {
        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        completion_reward = {
            add_ideas = { idea_RAJ_the_crown_and_the_world }
        }
    }
	
	focus = {
        id = RAJ_revisiting_inquities
        icon = GFX_focus_generic_british_trade
        prerequisite = { focus = RAJ_peacock_throne_for_the_modern_age }
        x = -1
        y = 1
        relative_position_id = RAJ_peacock_throne_for_the_modern_age

        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {
			country_exists = ENG
		    is_subject = no
			num_of_factories > 50
			has_army_manpower = { size > 199999 }
        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL}

        completion_reward = {
			custom_effect_tooltip = allows_mughal_west_british_company_tt
            create_wargoal = {
				type = puppet_wargoal_focus
				target = ENG
			}
        }
    }

    focus = {
        id = RAJ_across_the_himalayas
        icon = GFX_goal_generic_attack_allies
        prerequisite = { focus = RAJ_the_silk_road }
        #mutually_exclusive = { }
        x = 2
        y = 1
        relative_position_id = RAJ_the_silk_road

        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {
		    is_subject = no
			num_of_factories > 15
			has_army_manpower = { size > 49999 }
        }
        
        bypass = {
            
        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_ANNEXATION}

        completion_reward = {
            if = {
                limit = {
                    TIB = {
                        all_core_state = {
                            is_fully_controlled_by = PREV
                        }
                    }
                }

                create_wargoal = {
                    type = annex_everything
                    target = TIB
                }
            }
            else = {
                TIB = {
                    every_core_state = {
                        if = {
                            limit = {

                                NOT = { ROOT = { has_annex_war_goal =  PREV.controller } }
                                controller = {  NOT = { original_tag = ROOT } } 
                            }

                            ROOT = {
                                create_wargoal = {
                                    type = annex_everything
                                    target = PREV.controller
                                }
                            }
                        }
                    }
                }
            }

            if = {
                limit = {
                    BHU = {
                        all_core_state = {
                            is_fully_controlled_by = PREV
                        }
                    }
                }

                create_wargoal = {
                    type = annex_everything
                    target = BHU
                }
            }
            else = {
                BHU = {
                    every_core_state = {
                        if = {
                            limit = {

                                NOT = { ROOT = { has_annex_war_goal =  PREV.controller } }
                                controller = {  NOT = { original_tag = ROOT } } 
                            }

                            ROOT = {
                                create_wargoal = {
                                    type = annex_everything
                                    target = PREV.controller
                                }
                            }
                        }
                    }
                }
            }

            if = {
                limit = {
                    NEP = {
                        all_core_state = {
                            is_fully_controlled_by = PREV
                        }
                    }
                }

                create_wargoal = {
                    type = annex_everything
                    target = NEP
                }
            }
            else = {
                NEP = {
                    every_core_state = {
                        if = {
                            limit = {

                                NOT = { ROOT = { has_annex_war_goal =  PREV.controller } }
                                controller = {  NOT = { original_tag = ROOT } } 
                            }

                            ROOT = {
                                create_wargoal = {
                                    type = annex_everything
                                    target = PREV.controller
                                }
                            }
                        }
                    }
                }
            }
        }
    }

    focus = {
        id = RAJ_conquerors_of_persia
        icon = GFX_focus_generic_attack_iran
        prerequisite = { focus = RAJ_the_silk_road }
        #mutually_exclusive = { }
        x = 0
        y = 1
        relative_position_id = RAJ_the_silk_road

        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {
		    is_subject = no
			num_of_factories > 20
			has_army_manpower = { size > 99999 }
        }
        
        bypass = {
            
        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_ANNEXATION}

        completion_reward = {
            if = {
                limit = {
                    PER = {
                        all_core_state = {
                            is_fully_controlled_by = PREV
                        }
                    }
                }

                create_wargoal = {
                    type = annex_everything
                    target = PER
                }
            }
            else = {
                PER = {
                    every_core_state = {
                        if = {
                            limit = {

                                NOT = { ROOT = { has_annex_war_goal =  PREV.controller } }
                                controller = {  NOT = { original_tag = ROOT } } 
                            }

                            ROOT = {
                                create_wargoal = {
                                    type = annex_everything
                                    target = PREV.controller
                                }
                            }
                        }
                    }
                }
            }

        }
    }

    focus = {
        id = RAJ_conquerors_of_iraq
        icon = GFX_focus_generic_attack_iraq
        prerequisite = { focus = RAJ_conquerors_of_persia }
        #mutually_exclusive = { }
        x = 1
        y = 1
        relative_position_id = RAJ_conquerors_of_persia

        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {
            IRQ = {
                exists = yes
                NOT = {
                    OR = {
                        is_subject_of = ROOT
                        is_in_faction_with = ROOT
                    }
                }
            }
		    is_subject = no
			num_of_factories > 20
			has_army_manpower = { size > 99999 }
        }
        
        bypass = {
            
        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_ANNEXATION}

        completion_reward = {
            create_wargoal = {
                target = IRQ
                type = annex_everything
            }
        }
    }

    focus = {
        id = RAJ_conquerors_of_turkey
        icon = GFX_focus_generic_attack_turkey
        prerequisite = { focus = RAJ_conquerors_of_persia }
        #mutually_exclusive = { }
        x = -1
        y = 1
        relative_position_id = RAJ_conquerors_of_persia

        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {
            TUR = {
                exists = yes
                NOT = {
                    OR = {
                        is_subject_of = ROOT
                        is_in_faction_with = ROOT
                    }
                }
            }
		    is_subject = no
			num_of_factories > 35
			has_army_manpower = { size > 99999 }
        }
        
        bypass = {
            
        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_ANNEXATION}

        completion_reward = {
            create_wargoal = {
                target = TUR
                type = annex_everything
            }
        }
    }

    focus = {
        id = RAJ_the_true_mongols
        icon = GFX_focus_generic_attack_mongolia
        prerequisite = { focus = RAJ_the_silk_road }
        #mutually_exclusive = { }
        x = -2
        y = 1
        relative_position_id = RAJ_the_silk_road

        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {
		    is_subject = no
			num_of_factories > 25
			has_army_manpower = { size > 99999 }
        }
        
        bypass = {
            
        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_ANNEXATION}

        completion_reward = {
            if = {
                limit = {
                    MON = {
                        all_core_state = {
                            is_fully_controlled_by = PREV
                        }
                    }
                }

                create_wargoal = {
                    type = annex_everything
                    target = MON
                }
            }
            else = {
                MON = {
                    every_core_state = {
                        if = {
                            limit = {

                                NOT = { ROOT = { has_annex_war_goal =  PREV.controller } }
                                controller = {  NOT = { original_tag = ROOT } } 
                            }

                            ROOT = {
                                create_wargoal = {
                                    type = annex_everything
                                    target = PREV.controller
                                }
                            }
                        }
                    }
                }
            }
        }
    }

     focus = {
        id = RAJ_restore_the_timurid_empire
        icon = GFX_focus_RAJ_restore_the_timurid_empire
        prerequisite = { focus = RAJ_conquerors_of_turkey }
        prerequisite = { focus = RAJ_conquerors_of_iraq }
        x = -1
        y = 1
        relative_position_id = RAJ_conquerors_of_iraq

        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {
            has_full_control_of_state = 415
            has_full_control_of_state = 266
            has_full_control_of_state = 291
            has_full_control_of_state = 49
            has_full_control_of_state = 617
        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY FOCUS_FILTER_WAR_SUPPORT}

        completion_reward = {
            if = {
                limit = {
                    NOT = { has_completed_focus = RAJ_unite_the_subcontinent }
                }
                #custom_effect_tooltip = newline_tt
                custom_effect_tooltip = if_not_subcontinent_tt
                set_capital = { state = 415 }
                drop_cosmetic_tag = yes
                #set_cosmetic_tag = RAJ_silk_road_empire
                set_cosmetic_tag = RAJ_timurid_empire
                #custom_effect_tooltip = unlock_decisions_silk_road_tt
            }
            every_state = {
                limit = {
                    OR = {
                        is_core_of = PER
                        is_core_of = AFG
                        is_core_of = IRQ
                    }
                }
                add_core_of = ROOT
            }
            add_country_leader_trait = RAJ_timurs_succesor   
                     
        }
    }

    focus = {
        id = RAJ_thunder_elephants
        icon = GFX_focus_RAJ_thunder_elephants
        prerequisite = { focus = RAJ_elephants_for_the_modern_age }
        #mutually_exclusive = { }
        x = 0
        y = 1
        relative_position_id = RAJ_elephants_for_the_modern_age

        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {
        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}
        search_filters = {FOCUS_FILTER_RESEARCH}

        completion_reward = {
            random_owned_controlled_state = {
                limit = {
                    free_building_slots = {
                        building = arms_factory
                        size > 1
                        include_locked = yes
                    }
                }
                add_extra_state_shared_building_slots = 2
                add_building_construction = {
                    type = arms_factory
                    level = 2
                    instant_build = yes
                }
            }
            custom_effect_tooltip = generic_skip_one_line_tt
            if = {
                limit = {
                     has_dlc = "Gotterdammerung"
                }

                add_breakthrough_progress = {
                    specialization = specialization_land
                    value = 1
                }
                add_ideas = idea_RAJ_thunder_elephants
            }
            else = {
                add_ideas = idea_RAJ_thunder_elephants_no_gdr
            }

            custom_effect_tooltip = generic_skip_one_line_tt

            add_tech_bonus = {
                name = RAJ_thunder_elephants
                ahead_reduction = 1 # was 2
                bonus = 1
                uses = 1
                technology = super_heavy_tank_chassis
            }
        }
    }

   focus = {
        id = RAJ_incorporation_of_the_east_india_company
        icon = GFX_focus_RAJ_the_return_of_the_east_india_trading_company_alt
        prerequisite = { focus = RAJ_lobby_parliment }
        prerequisite = { focus = RAJ_seek_intial_funding }
        mutually_exclusive = { }
        x = -2
        y = 1
        relative_position_id = RAJ_lobby_parliment

        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL FOCUS_FILTER_TFV_AUTONOMY}

        completion_reward = {
            set_country_flag = RAJ_allow_release_states
            
            #RAJ
            drop_cosmetic_tag = yes
            hidden_effect ={
                country_event = {
                    id = GOE_RAJ_eic.1
                    days = 1
                }

            }
            remove_ideas = RAJ_risk_of_famine
            add_ideas = idea_RAJ_upset_congress_leaders
            custom_effect_tooltip = RAJ_the_return_of_the_east_india_company_tt
            #eic_normal_investments = yes
            #set_country_flag = has_payed_normal_dividends #get one free :) 
            
            set_cosmetic_tag = RAJ_eic_tag
            set_variable = { RAJ_eic_taxes_consumer_goods = 0 }
            hidden_effect = {
                add_dynamic_modifier = {
                    modifier = idea_RAJ_eic_taxes
                }
                add_dynamic_modifier = {
                    modifier = idea_RAJ_eic_dividends_investment
                }
            }
            
            OVERLORD = {
                set_autonomy = {
                    target = RAJ
                    autonomy_state = autonomy_free
                }
            }
                
            hidden_effect = {
                create_dynamic_country = {
                    original_tag = RAJ
                            # copy_tag = TAG # if set, it will copy stuff from copy tag instead of original_tag
                    save_global_event_target_as = UK_INDIA
                    reserve_dynamic_country = yes
                    every_state = {
                        limit = {
                            is_in_array = {
                                array = RAJ.owned_states_at_game_start
                                value = THIS
                            }
                            NOT = {
                                state = 428
                                state = 429
                            }
                        }
                        PREV = { transfer_state = PREV } 
                    }
                    ENG = {
                        set_autonomy = {
                            target=PREV
                            autonomy_state = autonomy_colony
                            freedom_level = 0.1 # 0-1 
                            end_wars  = yes # default yes. will not cancel non civil wars if set to no
                            end_civil_wars = yes # default yes. will not cancel civil wars if set to no
                        }
                    }
                    add_to_tech_sharing_group = commonwealth_research
                    set_cosmetic_tag = RAJ_UK
                    add_dynamic_modifier = { modifier = idea_RAJ_agrarian_society }
                    add_ideas = RAJ_marginalized_muslim_community
                    add_ideas = RAJ_princely_states
                    add_ideas = RAJ_risk_of_famine
                    RAJ = {
                        random_character = {
                            limit = {
                                is_character = RAJ_freeman_freeman_thomas
                            }
                            set_nationality = PREV.PREV
                        }
                    }
                    promote_character = RAJ_freeman_freeman_thomas
                    set_popularities = {
                        democratic= 28 # 0.0-100
                        neutrality = 70 # 0.0-100
                        fascism = 1 # 0.0-100
                        communism = 1 # 0.0-100
                    }
                    set_politics = {
                        ruling_party = neutrality
                        elections_allowed = no
                    }
                }
            }
                #every_controlled_state = {
                #    limit = {
                #        is_in_array = {
                #            array = RAJ.owned_states_at_game_start
                #            value = THIS
                #        }
                #    }
                #    add_core_of = ROOT
                #}
            

            #RAJ RAJ

            custom_effect_tooltip = RAJ_incorporation_of_the_east_india_company_tt
            hidden_effect = {
                set_popularities = {
                    democratic= 50 # 0.0-100
                    neutrality = 20 # 0.0-100
                    fascism = 20 # 0.0-100
                    communism = 10 # 0.0-100
                }

                set_politics = {
                    ruling_party = neutrality
                    elections_allowed = no

                    long_name = RAJ_eic_party_long # Optional
                    name = RAJ_eic_party
                }

                retire_country_leader = yes

                every_army_leader = {
                    limit = {
                       NOT = { has_trait = loyalty_to_britain }
                    }
                    set_nationality = event_target:UK_INDIA
                }

                every_unit_leader = {
                    limit = {   
                        NOT = { 
                            has_trait = loyalty_to_britain  
                        }                
                        is_operative = no
                    }

                    set_nationality = event_target:UK_INDIA

                }
            }
            #every_core_state = {
            #    limit = { 
            #        NOT = { 
            #            state = 429 
            #            state = 439
            #        } 
            #    }
            #    remove_core_of = ROOT 
            #    add_core_of = DIP
            #    force_enable_resistance = { 
            #        clear = no
            #        occupier = ROOT
            #        occupied = DIP
            #    } 
            #    start_resistance = yes 
            #}

            custom_effect_tooltip = generic_skip_one_line_tt

            hidden_effect = {
                if = {
                    limit = {
                        has_idea = RAJ_princely_states
                    }
                    remove_ideas = RAJ_princely_states
                }
                set_country_flag = stop_unrest_events
                set_capital = {
                    state = 429
                    remember_old_capital = no #default = yes
                }
                428 = {
                    add_core_of = ROOT
                }
            }

            # add_timed_idea = {
            #     idea = idea_RAJ_widespread_turmoil
            #     days = 270
            # }


            # retire_country_leader = yes
            # add_country_leader_role = {
            #     character =  RAJ_GOE_subcontinent_chaos # optional if inside character scope
            #     promote_leader = yes
            #     country_leader = {
            #         ideology = centrism
            #         traits = { government_exodus } 
            #     }
            # }


             #Tax rate
            set_variable = { tier_one_taxes_threshold = 4 }
            set_variable = { tier_one_taxes_tax = 0 }
            set_variable = { tier_one_taxes_tax_tt = tier_one_taxes_tax }
            multiply_variable = { tier_one_taxes_tax_tt = 100 } 
            #tier two
            set_variable = { tier_two_taxes_threshold = 8 } 
            set_variable = { tier_two_taxes_threshold_plus_4 = tier_two_taxes_threshold }
            add_to_variable = { tier_two_taxes_threshold_plus_4 = 4 } #only for tooltip

            set_variable = { tier_two_taxes_threshold_plus_1 = tier_two_taxes_threshold } #for tooltip
            add_to_variable = { tier_two_taxes_threshold_plus_1 = 1 }
            set_variable = { tier_two_taxes_tax = 0.15 }
            set_variable = { tier_two_taxes_tax_tt = tier_two_taxes_tax }
            multiply_variable = { tier_two_taxes_tax_tt = 100 }

            #tier 3
            set_variable = { tier_three_taxes_threshold =  20 }
            set_variable = { tier_three_taxes_threshold_plus_4 = tier_three_taxes_threshold }
            add_to_variable = { tier_three_taxes_threshold_plus_4 = 4 } #only for tooltip

            set_variable = { tier_three_taxes_threshold_plus_1 = tier_three_taxes_threshold } #for tooltip
            add_to_variable = { tier_three_taxes_threshold_plus_1 = 1 }
            set_variable = { tier_three_taxes_tax = 0.3 }
            set_variable = { tier_three_taxes_tax_tt = tier_three_taxes_tax }
            multiply_variable = { tier_three_taxes_tax_tt = 100 }
            #tier 4
            set_variable = { tier_four_taxes_threshold = 29 }
            set_variable = { tier_four_taxes_threshold_plus_4 = tier_four_taxes_threshold }
            add_to_variable = { tier_four_taxes_threshold_plus_4 = 4 } #only for tooltip

            set_variable = { tier_four_taxes_threshold_plus_1 = tier_four_taxes_threshold } #for tooltip
            add_to_variable = { tier_four_taxes_threshold_plus_1 = 1 }
            set_variable = { tier_four_taxes_tax = 0.6 }
            set_variable = { tier_four_taxes_tax_tt = tier_four_taxes_tax } #for tooltipping val*100
            multiply_variable = { tier_four_taxes_tax_tt = 100 }


            custom_effect_tooltip = RAJ_release_subjects_hint_tt

            hidden_effect = {
                controlled_civilian_factories_excluding_trade = yes
                calc_expected_consumer_goods_for_taxes = yes
            }

            if = {
                limit = {
                    has_completed_focus = RAJ_seek_intial_funding
                }

                capital_scope = {
                    add_extra_state_shared_building_slots = 3
                    add_building_construction = {
                        type = industrial_complex
                        level = 3
                        instant_build = yes
                    }
                }
            }

            if = {
                limit = {
                    has_idea = idea_RAJ_price_controls
                }
                remove_ideas = idea_RAJ_price_controls
            }

            if = {
                limit = {
                    has_idea = idea_RAJ_price_controls_2
                }
                remove_ideas = idea_RAJ_price_controls_2
            }
        }
    }

    focus = {
        id = RAJ_appoint_a_c_suite
        icon = GFX_focus_RAJ_appoint_a_c_suite
        prerequisite = { focus = RAJ_incorporation_of_the_east_india_company }
        #mutually_exclusive = { focus =  }
        x = 0
        y = 1
        relative_position_id = RAJ_incorporation_of_the_east_india_company 

        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {
            has_country_flag = has_paid_initial_funding
        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL_CHARACTER FOCUS_FILTER_POLITICAL}

        completion_reward = {

            RAJ_GOE_the_board_of_directors = {
                add_country_leader_role = {
                    promote_leader = yes
                    country_leader = {
                        ideology = oligarchism
                    }
                }
            }

            country_event = { id = GOE_RAJ_eic.2 hours = 2 }
             hidden_effect = {
                calc_expected_consumer_goods_for_taxes = yes
            }
			 set_cosmetic_tag = RAJ_eic_tag
        }
    }

 #  focus = { 
 #      id = RAJ_the_return_of_the_east_india_company
 #      icon = GFX_focus_RAJ_the_return_of_the_east_india_trading_company_alt
 #      #prerequisite = { focus = RAJ_form_a_police_force }
 #      #prerequisite = { focus = RAJ_incorporation_of_the_east_india_company }
 #      #mutually_exclusive = { focus =  }
 #      x = 10
 #      y = 1
 #      relative_position_id = RAJ_incorporation_of_the_east_india_company 

 #      cost = 6

 #      ai_will_do = {
 #          factor = 1
 #      }

 #      available = {

 #      }
 #      
 #      bypass = {

 #      }

 #      cancel_if_invalid = yes
 #      continue_if_invalid = no
 #      available_if_capitulated = no



 #      completion_reward = {  
 #          hidden_effect ={
 #              country_event = {
 #                  id = GOE_RAJ_eic.1
 #                  days = 1
 #              }

 #          }
 #          custom_effect_tooltip = RAJ_the_return_of_the_east_india_company_tt
 #          #eic_normal_investments = yes
 #          #set_country_flag = has_payed_normal_dividends #get one free :) 
 #          
 #          set_cosmetic_tag = RAJ_eic_tag
 #          set_variable = { RAJ_eic_taxes_consumer_goods = 0 }
 #          hidden_effect = {
 #              add_dynamic_modifier = {
 #                  modifier = idea_RAJ_eic_taxes
 #              }
 #              add_dynamic_modifier = {
 #                  modifier = idea_RAJ_eic_dividends_investment
 #              }
 #          }

 #          hidden_effect = {
 #              controlled_civilian_factories_excluding_trade = yes
 #              calc_expected_consumer_goods_for_taxes = yes
 #          }
 #      }
 #  }

    

    focus = { 
        id = RAJ_take_over_administrative_rights
        icon = GFX_focus_RAJ_british_investors
        prerequisite = { focus = RAJ_appoint_a_c_suite }
        #mutually_exclusive = { focus =  }
        x = 0
        y = 1
        relative_position_id = RAJ_appoint_a_c_suite

        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL}

        completion_reward = {
            add_ideas = {
                   idea_RAJ_taking_over_administraive_rights
             } 
        }
    }
    

#    focus = {
#        id = RAJ_demobilize
#        icon = GFX_focus_NOR_broken_gun_policies
#       # prerequisite = { focus = RAJ_appoint_a_c_suite }
#        #mutually_exclusive = { focus =  }
#        x = -2
#        y = -3
#        relative_position_id = RAJ_appoint_a_c_suite
#
#        cost = 5
#
#        ai_will_do = {
#            factor = 1
#        }
#
#        available = {
#
#        }
#        
#        bypass = {
#
#        }
#
#        cancel_if_invalid = yes
#        continue_if_invalid = no
#        available_if_capitulated = no
#
#        search_filters = {FOCUS_FILTER_INDUSTRY}
#
#        completion_reward = {
#            if = {
#                limit = { NOT = { has_idea = disarmed_nation } }
#                add_ideas = disarmed_nation
#            }
#
#            if = {
#                limit = { NOT = { has_idea = civilian_economy } }
#                add_ideas = civilian_economy
#            }
#            add_timed_idea = {
#                idea = idea_RAJ_demobilization
#                days = 1200
#            }
#            activate_mission = RAJ_GOE_provide_working_opportunities
#            add_equipment_to_stockpile = { 
#                type = infantry_equipment_0
#                amount = 12000
#                producer = ENG
#            }
#
#            hidden_effect = {
#                controlled_civilian_factories_excluding_trade = yes
#                calc_expected_consumer_goods_for_taxes = yes
#            }
#        }
#    }
#    

    focus = {
        id = RAJ_seek_intial_funding
        icon = GFX_focus_RAJ_issue_bonds_on_the_stock_market
        prerequisite = { focus = RAJ_look_to_the_future }
        #mutually_exclusive = { focus =  }
        x = -2
        y = 1
        relative_position_id = RAJ_look_to_the_future

        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}

        completion_reward = {
            custom_effect_tooltip = RAJ_seek_intial_funding_tt

            hidden_effect = {
                controlled_civilian_factories_excluding_trade = yes
                calc_expected_consumer_goods_for_taxes = yes
            }
        }
    }




    

    focus = {
        id = RAJ_princely_autonomy
        icon = GFX_focus_GER_integration_of_puppet_economies
        prerequisite = { focus = RAJ_take_over_administrative_rights }
        #mutually_exclusive = { focus =  }
        x = -3
        y = 1
        relative_position_id = RAJ_take_over_administrative_rights

        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY}

        completion_reward = {
            add_stability = 0.05
            if = {
                limit = {
                    NOT = {
                        MPU = { is_subject_of = ROOT } 
                        KAS = { is_subject_of = ROOT } 
                        HYD = { is_subject_of = ROOT }
                        MYS = { is_subject_of = ROOT } 
                        NWF = { is_subject_of = ROOT }
                        RJP = { is_subject_of = ROOT }
                        KOL = { is_subject_of = ROOT } 
                        WIS = { is_subject_of = ROOT }
                        CIP = { is_subject_of = ROOT }
                        RAS = { is_subject_of = ROOT } 
                        SKK = { is_subject_of = ROOT }
                        KLT = { is_subject_of = ROOT }
                        KHL = { is_subject_of = ROOT }
                        SIN = { is_subject_of = ROOT }
                        PAK = { is_subject_of = ROOT }
                    }
                }
                custom_effect_tooltip = RAJ_princely_autonomy_tt
                show_ideas_tooltip = idea_RAJ_princely_autonomy
            }


            if = {
                limit = {
                    MPU = { is_subject_of = ROOT } 
                }
                MPU = { add_ideas = idea_RAJ_princely_autonomy }
            }

            if = {
                limit = {
                    KAS = { is_subject_of = ROOT } 
                }
                KAS = { add_ideas = idea_RAJ_princely_autonomy }
            }

            if = {
                limit = {
                    HYD = { is_subject_of = ROOT } 
                }
                HYD = { add_ideas = idea_RAJ_princely_autonomy }
            }

            if = {
                limit = {
                    MYS = { is_subject_of = ROOT } 
                }
                MYS = { add_ideas = idea_RAJ_princely_autonomy }
            }

            if = {
                limit = {
                    NWF = { is_subject_of = ROOT } 
                }
                NWF = { add_ideas = idea_RAJ_princely_autonomy }
            }

            if = {
                limit = {
                    RJP = { is_subject_of = ROOT } 
                }
                RJP = { add_ideas = idea_RAJ_princely_autonomy }
            }

            if = {
                limit = {
                    KOL = { is_subject_of = ROOT } 
                }
                KOL = { add_ideas = idea_RAJ_princely_autonomy }
            }

            if = {
                limit = {
                    WIS = { is_subject_of = ROOT } 
                }
                WIS = { add_ideas = idea_RAJ_princely_autonomy }
            }

            if = {
                limit = {
                    CIP = { is_subject_of = ROOT } 
                }
                CIP = { add_ideas = idea_RAJ_princely_autonomy }
            }

            if = {
                limit = {
                    RAS = { is_subject_of = ROOT } 
                }
                RAS = { add_ideas = idea_RAJ_princely_autonomy }
            }

            if = {
                limit = {
                    SKK = { is_subject_of = ROOT } 
                }
                SKK = { add_ideas = idea_RAJ_princely_autonomy }
            }

            if = {
                limit = {
                    KLT = { is_subject_of = ROOT } 
                }
                KLT = { add_ideas = idea_RAJ_princely_autonomy }
            }

            if = {
                limit = {
                    KHL = { is_subject_of = ROOT } 
                }
                KHL = { add_ideas = idea_RAJ_princely_autonomy }
            }

            if = {
                limit = {
                    SIN = { is_subject_of = ROOT } 
                }
                SIN = { add_ideas = idea_RAJ_princely_autonomy }
            }

            if = {
                limit = {
                    PAK = { is_subject_of = ROOT } 
                }
                PAK = { add_ideas = idea_RAJ_princely_autonomy }
            }

            if = {
                limit = {
                    BLC = { is_subject_of = ROOT } 
                }
                BLC = { add_ideas = idea_RAJ_princely_autonomy }
            }

            if = {
                limit = {
                    SKK = { is_subject_of = ROOT } 
                }
                SKK = { add_ideas = idea_RAJ_princely_autonomy }
            }

            for_each_scope_loop = { #just as failsafe
                array = RAJ.raj_releasables
                if = {
                    limit = {
                        is_subject_of = RAJ
                        exists = yes
                        NOT = { has_idea = idea_RAJ_princely_autonomy }
                    }

                    add_ideas = idea_RAJ_princely_autonomy
                }
            }

            custom_effect_tooltip = RAJ_release_subjects_hint_tt


        }
    }


    focus = {
        id = RAJ_funnel_british_investments_into_princely_states
        icon = GFX_goal_tfv_strengthen_commonwealth_ties
        prerequisite = { focus = RAJ_princely_autonomy }
        #mutually_exclusive = { focus =  }
        x = 0
        y = 1
        relative_position_id = RAJ_princely_autonomy

        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {
        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY FOCUS_FILTER_STABILITY}

        completion_reward = {
            add_stability = 0.03


                build_civ_in_indian_releasables_once = yes
            
            
            custom_effect_tooltip = RAJ_funnel_british_investments_into_princely_states_tt
            hidden_effect = {
                controlled_civilian_factories_excluding_trade = yes
                calc_expected_consumer_goods_for_taxes = yes
            }
        }
    }

    focus = {
        id = RAJ_form_a_police_force
        icon = GFX_focus_SWE_revoke_militia_law
        prerequisite = { focus = RAJ_appoint_a_c_suite }
        #mutually_exclusive = { focus =  }
        x = -7
        y = 1
        relative_position_id = RAJ_appoint_a_c_suite

        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}

        completion_reward = {
            add_ideas = idea_RAJ_empowered_police_force
            try_build_mil_in_core_otherwise_build_in_controlled = yes
        }
    }
    

    focus = {
        id = RAJ_headhunt_army_personell
        icon = GFX_focus_RAJ_headhunt_army_personell
        prerequisite = { focus = RAJ_form_a_police_force }
        #mutually_exclusive = { focus =  }
        x = 0
        y = 1
        relative_position_id = RAJ_form_a_police_force

        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no


        completion_reward = {
            swap_ideas = {
                remove_idea = idea_RAJ_empowered_police_force
                add_idea = idea_RAJ_pmc
            }
        }
    }
    
    focus = {
        id = RAJ_a_private_military
        icon = GFX_focus_RAJ_a_private_military
        prerequisite = { focus = RAJ_headhunt_army_personell }
        #mutually_exclusive = { focus =  }
        x = 0
        y = 1
        relative_position_id = RAJ_headhunt_army_personell

        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}

        completion_reward = {
            division_template = {
                name = "Private Military"       
                #division_names_group = 
                is_locked = no
                force_allow_recruiting = no
                regiments = {
                    irregular_infantry = { x = 0 y = 0 }
                    irregular_infantry = { x = 0 y = 1 }
                    irregular_infantry = { x = 0 y = 2 }
                    irregular_infantry = { x = 1 y = 0 }
                    irregular_infantry = { x = 1 y = 1 }
                    irregular_infantry = { x = 1 y = 2 }
                    irregular_infantry = { x = 2 y = 0 }
                    irregular_infantry = { x = 2 y = 1 }
                }
            }
            hidden_effect = {
                set_rule = { 
                    can_send_volunteers = yes # rule to use, e.g.  can_not_declare_war = yes
                }
            }
            swap_ideas = {
                remove_idea = idea_RAJ_pmc
                add_idea = idea_RAJ_pmc_2
            }

            random_core_state = {
                limit = {
                    is_fully_controlled_by = ROOT
                }
                create_unit = {
                    division = "name = \"Private Military\" division_template = \"Private Military\" start_experience_factor = 0.1 start_equipment_factor = 0.8 start_manpower_factor = 1"
                    allow_spawning_on_enemy_provs = no 
                    count = 12
                    owner = ROOT
                }
                
            }

            custom_effect_tooltip = RAJ_a_private_military_tt_1
        }
    }



    

    focus = {
        id = RAJ_lobby_for_increased_policing_responsibilities
        icon = GFX_focus_chi_army_reform
        prerequisite = { focus = RAJ_a_private_military }
        #mutually_exclusive = { focus =  }
        x = 0
        y = 1
        relative_position_id = RAJ_a_private_military 

        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        completion_reward = {
          swap_ideas = {
                remove_idea = idea_RAJ_pmc_2
                add_idea = idea_RAJ_pmc_3
            }
  
        }
    }
    

    focus = {
        id = RAJ_privatized_tutelage
        icon = GFX_focus_research
        prerequisite = { focus = RAJ_take_over_administrative_rights }
        #mutually_exclusive = { focus =  }
        x = -1
        y = 1
        relative_position_id = RAJ_take_over_administrative_rights

        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_RESEARCH}

        completion_reward = {
            if = {
                limit = {
                    has_dlc = "Gotterdammerung"
                }

                random_scientist = {
                    limit = {
                        has_scientist_level = {
                            specialization = specialization_air
                            level > 0
                        }
                    }
                    add_scientist_level = {
                        specialization = specialization_air
                        level = 1
                    }
                }

                
                random_scientist = {
                    limit = {
                        has_scientist_level = {
                            specialization = specialization_land
                            level > 0
                        }
                    }
                    add_scientist_level = {
                        specialization = specialization_land
                        level = 1
                    }
                }

                random_scientist = {
                    limit = {
                        has_scientist_level = {
                            specialization = specialization_nuclear
                            level > 0
                        }
                    }
                    add_scientist_level = {
                        specialization = specialization_nuclear
                        level = 1
                    }
                }

                random_scientist = {
                    limit = {
                        has_scientist_level = {
                            specialization = specialization_naval
                            level > 0
                        }
                    }
                    add_scientist_level = {
                        specialization = specialization_naval
                        level = 1
                    }
                }
            }
            else = {
                add_tech_bonus = {
                    bonus = 0.25
                    uses = 1
                    category = electronics # optional 
                    # technology  = technology_id # optional
                }
            }

            add_research_slot = 1
            hidden_effect = {
                calc_expected_consumer_goods_for_taxes = yes
            }
        }
    }
    

    focus = {
        id = RAJ_privatized_healthcare
        icon = GFX_focus_generic_population_growth
        prerequisite = { focus = RAJ_take_over_administrative_rights }
        #mutually_exclusive = { focus =  }
        x = 2
        y = 0
        relative_position_id = RAJ_privatized_tutelage

        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_RESEARCH FOCUS_FILTER_MANPOWER}

        completion_reward = {
            add_tech_bonus = {
                name = RAJ_privatized_healthcare
                bonus = 0.5
                uses = 2
                category = hospital_tech  # optional 
                # technology  = technology_id # optional
            }


            add_breakthrough_points = {
                specialization = specialization_air
                value = 1
            }

            if = {
                limit = {
                    has_dlc = "Gotterdammerung"
                }

                add_tech_bonus = {
                    name = RAJ_privatized_healthcare
                    bonus = 0.35
                    uses = 1
                    category = helicopter_tech # optional 
                    # technology  = technology_id # optional
                }
            }

            hidden_effect = {
                controlled_civilian_factories_excluding_trade = yes
                calc_expected_consumer_goods_for_taxes = yes
            }

            add_manpower = 35000
        }
    } 


    focus = {
        id = RAJ_company_bonuses
        icon = GFX_focus_mex_privatisation
        prerequisite = { focus = RAJ_appoint_a_c_suite }
        #mutually_exclusive = { focus =  }
        x = 2
        y = 1
        relative_position_id = RAJ_appoint_a_c_suite 

        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}

        completion_reward = {
            try_build_civ_in_core_otherwise_build_in_controlled_2_civs = yes
            try_build_civ_in_core_otherwise_build_in_controlled = yes
            hidden_effect = {
                controlled_civilian_factories_excluding_trade = yes
                calc_expected_consumer_goods_for_taxes = yes
            }
        }
    }

    focus = {
        id = RAJ_union_busting
        icon = GFX_focus_RAJ_union_busting
        prerequisite = { focus = RAJ_form_a_police_force }
        #mutually_exclusive = { focus =  }
        x = -3
        y = 1
        relative_position_id = RAJ_form_a_police_force

        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY FOCUS_FILTER_POLITICAL}

        completion_reward = {
            add_timed_idea = {
                idea = idea_RAJ_union_busting
                days = 730
            }

            try_build_civ_in_core_otherwise_build_in_controlled_2_civs = yes
            try_build_civ_in_core_otherwise_build_in_controlled = yes
            hidden_effect = {
                controlled_civilian_factories_excluding_trade = yes
                calc_expected_consumer_goods_for_taxes = yes
            }
        }
    }

    focus = {
        id = RAJ_arrest_congress_leaders
        icon = GFX_focus_generic_conspiracy
        prerequisite = { focus = RAJ_union_busting }
        #mutually_exclusive = { focus =  }
        x = 0
        y = 1
        relative_position_id = RAJ_union_busting 

        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL_CHARACTER FOCUS_FILTER_POLITICAL}

        completion_reward = {
            remove_ideas = { idea_RAJ_upset_congress_leaders }
            hidden_effect = {
                controlled_civilian_factories_excluding_trade = yes
                calc_expected_consumer_goods_for_taxes = yes
            }

        }
    }
    



    focus = {
        id = RAJ_circuvment_demobilization_restrictions
        icon = GFX_focus_RAJ_circuvment_demobilization_restrictions
        prerequisite = { focus = RAJ_lobby_for_increased_policing_responsibilities }
        #mutually_exclusive = { focus =  }
        x = -1
        y = 1
        relative_position_id = RAJ_lobby_for_increased_policing_responsibilities

        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        completion_reward = {
            if = {
                limit = {
                    has_idea = idea_RAJ_demobilization
                }
                remove_ideas = idea_RAJ_demobilization
            }

            add_timed_idea = {
                idea = idea_RAJ_schemes_of_a_ungentlemanly_nature
                days = 270
            }
        }
    }


    focus = {
        id = RAJ_bombay_trade_port
        icon = GFX_goal_generic_construct_naval_dockyard
        prerequisite = { focus = RAJ_lobby_for_increased_policing_responsibilities }
        #mutually_exclusive = { focus =  }
        x = -3
        y = 1
        relative_position_id = RAJ_lobby_for_increased_policing_responsibilities

        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {
            429 = {
                is_fully_controlled_by = ROOT
            }
        }
        
        bypass = {
            NOT = {
                429 = {
                    is_controlled_by = ROOT
                }
            }
        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}

        completion_reward = {
            429 = {
                add_extra_state_shared_building_slots = 3
                add_building_construction = {
                    type = dockyard
                    level = 3
                    instant_build = yes
                }
            }
        }
    }

    focus = {
        id = RAJ_take_in_british_naval_experts
        icon = GFX_goal_tfv_generic_tech_sharing
        prerequisite = { focus = RAJ_bombay_trade_port }
        #mutually_exclusive = { focus =  }
        x = 0
        y = 1
        relative_position_id = RAJ_bombay_trade_port

        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {
            ENG = {
                has_war_with = ROOT
            }
        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_RESEARCH FOCUS_FILTER_NAVY_XP FOCUS_FILTER_STABILITY}

        completion_reward = {
            add_stability = 0.03
            if = {
                limit = {
                    has_dlc = "Man the Guns"
                }
                add_tech_bonus = {
                    name = RAJ_take_in_british_naval_experts
                    bonus = 0.4
                    uses = 2
                    category = ship_modules_tech # optional 
                    # technology  = technology_id # optional
                }
            }
            else = {
                navy_experience = 50
            }
            navy_experience = 50
            add_to_tech_sharing_group = RAJ_naval_tech_sharing_group
            custom_effect_tooltip = newline_tt
            ENG = {
                add_to_tech_sharing_group = RAJ_naval_tech_sharing_group
            }
        }
    }

    focus = {
        id = RAJ_the_need_for_a_mercantile_navy
        icon = GFX_focus_generic_merchant_fleet
        prerequisite = { focus = RAJ_bombay_trade_port }
        #mutually_exclusive = { focus =  }
        x = -2
        y = 1
        relative_position_id = RAJ_bombay_trade_port

        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {
            429 = {
                is_fully_controlled_by = ROOT
            }
        }
        
        bypass = {
            NOT = {
                429 = {
                    is_controlled_by = ROOT
                }
            }
        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}

        completion_reward = {
            429 = {
                add_extra_state_shared_building_slots = 2
                add_building_construction = {
                    type = dockyard
                    level = 2
                    instant_build = yes
                }
            }
            add_equipment_to_stockpile = { 
                type = convoy_1
                amount = 50 
                producer = ENG
            }
        }
    }

    focus = {
        id = RAJ_trade_protection
        icon = GFX_focus_generic_destroyer
        prerequisite = { focus = RAJ_the_need_for_a_mercantile_navy focus = RAJ_take_in_british_naval_experts }
        #mutually_exclusive = { focus =  }
        x = 1
        y = 1
        relative_position_id = RAJ_the_need_for_a_mercantile_navy

        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {
            ENG = {
                has_war_with = ROOT
            }
        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_RESEARCH FOCUS_FILTER_INDUSTRY FOCUS_FILTER_STABILITY}

        completion_reward = {
            add_stability = 0.03
            add_tech_bonus = {
                bonus = 1
                uses = 1
                category = dd_tech # optional 
                # technology  = technology_id # optional
            }

            if = {
                limit = {
                    has_dlc = "Man the Guns"
                }

                add_tech_bonus = {
                    bonus = 0.5
                    uses = 2
                    category = asw_tech # optional 
                # technology  = technology_id # optional
                }
            }


            try_build_civ_in_core_otherwise_build_in_controlled = yes
        }
    }
    
    focus = {
        id = RAJ_procure_the_guns
        icon = GFX_focus_generic_railway_gun
        prerequisite = { focus = RAJ_trade_protection }
        #mutually_exclusive = { focus =  }
        x = -2
        y = 1
        relative_position_id = RAJ_trade_protection

        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {
            if = {
                limit = {
                    has_dlc = "No Step Back"
                }
                has_tech = railway_gun
            }
            else = {
                has_tech = artillery2
            }
        }
        
        bypass = {
            ENG = {
                has_war_with = ROOT
            }
        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_RESEARCH FOCUS_FILTER_ARMY_XP}

        completion_reward = {
            if = {
                limit = {
                    has_dlc = "No Step Back"
                }
               create_railway_gun = {
                    equipment = railway_gun_equipment_1 
                    name = "Varuna's Flagship Gun"
                }
            }
            else = {
                add_tech_bonus = {
                    name = RAJ_procure_the_guns
                    bonus = 0.5
                    uses = 2
                    category = artillery # optional 
                    # technology  = technology_id # optional
                }
                army_experience = 25
            }
        }
    }

    focus = {
        id = RAJ_procure_the_task_force
        icon = GFX_goal_generic_navy_anti_submarine
        prerequisite = { focus = RAJ_trade_protection }
        #mutually_exclusive = { focus =  }
        x = 0
        y = 1
        relative_position_id = RAJ_trade_protection

        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {
            OR = {
                has_navy_size = {
                    size > 8 # Use < or >
                    unit = destroyer# optional
                }
                has_navy_size = {
                    size > 2 # Use < or >
                    unit = light_cruiser# optional
                }
            }
        }
        
        bypass = {
        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}

        completion_reward = {
            if = {
                limit = {
                    NOT = {
                        has_idea = idea_RAJ_long_range_sea_operations
                    }
                }
                add_ideas = idea_RAJ_long_range_sea_operations
            }
            else = {
                swap_ideas = {
                    remove_idea = idea_RAJ_long_range_sea_operations
                    add_idea = idea_RAJ_long_range_sea_operations_2
                }
            }
            try_build_dockyard_in_core_otherwise_build_in_controlled = yes
            try_build_dockyard_in_core_otherwise_build_in_controlled = yes
        }
    }

    focus = {
        id = RAJ_purchase_destroyers_and_subs
        icon = GFX_focus_SWE_italian_destroyers
        prerequisite = {focus = RAJ_bombay_trade_port  }
        relative_position_id = RAJ_bombay_trade_port
        x = -4
        y = 1

        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {

        }

        bypass = {
            
        }

        search_filters = {FOCUS_FILTER_INTERNATIONAL_TRADE}

        completion_reward = {
            custom_effect_tooltip = ETH_purchase_obsolete_ships_tt
            set_country_flag = generic_purchase_old_ships_flag
        }

    }

     focus = {
        id = RAJ_procure_the_armor
        icon = GFX_goal_generic_build_tank
        prerequisite = { focus = RAJ_trade_protection }
        #mutually_exclusive = { focus =  }
        x = 2
        y = 0
        relative_position_id = RAJ_procure_the_task_force

        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {
            if = {
                limit = {
                    has_dlc = "No Step Back"
                }
                has_tech = armor_tech_3
            }
            else = {
                has_tech = improved_heavy_tank
            }

        }
        
        bypass = {
        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_RESEARCH}

        completion_reward = {
            add_tech_bonus = {
                bonus = 0.65
                uses = 1
                category = armor # optional 
                # technology  = technology_id # optional
            }

            if = {
                limit = {
                    NOT = {
                        has_idea = idea_RAJ_long_range_sea_operations
                    }
                }
                add_ideas = idea_RAJ_long_range_sea_operations
            }
            else = {
                swap_ideas = {
                    remove_idea = idea_RAJ_long_range_sea_operations
                    add_idea = idea_RAJ_long_range_sea_operations_2
                }
            }

        }
    }

    focus = {
        id = RAJ_the_varuna_class
        icon = GFX_focus_SWE_Vasa_II 
        x = 0
        y = 1

        cost = 6
        prerequisite = { focus = RAJ_procure_the_guns }
        prerequisite = { focus = RAJ_procure_the_task_force }
        prerequisite = { focus = RAJ_procure_the_armor }
        relative_position_id = RAJ_procure_the_task_force
        

        ai_will_do = {
            factor = 10     
        }

        available = {
            if = {
                limit = { has_dlc = "Man the Guns" }
                has_tech = improved_ship_hull_heavy
            }
            else = {
                has_tech = basic_battlecruiser
            }
        }

        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        completion_reward = {
            if = {
                limit = { has_dlc = "Man the Guns" }

                create_equipment_variant = {
                    name = "Varuna"
                    type = ship_hull_heavy_3
                    parent_version = 0
                    modules = {
                        fixed_ship_anti_air_slot=ship_anti_air_3
                        fixed_ship_engine_slot=heavy_ship_engine_3
                        fixed_ship_secondaries_slot=dp_ship_secondaries_2
                        fixed_ship_armor_slot=ship_armor_bb_3
                        front_1_custom_slot=ship_heavy_battery_3
                        mid_1_custom_slot=ship_airplane_launcher_2
                        mid_2_custom_slot=ship_heavy_battery_3
                        rear_1_custom_slot=ship_heavy_battery_3
                        fixed_ship_battery_slot=ship_heavy_battery_3
                        fixed_ship_fire_control_system_slot=ship_fire_control_system_3
                        mid_3_custom_slot=ship_airplane_launcher_2
                    }
                }
                add_equipment_production = {
                    equipment = {
                        type = ship_hull_heavy_3
                        creator = RAJ
                        version_name = "Varuna"
                    }
                    requested_factories = 5
                    progress = 0.6 
                }
            }
            else = { #NON MTG
                create_equipment_variant = {
                    name = "Varuna"
                    type = battle_cruiser_2
                    parent_version = 0
                    modules = {
                        fixed_ship_battery_slot = ship_heavy_battery_3
                        fixed_ship_anti_air_slot = ship_anti_air_3
                        fixed_ship_fire_control_system_slot = ship_fire_control_system_3
                        fixed_ship_radar_slot = ship_radar_2
                        fixed_ship_engine_slot = heavy_ship_engine_4
                        fixed_ship_secondaries_slot = dp_ship_secondaries_3
                        fixed_ship_armor_slot = ship_armor_bc_3
                        front_1_custom_slot = ship_heavy_battery_2
                        mid_1_custom_slot = ship_anti_air_3
                        mid_2_custom_slot = dp_ship_secondaries_2
                        rear_1_custom_slot = ship_heavy_battery_2
                    }
                }
                add_equipment_production = {
                    equipment = {
                        type = battle_cruiser_2
                        creator = RAJ
                        version_name = "Varuna"
                    }
                    requested_factories = 5
                    progress = 0.6 
                    amount = 1
                    name = "Varuna"
                }


            }
            custom_effect_tooltip = SWE_nordljus_tt_2
           swap_ideas = {
               remove_idea = idea_RAJ_long_range_sea_operations_2
               add_idea = idea_RAJ_long_range_sea_operations_3
           }
        }
    }

    focus = {
        id = RAJ_purchase_cruisers_and_dreadnoughts
        icon = GFX_goal_generic_navy_battleship
        prerequisite = {focus = RAJ_purchase_destroyers_and_subs  }
        relative_position_id = RAJ_purchase_destroyers_and_subs
        x = 0
        y = 1

        cost = 5

        available = {

        }

        bypass = {
            
        }

        ai_will_do = {
            factor = 5
            modifier = {
                any_controlled_state = {
                    is_coastal = no
                }
                factor = 0  
            }
        }

        search_filters = {FOCUS_FILTER_INTERNATIONAL_TRADE}

        completion_reward = {
            custom_effect_tooltip = SMB_purchase_obsolete_ships_tt
            set_country_flag = generic_purchase_dreadnoughts_flag
        }
    }

    focus = {
        id = RAJ_manipulate_army_statistics
        icon = GFX_focus_ARG_keep_it_in_the_party
        prerequisite = { focus = RAJ_lobby_for_increased_policing_responsibilities }
        #mutually_exclusive = { focus =  }
        x = 2
        y = 0
        relative_position_id = RAJ_circuvment_demobilization_restrictions

        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY FOCUS_FILTER_MANPOWER}

        completion_reward = {
            try_build_mil_in_core_otherwise_build_in_controlled_2_mil = yes
            random_core_state = {
                limit = {
                    is_fully_controlled_by = ROOT
                }
                create_unit = {
                    division = "name = \"Private Military\" division_template = \"Private Military\" start_experience_factor = 0.1 start_equipment_factor = 0.8 start_manpower_factor = 1"
                    allow_spawning_on_enemy_provs = no 
                    count = 12
                    owner = ROOT
                }
            }



            custom_effect_tooltip = RAJ_manipulate_army_statistics_tt
        }
    }    



    focus = {
        id = RAJ_open_up_new_markets
        icon = GFX_goal_generic_territory_or_war
        prerequisite = { focus = RAJ_circuvment_demobilization_restrictions focus = RAJ_manipulate_army_statistics }
        #mutually_exclusive = { focus =  }
        x = 1
        y = 1
        relative_position_id = RAJ_circuvment_demobilization_restrictions

        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {
		    is_subject = no
			num_of_factories > 25
			has_army_manpower = { size > 99999 }
        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_ANNEXATION}

        completion_reward = {
            if = {
                limit = {
                    BHU = {
                        exists = yes
                        NOT = { is_subject_of = ROOT }
                    }
                }

                create_wargoal = {
                    type = annex_everything
                    target = BHU
                }
            }

            if = {
                limit = {
                    NEP = {
                        exists = yes
                        NOT = { is_subject_of = ROOT }
                    }
                }

                create_wargoal = {
                    type = annex_everything
                    target = NEP
                }
            }

            if = {
                limit = {
                    PER = {
                        exists = yes
                        NOT = { is_subject_of = ROOT }
                    }
                }

                create_wargoal = {
                    type = annex_everything
                    target = PER
                }
            }

            if = {
                limit = {
                    TIB = {
                        exists = yes
                        NOT = { is_subject_of = ROOT }
                    }
                }

                create_wargoal = {
                    type = annex_everything
                    target = TIB
                }
            }
        }
    }
        

    focus = {
        id = RAJ_acquire_new_resources
        icon = GFX_focus_generic_mining_industry
        prerequisite = { focus = RAJ_open_up_new_markets }
        #mutually_exclusive = { focus =  }
        x = 0
        y = 1
        relative_position_id = RAJ_open_up_new_markets

        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }

        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY FOCUS_FILTER_RESEARCH}

        completion_reward = {
            if = {
                limit = {
                    OR = {
                        controls_state = 432
                        432 = {
                            owner = { is_subject_of = ROOT }
                        }
                    }
                }

                432 = {
                    add_resource = {
                        type = oil
                        amount = 12
                    }
                }
            }

            if = {
                limit = {
                    OR = {
                        controls_state = 429
                        432 = {
                            owner = { is_subject_of = ROOT }
                        }
                    }
                }

                429 = {
                    add_resource = {
                        type = steel
                        amount = 19
                    }
                }
            }


            add_tech_bonus = {
                name = RAJ_acquire_new_resources
                bonus = 1
                uses = 1
                category = synth_resources # optional 
                # technology  = technology_id # optional
            }
            try_build_civ_in_core_otherwise_build_in_controlled = yes
        }
    }

    focus = {
        id = RAJ_mineral_exploitation_institute
        icon = GFX_focus_research
        prerequisite = { focus = RAJ_acquire_new_resources }
        #mutually_exclusive = { focus =  }
        x = 0
        y = 1
        relative_position_id = RAJ_acquire_new_resources

        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_RESEARCH FOCUS_FILTER_POLITICAL_CHARACTER FOCUS_FILTER_STABILITY}

        completion_reward = {
            add_stability = 0.03
            if = {
                limit = {
                    has_dlc = "Gotterdammerung"
                }

                random_scientist = {
                    limit = {
                        has_scientist_level = {
                            specialization = specialization_air
                            level > 0
                        }
                    }
                    add_scientist_level = {
                        specialization = specialization_air
                        level = 1
                    }
                }
                
                random_scientist = {
                    limit = {
                        has_scientist_level = {
                            specialization = specialization_land
                            level > 0
                        }
                    }
                    add_scientist_level = {
                        specialization = specialization_land
                        level = 1
                    }
                }

                random_scientist = {
                    limit = {
                        has_scientist_level = {
                            specialization = specialization_naval  
                            level > 0
                        }
                    }
                    add_scientist_level = {
                        specialization = specialization_naval
                        level = 1
                    }
                }
            }


            add_research_slot = 1
            hidden_effect = {
                calc_expected_consumer_goods_for_taxes = yes
            }
        }
    }

    focus = {
        id = RAJ_attract_scientists
        icon = GFX_focus_research
        prerequisite = { focus = RAJ_mineral_exploitation_institute }
        x = 0
        y = 1
        relative_position_id = RAJ_mineral_exploitation_institute
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {
            num_of_factories > 50
        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_RESEARCH}

        complete_tooltip = {

        }

        completion_reward = {
            add_research_slot = 1
        }
    }

    
    focus = {
        id = RAJ_hostile_takeover
        icon = GFX_focus_generic_annex_country_2
        prerequisite = { focus = RAJ_privatized_tutelage focus = RAJ_privatized_healthcare }
        #mutually_exclusive = { focus =  }
        x = 1
        y = 1
        relative_position_id = RAJ_privatized_tutelage 

        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_ANNEXATION}

        completion_reward = {
            custom_effect_tooltip = RAJ_hostile_takeover_tt
            hidden_effect = {
                controlled_civilian_factories_excluding_trade = yes
                calc_expected_consumer_goods_for_taxes = yes
            }
        }
    }

    focus = {
        id = RAJ_vertical_integration
        icon = GFX_goal_generic_consumer_goods
        prerequisite = { focus = RAJ_hostile_takeover }
        #mutually_exclusive = { focus =  }
        x = 0
        y = 1
        relative_position_id = RAJ_hostile_takeover 

        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}

        completion_reward = {
            custom_effect_tooltip = modify_taxation_bracket_all
            add_to_variable = { tier_one_taxes_tax = -0.05 }
            set_variable = { tier_one_taxes_tax_tt = tier_one_taxes_tax }
            multiply_variable = { tier_one_taxes_tax_tt = 100 }

            add_to_variable = { tier_two_taxes_tax = -0.05 }
            set_variable = { tier_two_taxes_tax_tt = tier_two_taxes_tax }
            multiply_variable = { tier_two_taxes_tax_tt = 100 }
            #custom_effect_tooltip = newline_tt

            # custom_effect_tooltip = modify_taxation_third_bracket
             #tier 3
            add_to_variable = { tier_three_taxes_tax = -0.05 }
            set_variable = { tier_three_taxes_tax_tt = tier_three_taxes_tax }
            multiply_variable = { tier_three_taxes_tax_tt = 100 }
            custom_effect_tooltip = newline_tt
             
            # custom_effect_tooltip = modify_taxation_fourth_bracket
            add_to_variable = { tier_four_taxes_tax = -0.05 }
            set_variable = { tier_four_taxes_tax_tt = tier_four_taxes_tax } #for tooltipping val*100
            multiply_variable = { tier_four_taxes_tax_tt = 100 }
           # custom_effect_tooltip = newline_tt 
            hidden_effect = {
                controlled_civilian_factories_excluding_trade = yes
                calc_expected_consumer_goods_for_taxes = yes
            }
            try_build_civ_in_core_otherwise_build_in_controlled = yes
        }
    }


    focus = {
        id = RAJ_expand_tax_loopholes
        icon = GFX_goal_generic_consumer_goods
        prerequisite = { focus = RAJ_vertical_integration }
        #mutually_exclusive = { focus =  }
        x = 3
        y = 1
        relative_position_id = RAJ_vertical_integration

        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}

        completion_reward = {
            custom_effect_tooltip = modify_taxation_bracket_all
            add_to_variable = { tier_one_taxes_tax = -0.05 }
            set_variable = { tier_one_taxes_tax_tt = tier_one_taxes_tax }
            multiply_variable = { tier_one_taxes_tax_tt = 100 }

            add_to_variable = { tier_two_taxes_tax = -0.05 }
            set_variable = { tier_two_taxes_tax_tt = tier_two_taxes_tax }
            multiply_variable = { tier_two_taxes_tax_tt = 100 }
            #custom_effect_tooltip = newline_tt

            # custom_effect_tooltip = modify_taxation_third_bracket
             #tier 3
            add_to_variable = { tier_three_taxes_tax = -0.05 }
            set_variable = { tier_three_taxes_tax_tt = tier_three_taxes_tax }
            multiply_variable = { tier_three_taxes_tax_tt = 100 }
            custom_effect_tooltip = newline_tt
             
            # custom_effect_tooltip = modify_taxation_fourth_bracket
            add_to_variable = { tier_four_taxes_tax = -0.05 }
            set_variable = { tier_four_taxes_tax_tt = tier_four_taxes_tax } #for tooltipping val*100
            multiply_variable = { tier_four_taxes_tax_tt = 100 }
           # custom_effect_tooltip = newline_tt 
            hidden_effect = {
                controlled_civilian_factories_excluding_trade = yes
                calc_expected_consumer_goods_for_taxes = yes
            }
            try_build_civ_in_core_otherwise_build_in_controlled = yes
        }
    }

    focus = {
        id = RAJ_new_economic_policy
        icon = GFX_focus_RAJ_trickle_down_economics
        prerequisite = { focus = RAJ_vertical_integration }
        #mutually_exclusive = { focus =  }
        x = 1
        y = 1
        relative_position_id = RAJ_vertical_integration

        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}

        completion_reward = {
            add_ideas = capital_investment_model

            hidden_effect = {
                controlled_civilian_factories_excluding_trade = yes
                calc_expected_consumer_goods_for_taxes = yes
            }
        }
    }

    focus = {
        id = RAJ_special_economic_zones
        icon = GFX_focus_RAJ_special_economic_zones
        prerequisite = { focus = RAJ_vertical_integration }
        #mutually_exclusive = { focus =  }
        x = -1
        y = 1
        relative_position_id = RAJ_vertical_integration

        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY FOCUS_FILTER_RESEARCH FOCUS_FILTER_INTERNATIONAL_TRADE}

        completion_reward = {
            add_ideas = special_economic_zones
        }
    }

    focus = {
        id = RAJ_phantom_armies
        icon = GFX_focus_LAT_suspend_constitution_of_latvia
        prerequisite = { focus = RAJ_expand_tax_loopholes }
        #mutually_exclusive = { focus =  }
        x = 2
        y = 2
        relative_position_id = RAJ_new_economic_policy

        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}

        completion_reward = {

            if = {
                limit = {
                    has_completed_focus = RAJ_incorporation_of_the_east_india_company
                }
                increase_taxes_threshold_by_4 = yes
            }
            else = {
                custom_effect_tooltip = tier_threshold_increase_not_setup
            }
            

             hidden_effect = {
                controlled_civilian_factories_excluding_trade = yes
                calc_expected_consumer_goods_for_taxes = yes
            }
        }
    }


    focus = {
        id = RAJ_debt_manipulation
        icon = GFX_focus_ETH_adopt_the_lira
        prerequisite = { focus = RAJ_phantom_armies }
        #mutually_exclusive = { focus =  }
        x = -1
        y = 1
        relative_position_id = RAJ_phantom_armies

        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}

        completion_reward = {

            if = {
                limit = {
                    has_completed_focus = RAJ_incorporation_of_the_east_india_company
                }
                increase_taxes_threshold_by_4 = yes
            }
            else = {
                custom_effect_tooltip = tier_threshold_increase_not_setup
            }

             hidden_effect = {
                controlled_civilian_factories_excluding_trade = yes
                calc_expected_consumer_goods_for_taxes = yes
            }
        }
    }

    focus = {
        id = RAJ_corporate_domination
        icon = GFX_goal_generic_positive_trade_relations
        prerequisite = { focus = RAJ_phantom_armies }
        #mutually_exclusive = { focus =  }
        x = 1
        y = 1
        relative_position_id = RAJ_phantom_armies

        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}

        completion_reward = {
            try_build_civ_in_core_otherwise_build_in_controlled_2_civs = yes
            try_build_civ_in_core_otherwise_build_in_controlled = yes
            add_stability = -0.06
            hidden_effect = {
                controlled_civilian_factories_excluding_trade = yes
                calc_expected_consumer_goods_for_taxes = yes
            }
        }
    }

    focus = {
        id = RAJ_restrictive_administration_budget
        icon = GFX_focus_ARG_anti_corruption_policies
        prerequisite = { focus = RAJ_special_economic_zones }
        #mutually_exclusive = { focus =  }
        x = 0
        y = 2
        relative_position_id = RAJ_special_economic_zones 

        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY FOCUS_FILTER_POLITICAL}

        completion_reward = {
            every_owned_state = {
                limit = {
                    is_controlled_by = ROOT
                    has_resistance = yes
                }
                add_resistance = 15
            }
            add_timed_idea = {
                idea = idea_RAJ_cost_underrun
                days = 480
            }
        }
    }

    focus = {
        id = RAJ_institutional_money_laundering
        icon = GFX_focus_RAJ_institutional_money_laundering
        prerequisite = { focus = RAJ_restrictive_administration_budget focus = RAJ_shareholder_democracy }
        #mutually_exclusive = { focus =  }
        x = 1
        y = 1
        relative_position_id = RAJ_restrictive_administration_budget 

        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_RESEARCH FOCUS_FILTER_INDUSTRY}

        completion_reward = {
            add_tech_bonus = {
                bonus = 0.25
                uses = 1
                category = construction_tech # optional 
                # technology  = technology_id # optional
            }
            unlock_decision_tooltip = {
                decision = RAJ_GOE_tax_fraud
                show_effect_tooltip = yes # default is no
                show_modifiers = yes # default is no
            }

            hidden_effect = {
                controlled_civilian_factories_excluding_trade = yes
                calc_expected_consumer_goods_for_taxes = yes
            }
        }
    }

    focus = {
        id = RAJ_deathknell_to_the_raj #I miss you so much Tirisfal
        icon = GFX_focus_SWE_neither_death_nor_dishonor
        prerequisite = { focus = RAJ_institutional_money_laundering }
        #mutually_exclusive = { focus =  }
        x = 0
        y = 1
        relative_position_id = RAJ_institutional_money_laundering

        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {
            custom_trigger_tooltip = {
                tooltip = RAJ_deathknell_to_the_raj_trigger
                 has_event_target = UK_INDIA
            }   
            if = {
                limit = {
                    has_event_target = UK_INDIA
                }
                event_target:UK_INDIA = {
                    exists = yes
                    num_of_controlled_states < 5
                }
            }

        }
        
        bypass = {
            custom_trigger_tooltip = {
                tooltip = RAJ_deathknell_to_the_raj_trigger
                 has_event_target = UK_INDIA
            }   
            event_target:UK_INDIA = {
                OR = {
                    exists = no
                    has_war_with = ROOT
                    has_capitulated = yes
                }
            }
        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_ANNEXATION FOCUS_FILTER_STABILITY}

        completion_reward = {
             if = {
                limit = {
                    has_idea = RAJ_marginalized_muslim_community
                }
                remove_ideas = RAJ_marginalized_muslim_community
            }
            if = {
                limit = {
                    has_event_target = UK_INDIA
                    event_target:UK_INDIA = {
                        num_of_controlled_states < 5
                    }
                }

                event_target:UK_INDIA = {
                    every_character = {
                        set_nationality = RAJ
                    }
                }

                annex_country = {
                    target = event_target:UK_INDIA
                    transfer_troops = yes
                }

            } 
            else = {
                custom_effect_tooltip = RAJ_deathknell_to_the_raj_trigger_tt
            }

        }
    }

    focus = {
        id = RAJ_just_good_business
        icon = GFX_focus_RAJ_just_good_business
        prerequisite = { focus = RAJ_deathknell_to_the_raj  }
        #mutually_exclusive = { focus =  }
        x = 0
        y = 1
        relative_position_id = RAJ_deathknell_to_the_raj

        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {
		    OR = { is_faction_leader = yes is_in_faction = no }
		    is_subject = no
			num_of_factories > 35
			has_army_manpower = { size > 99999 }
        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_ANNEXATION FOCUS_FILTER_INDUSTRY}

        completion_reward = {
            try_build_dockyard_in_core_otherwise_build_in_controlled = yes
            try_build_dockyard_in_core_otherwise_build_in_controlled = yes
            create_wargoal = {
                type = annex_everything
                target = INS
                #generator = { state_id } # optional 
            }

            create_wargoal = {
                type = annex_everything
                target = SIA
            }

            hidden_effect = {
                controlled_civilian_factories_excluding_trade = yes
                calc_expected_consumer_goods_for_taxes = yes
            }
        }
    }
    

    focus = {
        id = RAJ_crush_the_anathema
        icon = GFX_focus_RAJ_crush_the_anathema
        prerequisite = { focus = RAJ_just_good_business }
        #mutually_exclusive = { focus =  }
        x = -1
        y = 1
        relative_position_id = RAJ_just_good_business

        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {
		    is_subject = no
			num_of_factories > 50
			has_army_manpower = { size > 199999 }
        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_ANNEXATION}

        completion_reward = {
            every_country = {
                limit = {
                    OR = {
                        has_government = communism
                        communism > 0.45
                    }
                }

                ROOT = {
                    create_wargoal = {
                        type = annex_everything
                        target = PREV
                    }
                }
            }

            hidden_effect = {
                controlled_civilian_factories_excluding_trade = yes
                calc_expected_consumer_goods_for_taxes = yes
            }
        }
    }
    

    focus = {
        id = RAJ_nothing_personal
        icon = GFX_focus_RAJ_clamp_down_on_corruption
        prerequisite = { focus = RAJ_just_good_business }
        #mutually_exclusive = { focus =  }
        x = 2
        y = 0
        relative_position_id = RAJ_crush_the_anathema 

        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {
		    is_subject = no
			num_of_factories > 50
			has_army_manpower = { size > 199999 }
            OR = {
                ENG = {
                    exists = yes
                    NOT = { 
                        is_subject_of = ROOT 
                        is_in_faction_with = ROOT
                    }
                }

                AST = {
                    exists = yes
                    NOT = { 
                        is_subject_of = ROOT 
                        is_in_faction_with = ROOT
                    }
                }


                BRM = {
                    exists = yes
                    NOT = { 
                        is_subject_of = ROOT 
                        is_in_faction_with = ROOT
                    }
                }


                SAF = {
                    exists = yes
                    NOT = { 
                        is_subject_of = ROOT 
                        is_in_faction_with = ROOT
                    }
                }


                CAN = {
                    exists = yes
                    NOT = { 
                        is_subject_of = ROOT 
                        is_in_faction_with = ROOT
                    }
                }


                NZL = {
                    exists = yes
                    NOT = { 
                        is_subject_of = ROOT 
                        is_in_faction_with = ROOT
                    }
                }
            }
        }
        
        bypass = {
            ENG = {
                OR = { 
                    exists = no
                    is_subject_of = ROOT 
                    is_in_faction_with = ROOT
                }
            }

            AST = {
                OR = { 
                    exists = no
                    is_subject_of = ROOT 
                    is_in_faction_with = ROOT
                }
            }


            BRM = {
                OR = { 
                    exists = no
                    is_subject_of = ROOT 
                    is_in_faction_with = ROOT
                }
            }


            SAF = {
                OR = { 
                    exists = no
                    is_subject_of = ROOT 
                    is_in_faction_with = ROOT
                }
            }


            CAN = {
                OR = { 
                    exists = no
                    is_subject_of = ROOT 
                    is_in_faction_with = ROOT
                }
            }


            NZL = {
                OR = { 
                    exists = no
                    is_subject_of = ROOT 
                    is_in_faction_with = ROOT
                }
            }
        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_ANNEXATION}

        completion_reward = {
            if = {
                limit = {
                    NOT = { #inverted avaialble block for tooltip
                        ENG = {
                            exists = yes
                            NOT = { 
                                is_subject_of = ROOT 
                                is_in_faction_with = ROOT
                            }
                        }

                        AST = {
                            exists = yes
                            NOT = { 
                                is_subject_of = ROOT 
                                is_in_faction_with = ROOT
                            }
                        }


                        BRM = {
                            exists = yes
                            NOT = { 
                                is_subject_of = ROOT 
                                is_in_faction_with = ROOT
                            }
                        }


                        SAF = {
                            exists = yes
                            NOT = { 
                                is_subject_of = ROOT 
                                is_in_faction_with = ROOT
                            }
                        }


                        CAN = {
                            exists = yes
                            NOT = { 
                                is_subject_of = ROOT 
                                is_in_faction_with = ROOT
                            }
                        }


                        NZL = {
                            exists = yes
                            NOT = { 
                                is_subject_of = ROOT 
                                is_in_faction_with = ROOT
                            }
                        }
                    }
                }
                custom_effect_tooltip = RAJ_nothing_personal_tt
               
            }
            if = {
                limit = {
                    ENG = {
                        exists = yes
                        NOT = { 
                            is_subject_of = ROOT 
                            is_in_faction_with = ROOT
                        }
                    }
                }

                create_wargoal = {
                    type = annex_everything
                    target = ENG
                }
            }

            if = {
                limit = {
                    AST = {
                        exists = yes
                        NOT = { 
                            is_subject_of = ROOT 
                            is_in_faction_with = ROOT
                        }
                    }
                }

                create_wargoal = {
                    type = annex_everything
                    target = AST
                }
            }

            if = {
                limit = {
                    BRM = {
                        exists = yes
                        NOT = { 
                            is_subject_of = ROOT 
                            is_in_faction_with = ROOT
                        }
                    }
                }

                create_wargoal = {
                    type = annex_everything
                    target = BRM
                }
            }

            if = {
                limit = {
                    SAF = {
                        exists = yes
                        NOT = { 
                            is_subject_of = ROOT 
                            is_in_faction_with = ROOT
                        }
                    }
                }

                create_wargoal = {
                    type = annex_everything
                    target = SAF
                }
            }

            if = {
                limit = {
                    NZL = {
                        exists = yes
                        NOT = { 
                            is_subject_of = ROOT 
                            is_in_faction_with = ROOT
                        }
                    }
                }

                create_wargoal = {
                    type = annex_everything
                    target = NZL
                }
            }

            if = {
                limit = {
                    CAN = {
                        exists = yes
                        NOT = { 
                            is_subject_of = ROOT 
                            is_in_faction_with = ROOT
                        }
                    }
                }

                create_wargoal = {
                    type = annex_everything
                    target = CAN
                }
            }

            hidden_effect = {
                controlled_civilian_factories_excluding_trade = yes
                calc_expected_consumer_goods_for_taxes = yes
            }
            
        }
    }

    focus = {
        id = RAJ_creative_accounting
        icon = GFX_focus_SWI_embrace_rote_drei
        prerequisite = { focus = RAJ_expand_tax_loopholes }
        #mutually_exclusive = { focus =  }
        x = -1
        y = 1
        relative_position_id = RAJ_expand_tax_loopholes

        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}

        completion_reward = {
            custom_effect_tooltip = modify_taxation_bracket_all
            add_to_variable = { tier_one_taxes_tax = -0.05 }
            set_variable = { tier_one_taxes_tax_tt = tier_one_taxes_tax }
            multiply_variable = { tier_one_taxes_tax_tt = 100 }

            add_to_variable = { tier_two_taxes_tax = -0.05 }
            set_variable = { tier_two_taxes_tax_tt = tier_two_taxes_tax }
            multiply_variable = { tier_two_taxes_tax_tt = 100 }
            #custom_effect_tooltip = newline_tt

            # custom_effect_tooltip = modify_taxation_third_bracket
             #tier 3
            add_to_variable = { tier_three_taxes_tax = -0.05 }
            set_variable = { tier_three_taxes_tax_tt = tier_three_taxes_tax }
            multiply_variable = { tier_three_taxes_tax_tt = 100 }
            custom_effect_tooltip = newline_tt
             
            # custom_effect_tooltip = modify_taxation_fourth_bracket
            add_to_variable = { tier_four_taxes_tax = -0.05 }
            set_variable = { tier_four_taxes_tax_tt = tier_four_taxes_tax } #for tooltipping val*100
            multiply_variable = { tier_four_taxes_tax_tt = 100 }
           # custom_effect_tooltip = newline_tt 
            hidden_effect = {
                controlled_civilian_factories_excluding_trade = yes
                calc_expected_consumer_goods_for_taxes = yes
            }
            try_build_civ_in_core_otherwise_build_in_controlled = yes
        }
    }
    

    focus = {
        id = RAJ_corporate_expansion
        icon = GFX_goal_generic_construct_infrastructure
        prerequisite = { focus = RAJ_appoint_a_c_suite }
        #mutually_exclusive = { focus = RAJ_expand_tax_loopholes }
        x = 4
        y = 1
        relative_position_id = RAJ_appoint_a_c_suite 

        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}

        completion_reward = {


            capital_scope ={
                set_state_category = metropolis
                add_extra_state_shared_building_slots = 2
                add_building_construction = {
                    type = arms_factory 
                    level = 1
                    instant_build = yes
                }
                add_building_construction = {
                    type = industrial_complex 
                    level = 1
                    instant_build = yes
                }
            }
        }
    }

    focus = {
        id = RAJ_legalize_the_opium_trade
        icon = GFX_focus_RAJ_legalize_the_opium_trade
        prerequisite = { focus = RAJ_corporate_expansion }
        #mutually_exclusive = { focus =  }
        x = 0
        y = 1
        relative_position_id = RAJ_corporate_expansion

        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}

        completion_reward = {
            add_ideas = idea_RAJ_permit_opium_trade
            hidden_effect = {
                controlled_civilian_factories_excluding_trade = yes
                calc_expected_consumer_goods_for_taxes = yes
            }
        }
    }
    

    focus = {
        id = RAJ_force_china_to_accept_opium_trade
        icon = GFX_focus_attack_china
        prerequisite = { focus = RAJ_legalize_the_opium_trade }
        #mutually_exclusive = { focus =  }
        x = 0
        y = 1
        relative_position_id = RAJ_legalize_the_opium_trade 

        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {
		    is_subject = no
			num_of_factories > 35
			has_army_manpower = { size > 99999 }
            OR = {
                CHI = {
                    controls_state = 743
                    owns_state = 743
                    is_subject = no
                }
                GXC = {
                    controls_state = 591
                    owns_state = 591
                    is_subject = no
                }
            }
        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_ANNEXATION}

        completion_reward = {
            if = {
                limit = {
                    CHI = {
                        controls_state = 743
                        owns_state = 743
                    }
                }

                CHI = {
                    country_event = { id = GOE_RAJ_eic.3  hours = 2 }
                }
                custom_effect_tooltip = if_they_accept_tt
                effect_tooltip = { 
                    RAJ = {  transfer_state = 743  } 
                    custom_effect_tooltip = RAJ_force_china_to_accept_opium_trade_tt
                }
            }
            else_if = {
                limit = {
                    GXC = {
                        controls_state = 591
                        owns_state = 591
                        is_subject = no
                    }
                }

                GXC = {
                    country_event = { id = GOE_RAJ_eic.3  hours = 2 }
                }

                custom_effect_tooltip = if_they_accept_tt
                effect_tooltip = { RAJ = {  transfer_state = 591  } }
                custom_effect_tooltip = RAJ_force_china_to_accept_opium_trade_tt
            }
            else = {
                743 = {
                    controller = {
                        if = {
                            limit = {
                                owns_state = 743 
                            }

                            country_event = { id = GOE_RAJ_eic.3  hours = 2 }
                            
                            custom_effect_tooltip = if_they_accept_tt
                            effect_tooltip = { 
                                RAJ = {  transfer_state = 743  } 
                                custom_effect_tooltip = RAJ_force_china_to_accept_opium_trade_tt
                            }
                        }
                    }
                }
            }

            hidden_effect = {
                controlled_civilian_factories_excluding_trade = yes
                calc_expected_consumer_goods_for_taxes = yes
            }
           
        }
    }

    focus = {
        id = RAJ_shareholder_democracy
        icon = GFX_focus_usa_voter_registration_act
        prerequisite = { focus = RAJ_new_economic_policy }
        #mutually_exclusive = { focus =  }
        x = 0
        y = 2
        relative_position_id = RAJ_new_economic_policy

        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL_CHARACTER FOCUS_FILTER_STABILITY FOCUS_FILTER_POLITICAL}

        completion_reward = {
            add_stability = 0.03
            add_country_leader_trait = shareholder_democracy
            try_build_civ_in_core_otherwise_build_in_controlled = yes
        }
    }
    



    focus = {
        id = RAJ_land_grab
        icon = GFX_focus_DEN_heavy_regulations
        prerequisite = { focus = RAJ_corporate_expansion }
        #mutually_exclusive = { focus =  }
        x = 2
        y = 1
        relative_position_id = RAJ_corporate_expansion

        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_RESEARCH FOCUS_FILTER_INDUSTRY}

        completion_reward = {
            add_tech_bonus = {
                name = RAJ_land_grab
                bonus = 2
                uses = 2
                category = excavation_tech  # optional 
                # technology  = technology_id # optional
            }

            try_build_infra_in_core_otherwise_build_in_controlled = yes
            try_build_infra_in_core_otherwise_build_in_controlled = yes

        }
    }
    

    focus = {
        id = RAJ_deforestation
        icon = GFX_focus_SWE_beneath_sticks_and_stone
        prerequisite = { focus = RAJ_land_grab }
        #mutually_exclusive = { focus =  }
        x = 0
        y = 1
        relative_position_id = RAJ_land_grab

        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}

        completion_reward = {

             every_state = {
                random_select_amount = 4
                limit = {
                    is_in_array = {
                        array = ROOT.owned_states_at_game_start
                        value = THIS
                    }
                    is_controlled_by = ROOT
                }
                add_extra_state_shared_building_slots = 1   
            }
            add_ideas = idea_RAJ_deforestation 

        }
    }
    

#    focus = {
#        id = RAJ_water_privatization
#        icon = GFX_focus_RAJ_water_privatization
#       # prerequisite = { focus = RAJ_lowest_bidder_construction }
#        #mutually_exclusive = { focus =  }
#        x = 2
#        y = 1
#        relative_position_id = RAJ_lowest_bidder_construction
#
#        cost = 6
#
#        ai_will_do = {
#            factor = 1
#        }
#
#        available = {
#
#        }
#        
#        bypass = {
#
#        }
#
#        cancel_if_invalid = yes
#        continue_if_invalid = no
#        available_if_capitulated = no
#
#
#
#        completion_reward = {
#
#        }
#    }
    

    focus = {
        id = RAJ_productivity_mandate
        icon = GFX_focus_CZE_german_puppet
        prerequisite = { focus = RAJ_acquire_new_resources }
        mutually_exclusive = { focus = RAJ_night_shifts }
        x = 2
        y = 1
        relative_position_id = RAJ_acquire_new_resources

        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}

        completion_reward = {
            add_ideas = idea_RAJ_productivity_mandate
            hidden_effect = {
                controlled_civilian_factories_excluding_trade = yes
                calc_expected_consumer_goods_for_taxes = yes
            }
        }
    }
    
    focus = {
        id = RAJ_mass_production
        icon = GFX_focus_generic_mass_production
        prerequisite = { focus = RAJ_productivity_mandate focus = RAJ_night_shifts }
        #mutually_exclusive = { focus =  }
        x = 1
        y = 1
        relative_position_id = RAJ_productivity_mandate

        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}

        completion_reward = {
            add_ideas = idea_RAJ_mass_production
        }
    }

    focus = {
        id = RAJ_trade_federation_of_india
        icon = GFX_focus_RAJ_trade_federation_of_india
        prerequisite = { focus = RAJ_crush_the_anathema focus = RAJ_nothing_personal }

        #mutually_exclusive = { focus =  }
        x = 1
        y = 1
        relative_position_id = RAJ_crush_the_anathema

        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL}

        completion_reward = {
            custom_effect_tooltip = RAJ_india_indivisible_tt
            custom_effect_tooltip = RAJ_trade_federation_of_india_tt
        }
    }

    focus = {
        id = RAJ_night_shifts
        icon = GFX_goal_generic_production2
        prerequisite = { focus = RAJ_acquire_new_resources }
        mutually_exclusive = { focus = RAJ_productivity_mandate }
        x = 2
        y = 0
        relative_position_id = RAJ_productivity_mandate

        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}

        completion_reward = {
            add_ideas = idea_RAJ_night_shifts
            hidden_effect = {
                controlled_civilian_factories_excluding_trade = yes
                calc_expected_consumer_goods_for_taxes = yes
            }
        }
    }
    
   focus = {
        id = RAJ_provincial_autonomy
        icon = GFX_focus_RAJ_provincial_autonomy
        #prerequisite = { focus = }
        mutually_exclusive = { focus = RAJ_great_depression_price_controls }
        x = -22
        y = 0
        relative_position_id = RAJ_indianize_the_army 

        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {
            is_subject = no
        }

        allow_branch = {
            NOT = {
                has_completed_focus = RAJ_great_depression_price_controls
            }
        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_TFV_AUTONOMY }

        completion_reward = {
            add_dynamic_modifier = {
                modifier = idea_RAJ_independence_movement
            }

            hidden_effect = {
                country_event = { id = GOE_RAJ_partition.1 days = 80 } 
                country_event = { id = GOE_RAJ.29 days = 38 }  #April 18ish
            }

            hidden_effect = {
                if = {
                    limit = {
                        has_game_rule = {
                            rule = obsolete_focus_branches_visibility
                            option = HIDE
                        }
                    }
                    mark_focus_tree_layout_dirty = yes
                }
            }
            custom_effect_tooltip = RAJ_provincial_autonomy_tt
        }
    }


    focus = {
        id = RAJ_princely_states_policy
        icon = GFX_focus_rom_handle_king # 
        prerequisite = { focus = RAJ_provincial_autonomy }
        x = -2
        y = 1
        relative_position_id = RAJ_provincial_autonomy 

        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL}

        completion_reward = {
              custom_effect_tooltip = RAJ_provincial_autonomy_occupation_law_tt
        }
    }

#    focus = {
#        id = RAJ_establish_the_reserve_bank_of_india
#        icon = GFX_focus_usa_reestablish_the_gold_standard
#        prerequisite = { focus = RAJ_provincial_autonomy focus = RAJ_incorporation_of_the_east_india_company }
#        x = -2
#        y = 0
#        relative_position_id = RAJ_princely_states_policy 
#
#        cost = 5
#
#        ai_will_do = {
#            factor = 1
#        }
#
#        available = {
#
#        }
#        
#        bypass = {
#
#        }
#
#        cancel_if_invalid = yes
#        continue_if_invalid = no
#        available_if_capitulated = no
#
#
#
#        completion_reward = {
#            custom_effect_tooltip = available_industrial_concern
#            show_ideas_tooltip = idea_RAJ_the_reserve_bank_of_india
#            add_political_power = 25
#        }
#    }
#
#    focus = {
#        id = RAJ_hand_over_aden_to_the_crown
#        icon = GFX_goal_tfv_saf_secure_interests_in_africa
#        prerequisite = { focus = RAJ_provincial_autonomy }
#        x = 10
#        y = 1
#        relative_position_id = RAJ_provincial_autonomy
#        #mutually_exclusive = { focus = RAJ_renegotiate_adens_control }
#        cost = 5
#
#        ai_will_do = {
#            factor = 1
#        }
#
#        available = {
#
#        }
#        
#        bypass = {
#            OR = {
#                ENG = { exists = no }
#                AND = {
#                    NOT = { has_full_control_of_state = 659 }
#                    NOT = { ENG = { has_full_control_of_state = 659 } }
#                }
#            }
#        }
#
#        cancel_if_invalid = yes
#        continue_if_invalid = no
#        available_if_capitulated = no
#
#        search_filters = {FOCUS_FILTER_POLITICAL}
#
#        completion_reward = {
#
#        }
#    }

#  focus = {
#      id = RAJ_renegotiate_adens_control
#      icon = GFX_focus_chi_british_cooperation
#      prerequisite = { focus = RAJ_provincial_autonomy }
#      x = 2
#      y = 0
#      relative_position_id = RAJ_hand_over_aden_to_the_crown 
#      #mutually_exclusive = { focus = RAJ_hand_over_aden_to_the_crown }
#      cost = 5

#      ai_will_do = {
#          factor = 1
#      }

#      available = {
#          is_subject_of = ENG
#          ENG = { 
#              exists = yes
#              is_subject = no
#          }
#          has_full_control_of_state = 992
#      }
#      
#      bypass = {

#          is_subject = no
#          has_full_control_of_state = 992
#      }

#      cancel_if_invalid = yes
#      continue_if_invalid = no
#      available_if_capitulated = no

#      search_filters = {FOCUS_FILTER_POLITICAL}

#      completion_reward = {
#          custom_effect_tooltip = RAJ_renegotiate_adens_control_tt
#          ENG = {
#              country_event = {
#                  id = GOE_RAJ.15 hours = 2
#              }
#          }
#      }
#  }



 #   focus = {
 #       id = RAJ_extended_franchise
 #       icon = GFX_focus_generic_self_management
 #       prerequisite = { focus = RAJ_provincial_autonomy }
 #       x = -10
 #       y = 1
 #       relative_position_id = RAJ_provincial_autonomy
#
 #       cost = 5
#
 #       ai_will_do = {
 #           factor = 1
 #       }
#
 #       available = {
#
 #       }
 #        
 #       bypass = {
 #           is_subject = no
 #       }
#
 #       cancel_if_invalid = yes
 #       continue_if_invalid = no
 #       available_if_capitulated = no
#
 #       complete_tooltip = {
 #       }
#
 #       completion_reward = {
 #           if = {
 #               limit = { is_subject = yes }
 #               add_autonomy_ratio = {
 #                   value = 0.1
 #                   localization = RAJ_extended_franchise
 #               }
 #           }
 #           add_stability = 0.05
 #       }
 #   }

    focus = {
        id = RAJ_trade_port
        icon = GFX_focus_POL_develop_polish_shipbuilding
        prerequisite = { focus = RAJ_great_depression_price_controls focus = RAJ_provincial_autonomy }
        x = 21
        y = 1
        relative_position_id = RAJ_great_depression_price_controls 

        offset = {
            x = -6
            y = 0
            trigger = {
                has_game_rule = {
                    rule = obsolete_focus_branches_visibility
                    option = HIDE
                }
                has_completed_focus = RAJ_great_depression_price_controls
            }
        }

        offset = {
            x = -12
            y = 0
            trigger = {
                has_game_rule = {
                    rule = obsolete_focus_branches_visibility
                    option = HIDE
                }
                OR = {
                    has_completed_focus = RAJ_look_to_the_past
                    has_completed_focus = RAJ_look_to_the_future
                }
            }
        }

        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {
            992 = { is_fully_controlled_by = ROOT }
            NOT = {
                has_completed_focus = RAJ_look_to_the_past
            }
        }
        
        bypass = {


        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}

        completion_reward = {
            
            992 ={

                add_dynamic_modifier = {
                    modifier = idea_RAJ_aden_treaty_port
                    #scope = TAG #optional, state or country tag or a variable
                }
                add_extra_state_shared_building_slots = 4
                add_building_construction = {
                    type = industrial_complex
                    level = 2
                    instant_build = yes
                }
                add_building_construction = {
                    type = infrastructure
                    level = 2
                    instant_build = yes
                }
            }
        }
    }

    focus = {
        id = RAJ_fortify_aden
        icon = GFX_focus_generic_coastal_fort
        prerequisite = { focus = RAJ_trade_port }
        x = 0
        y = 1
        relative_position_id = RAJ_trade_port

        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {
            992 = { is_fully_controlled_by = ROOT }
            NOT = { has_completed_focus = RAJ_look_to_the_past }
        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}

        completion_reward = {
            992 ={
                add_building_construction = {
                    type = bunker
                    level = 4
                    instant_build = yes
                    province = 5074
                }

                add_building_construction = {
                    type = coastal_bunker   
                    level = 4
                    instant_build = yes
                    province = 5074
                }

                add_building_construction = {
                    type = naval_base
                    level = 3
                    instant_build = yes
                    province = 5074
                }
                add_extra_state_shared_building_slots = 4
                add_building_construction = {
                    type = arms_factory
                    level = 1
                    instant_build = yes
                }

                add_building_construction = {
                    type = dockyard
                    level = 1
                    instant_build = yes
                }
                add_building_construction = {
                    type = infrastructure
                    level = 1
                    instant_build = yes
                }
            }
        }
    }



    focus = {
        id = RAJ_purna_swaraj
        icon = GFX_focus_RAJ_pruna_swaraj
        prerequisite = { focus = RAJ_provincial_autonomy }#focus = RAJ_renegotiate_adens_control focus = RAJ_hand_over_aden_to_the_crown  }
        #prerequisite = { focus = RAJ_extended_franchise }
        x = 0
        y = 1
        relative_position_id = RAJ_provincial_autonomy

        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {
            is_subject = no
        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL FOCUS_FILTER_TFV_AUTONOMY}

        completion_reward = {
            custom_effect_tooltip = idea_RAJ_independence_movement_tt
            add_to_variable = { RAJ_autonomy_gain_independence_movement = 0.05 tooltip = autonomy_gain_tt }
            add_to_variable = { RAJ_resistance_activity_independence_movement = 0.05 tooltip =  resistance_activity_tt }
            add_to_variable = { RAJ_resistance_target_independence_movement = 0.05 tooltip =  resistance_target_tt }
        }
    }





#   focus = {
#        id = RAJ_give_sikkim_administrative_rights_for_bhutan
#        #icon = GFX_
#        prerequisite = { focus = RAJ_the_second_duar_war focus = RAJ_bhutanese_protectorate }
#        x = 1
#        y = 1
#        relative_position_id = RAJ_the_second_duar_war
#       
#        cost = 6
#
#        ai_will_do = {
#            factor = 1
#        }
#
#        available = {
#
#        }
#        
#        bypass = {
#
#        }
#
#        cancel_if_invalid = yes
#        continue_if_invalid = no
#        available_if_capitulated = no
#
#
#
#        completion_reward = {
#
#        }
#    }

    focus = {
        id = RAJ_mahatma
        icon = GFX_focus_RAJ_mahatma
        prerequisite = { focus = RAJ_purna_swaraj }
        x = -7
        y = 8
        relative_position_id = RAJ_purna_swaraj
        mutually_exclusive = { focus = RAJ_league_against_gandhism }
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        allow_branch = {
            NOT = { has_completed_focus = RAJ_league_against_gandhism }
            NOT = { has_completed_focus = RAJ_great_depression_price_controls }
        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL FOCUS_FILTER_POLITICAL_CHARACTER FOCUS_FILTER_TFV_AUTONOMY}

        completion_reward = {
            custom_effect_tooltip = available_political_advisor
            show_ideas_tooltip = RAJ_GOE_jawaharlal_nehru
            custom_effect_tooltip = available_political_advisor
            show_ideas_tooltip = RAJ_mahatma_mohandas_gandhi
            custom_effect_tooltip = generic_skip_one_line_tt
            unlock_decision_tooltip = {
                decision = RAJ_GOE_urge_non_violence
                show_effect_tooltip = yes # default is no
                show_modifiers = yes # default is no
            }

            hidden_effect = {
                if = {
                    limit = {
                        has_game_rule = {
                            rule = obsolete_focus_branches_visibility
                            option = HIDE
                        }
                    }
                    mark_focus_tree_layout_dirty = yes
                }
            }
        }
    }

    focus = {
        id = RAJ_league_against_gandhism
        icon = GFX_focus_spr_crush_the_revolution
        prerequisite = { focus = RAJ_purna_swaraj }
        x = 15
        y = 0
        relative_position_id = RAJ_mahatma
        mutually_exclusive = { focus = RAJ_mahatma }
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        allow_branch = {
            NOT = { has_completed_focus = RAJ_mahatma }
            NOT = { has_completed_focus = RAJ_great_depression_price_controls }
        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL FOCUS_FILTER_WAR_SUPPORT}
        completion_reward = {
            add_popularity = {
                ideology = communism 
                popularity = 0.05
            }

            custom_effect_tooltip = RAJ_league_against_gandhism_tt

            hidden_effect = {
                if = {
                    limit = {
                        has_game_rule = {
                            rule = obsolete_focus_branches_visibility
                            option = HIDE
                        }
                    }
                    mark_focus_tree_layout_dirty = yes
                }
            }
        }
    }


    focus = {
        id = RAJ_uplifting_the_people_of_india
        icon = GFX_goal_support_democracy
        prerequisite = { focus = RAJ_purna_swaraj }
        x = 3
        y = 1
        relative_position_id = RAJ_purna_swaraj
        #mutually_exclusive = { focus = RAJ_league_against_gandhism }
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY FOCUS_FILTER_TFV_AUTONOMY}

        completion_reward = {
            swap_ideas = {
                remove_idea = idea_RAJ_great_depression_1
                add_idea = idea_RAJ_great_depression_2
            }
            add_autonomy_ratio = { 
                value = 0.05 
            }
        }
    }

    focus = {
        id = RAJ_swadeshi_movement
        icon = GFX_goal_generic_forceful_treaty
        prerequisite = { focus = RAJ_purna_swaraj }
        x =-3
        y = 1
        relative_position_id = RAJ_purna_swaraj
       
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL FOCUS_FILTER_INDUSTRY FOCUS_FILTER_TFV_AUTONOMY}

        completion_reward = {

            custom_effect_tooltip = idea_RAJ_independence_movement_tt
            add_to_variable = { RAJ_autonomy_gain_independence_movement = 0.05 tooltip = autonomy_gain_tt }
            add_to_variable = { RAJ_resistance_activity_independence_movement = 0.05 tooltip =  resistance_activity_tt }
            add_to_variable = { RAJ_resistance_target_independence_movement = 0.05 tooltip =  resistance_target_tt }
            custom_effect_tooltip = generic_skip_one_line_tt
            try_build_civ_in_core_otherwise_build_in_controlled = yes
            
        }
    }

    focus = {
        id = RAJ_form_a_federal_court
        icon = GFX_focus_NOR_restore_public_trust_in_the_storting
        prerequisite = { focus = RAJ_uplifting_the_people_of_india }
        x = 1
        y = 1
        relative_position_id = RAJ_uplifting_the_people_of_india
       
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL}

        completion_reward = {
            add_ideas = idea_RAJ_federal_court_of_india
        }
    }

    focus = {
        id = RAJ_a_congress_resurgent
        icon = GFX_focus_RAJ_a_congress_resurgent
        prerequisite = { focus = RAJ_mahatma }
        x = 0
        y = 1
        relative_position_id = RAJ_mahatma
       
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {
            is_subject = no
        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL FOCUS_FILTER_TFV_AUTONOMY}

        completion_reward = {
            custom_effect_tooltip = idea_RAJ_independence_movement_tt
            add_to_variable = { RAJ_autonomy_gain_independence_movement = 0.05 tooltip = autonomy_gain_tt }
            add_to_variable = { RAJ_resistance_activity_independence_movement = 0.05 tooltip =  resistance_activity_tt }
            add_to_variable = { RAJ_resistance_target_independence_movement = 0.05 tooltip =  resistance_target_tt }
            custom_effect_tooltip = generic_skip_one_line_tt
            custom_effect_tooltip = available_political_advisor
            show_ideas_tooltip = RAJ_bhimrao_ramji_ambedkar
        }
    }

    focus = {
        id = RAJ_khadi_movement
        icon = GFX_focus_RAJ_khadi_movement 
        prerequisite = { focus = RAJ_swadeshi_movement }
        x = 0
        y = 1
        relative_position_id = RAJ_swadeshi_movement
       
        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY FOCUS_FILTER_TFV_AUTONOMY}

        completion_reward = {
            add_autonomy_ratio = { 
                value = 0.03
                localization = RAJ_khadi_movement
            }
            try_build_civ_in_core_otherwise_build_in_controlled = yes
        }
    }

    focus = {
        id = RAJ_boycott_british_made_goods
        icon = GFX_focus_eng_decolonization
        prerequisite = { focus = RAJ_swadeshi_movement }
        x = -2
        y = 1
        relative_position_id = RAJ_swadeshi_movement
       
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY FOCUS_FILTER_TFV_AUTONOMY}

        completion_reward = {
            add_timed_idea = {
                idea = idea_RAJ_boycott_british_made_goods
                days = 400
            }
        }
    }

    focus = {
        id = RAJ_litteracy_effort
        icon = GFX_focus_research2
        prerequisite = { focus = RAJ_form_a_federal_court }
        x = 0
        y = 1
        relative_position_id = RAJ_form_a_federal_court
       
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_RESEARCH FOCUS_FILTER_TFV_AUTONOMY}

        completion_reward = {
            add_timed_idea = {
                idea = idea_RAJ_literacy_effort_1
                days = 365
            }
            
            custom_effect_tooltip = will_be_upgraded_to
            show_ideas_tooltip = idea_RAJ_literacy_effort_2
            custom_effect_tooltip = when_expired
        }
    }

    focus = {
        id = RAJ_indo_centric_curriculum
        icon = GFX_focus_research
        prerequisite = { focus = RAJ_litteracy_effort }
        x = 0
        y = 1
        relative_position_id = RAJ_litteracy_effort
       
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_RESEARCH FOCUS_FILTER_TFV_AUTONOMY}

        completion_reward = {
            add_research_slot = 1
            add_autonomy_score = { 
                value = 20

            }
            
        }
    }

    focus = {
        id = RAJ_all_india_students_federation
        icon = GFX_focus_generic_university_1
        prerequisite = { focus = RAJ_litteracy_effort }
        x = 2
        y = 1
        relative_position_id = RAJ_litteracy_effort
       
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL}
        search_filters = {FOCUS_FILTER_RESEARCH}

        completion_reward = {
            add_popularity = {
                ideology = democratic
                popularity = 0.05
            }
            add_tech_bonus = {
                name = RAJ_all_india_students_federation
                bonus = 0.5
                uses = 1
                category = electronics # optional 
                # technology  = technology_id # optional
            }
            custom_effect_tooltip = RAJ_famine_impact_reduction
            
            add_to_variable = { RAJ_famine_shield = 8 tooltip = RAJ_famine_shield_tt  }
            calculate_famine_shield_and_risk = yes
        }
    }

    focus = {
        id = RAJ_enrollment_of_dali_children
        icon = GFX_focus_RAJ_enrollment_of_dali_children
        prerequisite = { focus = RAJ_indo_centric_curriculum }
        x = -1
        y = 1
        relative_position_id = RAJ_indo_centric_curriculum
       
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_STABILITY}
        search_filters = {FOCUS_FILTER_RESEARCH}
        search_filters = {FOCUS_FILTER_TFV_AUTONOMY}

        completion_reward = {
            add_stability = 0.05
            add_tech_bonus = {
                name = RAJ_enrollment_of_dali_children
                bonus = 0.5
                uses = 1
                category = electronics # optional 
                # technology  = technology_id # optional
            }
            add_autonomy_ratio = { 
                value = 0.05 
                localization = RAJ_enrollment_of_dali_children
            }
        }
    }


    focus = {
        id = RAJ_expand_healthcare_facilities
        icon = GFX_focus_generic_field_hostpital
        prerequisite = { focus = RAJ_enrollment_of_dali_children }
        x = -1
        y = 1
        relative_position_id = RAJ_enrollment_of_dali_children
       
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}
        search_filters = {FOCUS_FILTER_RESEARCH}

        completion_reward = {
            random_core_state = {
                limit = { is_controlled_by = ROOT }
                add_extra_state_shared_building_slots = 1  
            }

            random_core_state = {
                limit = { is_controlled_by = ROOT }
                add_extra_state_shared_building_slots = 1  
            }

            random_core_state = {
                limit = { is_controlled_by = ROOT }
                add_extra_state_shared_building_slots = 1  
            }

            add_tech_bonus = {
                name = RAJ_expand_healthcare_facilities
                bonus = 0.25
                uses = 2
                category = support_tech # optional 
            }

            custom_effect_tooltip = newline_tt
            custom_effect_tooltip = RAJ_famine_impact_reduction
            
            add_to_variable = { RAJ_famine_shield = 5 tooltip = RAJ_famine_shield_tt  }
            calculate_famine_shield_and_risk = yes


        }
    }



    focus = {
        id = RAJ_local_resistance_to_land_taxes
        icon = GFX_focus_SOV_breadbasket_of_the_union
        prerequisite = { focus = RAJ_agricultural_cooperatives   }
        prerequisite = { focus = RAJ_boycott_british_made_goods }
        x = 0
        y = 2
        relative_position_id = RAJ_boycott_british_made_goods
       
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL}
        search_filters = {FOCUS_FILTER_INDUSTRY}

        completion_reward = {
            every_controlled_state = {
                random_select_amount = 3
                limit = {
                    has_resistance = yes
                    is_in_array = {
                        array = ROOT.owned_states_at_game_start
                        value = THIS
                    }
                }
                add_resistance = 15
                add_extra_state_shared_building_slots = 1
                add_building_construction = {
                    type = industrial_complex
                    level = 1
                    instant_build = yes
                }
            }

            custom_effect_tooltip = generic_skip_one_line_tt

            add_ideas = idea_RAJ_government_budget_shortfall
        }
    }

    focus = {
        id = RAJ_tenancy_reforms
        icon = GFX_focus_generic_low_cost_housing
        prerequisite = { focus = RAJ_uplifting_the_people_of_india }
        x = -2
        y = 1
        relative_position_id = RAJ_uplifting_the_people_of_india
       
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}

        completion_reward = {
            add_ideas = idea_RAJ_tenancy_reforms
        }
    }

    focus = {
        id = RAJ_debt_relief
        icon = GFX_focus_generic_currency_reforms
        prerequisite = { focus = RAJ_tenancy_reforms }
        x = -2
        y = 1
        relative_position_id = RAJ_tenancy_reforms
       
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}

        completion_reward = {
            remove_ideas = {
                idea_RAJ_great_depression_2
            }
            #add_timed_idea = {
            #    idea = idea_RAJ_debt_relief
            #   days = 270
            #}
        }
    }

    focus = {
        id = RAJ_temple_entry_movements
        icon = GFX_focus_RAJ_temple_entry_movements
        prerequisite = { focus = RAJ_indo_centric_curriculum }
        x = 1
        y = 1
        relative_position_id = RAJ_indo_centric_curriculum
       
        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_STABILITY}
        search_filters = {FOCUS_FILTER_POLITICAL}

        completion_reward = {
            add_stability = 0.1
            add_popularity = {
                ideology = democratic
                popularity = 0.1
            }
        }
    }

    focus = {
        id = RAJ_freedom_of_the_press
        icon = GFX_focus_generic_improve_the_administration
        prerequisite = { focus = RAJ_form_a_federal_court }
        x = 2
        y = 1
        relative_position_id = RAJ_form_a_federal_court
        
        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL}

        completion_reward = {
            add_political_power = 90
          
            add_popularity = {
                ideology = democratic
                popularity = 0.1
            }
        }
    }

    focus = {
        id = RAJ_all_india_kisan_sabha
        icon = GFX_focus_ARG_no_gods_no_masters
        prerequisite = { focus = RAJ_league_against_gandhism }
        x = 13
        y = 1
        relative_position_id = RAJ_league_against_gandhism
        
        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        offset = {
            x = -13
            y = 0
            trigger = {
                has_game_rule = {
                    rule = obsolete_focus_branches_visibility
                    option = HIDE
                }
                has_completed_focus = RAJ_red_in_the_shadows
            }
        }

        offset = {
            x = -10
            y = 0
            trigger = {
                has_game_rule = {
                    rule = obsolete_focus_branches_visibility
                    option = HIDE
                }
                has_completed_focus = RAJ_forward_bloc
            }
        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL}
        search_filters = {FOCUS_FILTER_WAR_SUPPORT}

        completion_reward = {
            add_popularity = {
                ideology = communism
                popularity = 0.1
            }

            add_popularity = {
                ideology = fascism
                popularity = 0.1
            }



            add_war_support = 0.025
        }
    }

    focus = {
        id = RAJ_cottage_industries
        icon = GFX_focus_CHL_enlarge_the_textile_industries
        prerequisite = { focus = RAJ_tenancy_reforms }
        x = 1
        y = 2
        relative_position_id = RAJ_tenancy_reforms
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_TFV_AUTONOMY}
        search_filters = {FOCUS_FILTER_INDUSTRY}

        completion_reward = {
            add_autonomy_ratio = { 
                value = 0.05 
                localization = RAJ_cottage_industries
            }
            try_build_civ_in_core_otherwise_build_in_controlled_2_civs = yes
        }
    }





 #  focus = {
 #      id = RAJ_guarantee_nepalese_independence
 #      #icon = GFX_
 #      prerequisite = { focus = RAJ_haripura_session_of_the_indian_national_congress }
 #      x = 2
 #      y = 0
 #      mutually_exclusive = { focus = RAJ_the_second_gorkha_war }
 #      relative_position_id = RAJ_the_second_gorkha_war
 #      
 #      cost = 6

 #      ai_will_do = {
 #          factor = 1
 #      }

 #      available = {

 #      }
 #      
 #      bypass = {

 #      }

 #      cancel_if_invalid = yes
 #      continue_if_invalid = no
 #      available_if_capitulated = no



 #      completion_reward = {

 #      }
 #  }




    focus = {
        id = RAJ_agricultural_cooperatives
        icon = GFX_focus_generic_agricultural_subsidies
        prerequisite = { focus = RAJ_tenancy_reforms }
        x = -4
        y = 1
        relative_position_id = RAJ_tenancy_reforms
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}

        complete_tooltip = {
            every_owned_state = {
                limit = { has_state_flag = agcoop_built_infra }
                add_building_construction = {
                    type = infrastructure
                    level = 1
                    instant_build = yes
                }
      
            }

            every_owned_state = { #Need to loop through twice beccause sometimes you can build a civ but not an infra if you already had a 5 infra in a state
                limit = { has_state_flag = agcoop_built_civ }
                add_building_construction = {
                    type = industrial_complex
                    level = 1
                    instant_build = yes
                }
            }
        }

        completion_reward = {
            custom_effect_tooltip = RAJ_agricultural_cooperatives_tt

            #effect_tooltip = {
            #    every_owned_state = {
            #        limit = {
            #            is_controlled_by = ROOT
            #            industrial_complex > 3 #UPDATE RAJ_agricultural_cooperatives_tt if you change this
            #            infrastructure < 5
            #        }
#
            #        add_building_construction = {
            #            type = infrastructure
            #            level = 1
            #            instant_build = yes
            #        }
            #    }
            #}

            set_variable = { agcoop_infra_build_counter = 0 }
            set_variable = { agcoop_civ_build_counter = 0 }
            for_each_scope_loop = {
                array = owned_states_at_game_start
                
                 if = {
                     limit = {
                        is_controlled_by = ROOT
                        industrial_complex > 3 #UPDATE RAJ_agricultural_cooperatives_tt if you change this
                    }     
                    ROOT = { add_to_variable = { agcoop_infra_build_counter = 1 } } #Count infra if state requirements are correct, even if one isnt build because you already technically fulfilled the requirements
                    if = {
                        limit = {
                            infrastructure < 5
                        }

                        add_building_construction = {
                            type = infrastructure
                            level = 1
                            instant_build = yes
                        }
                        set_state_flag = agcoop_built_infra #used for complete tooltip
                    }

                    log = "INFRA BUILT: [?ROOT.agcoop_infra_build_counter]"
                    set_temp_variable = { t_infra_build_counter  = ROOT.agcoop_infra_build_counter }

                    modulo_temp_variable = { var = t_infra_build_counter value = 2 } #every other infra counts as a civ

                    if = {
                        limit = {
                            check_variable = { t_infra_build_counter = 1 } 
                            check_variable = { ROOT.agcoop_civ_build_counter < 10 } #Max roof
                        }
#
                        
                        add_extra_state_shared_building_slots = 1
                        add_building_construction = {
                            type = industrial_complex
                            level = 1
                            instant_build = yes
                        }
                        set_state_flag = agcoop_built_civ
                        add_to_variable = { ROOT.agcoop_civ_build_counter = 1 }
                    }     
                }
            }
        }
    }

    focus = {
        id = RAJ_tea_exports
        icon = GFX_focus_RAJ_tea_exports
        prerequisite = { focus = RAJ_agricultural_cooperatives  }
        x = 0
        y = 1
        relative_position_id = RAJ_agricultural_cooperatives

        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

            NOT = { has_war_with = ENG }

            
        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}
        search_filters = {FOCUS_FILTER_POLITICAL}

        completion_reward = {
            if = {
                limit = {
                    is_subject_of = ENG
                }

                unlock_decision_tooltip = {
                    decision = RAJ_GOE_export_tea_subject
                    show_effect_tooltip = yes # default is no
                    show_modifiers = yes # default is no
                }

                custom_effect_tooltip = RAJ_tea_exports_tt
                custom_effect_tooltip = RAJ_tea_exports_tt_2
                unlock_decision_tooltip = {
                    decision = RAJ_GOE_export_tea_free
                    show_effect_tooltip = yes # default is no
                    show_modifiers = yes # default is no
                }
                custom_effect_tooltip = RAJ_tea_exports_tt
            }
            else = {
                unlock_decision_tooltip = {
                    decision = RAJ_GOE_export_tea_free
                    show_effect_tooltip = yes # default is no
                    show_modifiers = yes # default is no
                }
                custom_effect_tooltip = RAJ_tea_exports_tt
            }
        }
    }

    focus = {
        id = RAJ_handloom_weaving
        icon = GFX_focus_generic_industry_3
        prerequisite = { focus = RAJ_cottage_industries focus = RAJ_agricultural_cooperatives }
        x = -1
        y = 1
        relative_position_id = RAJ_cottage_industries
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL}
        search_filters = {FOCUS_FILTER_RESEARCH FOCUS_FILTER_TFV_AUTONOMY}

        completion_reward = {
            add_autonomy_ratio = { 
                value = 0.1 
                localization = RAJ_handloom_weaving
            }

            try_build_civ_in_core_otherwise_build_in_controlled = yes
            add_tech_bonus = {
                name = RAJ_handloom_weaving
                bonus = 0.35
                uses = 1
                category = industry # optional 
                # technology  = technology_id # optional
            }
        }
    }

    focus = {
        id = RAJ_sikh_religious_guarantees
        icon = GFX_focus_RAJ_sikh_religious_guarantees
        prerequisite = { focus = RAJ_temple_entry_movements focus = RAJ_enrollment_of_dali_children }
        prerequisite = { focus = RAJ_indo_centric_curriculum  }
        x = -1
        y = 1
        relative_position_id = RAJ_temple_entry_movements
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL}
        search_filters = {FOCUS_FILTER_POLITICAL_CHARACTER}

        completion_reward = {
            add_timed_idea = {
                idea = idea_sikh_inclusivity_policies
                days = 180
            }

            custom_effect_tooltip = generic_skip_one_line_tt

            custom_effect_tooltip = available_political_advisor
            show_ideas_tooltip = RAJ_GOE_tara_singh

            custom_effect_tooltip = generic_skip_one_line_tt

            RAJ_GOE_ishar_singh = {
                custom_effect_tooltip = unlock_general_tt
            }
            RAJ_GOE_parkash_singh = {
                custom_effect_tooltip = unlock_general_tt
            }


        }
    }

    focus = {
        id = RAJ_punjab_autonomy
        icon = GFX_focus_RAJ_punjab_autonomy
        prerequisite = { focus = RAJ_sikh_religious_guarantees }
        x = 0
        y = 1
        relative_position_id = RAJ_sikh_religious_guarantees
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {
        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL}
        search_filters = {FOCUS_FILTER_INDUSTRY}

        completion_reward = {

            if = {
                limit = {
                    440 = {
                        is_controlled_by_ROOT_or_subject = yes
                    }
                }

                440 = {
                    add_extra_state_shared_building_slots = 2
                    add_dynamic_modifier = {
                        modifier = idea_RAJ_sikh_approval
                    }
                }
            }

            custom_effect_tooltip = generic_skip_one_line_tt

            if = {
                limit = {
                    433 = {
                        is_controlled_by_ROOT_or_subject = yes
                    }
                }

                433 = {
                    add_extra_state_shared_building_slots = 2
                    add_dynamic_modifier = {
                        modifier = idea_RAJ_sikh_approval
                    }
                }
            }


            unlock_decision_tooltip = {
                decision = RAJ_GOE_sikh_recruitment

            }
            

        }
    }

    focus = {
        id = RAJ_national_planning_committee
        icon = GFX_focus_generic_public_works
        prerequisite = { focus = RAJ_tenancy_reforms }
        x = 0
        y = 1
        relative_position_id = RAJ_tenancy_reforms
        
        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}

        completion_reward = {
            add_timed_idea = {
                idea = idea_RAJ_national_planning_comittee
                days = 365
            }
        }
    }

    focus = {
        id = RAJ_forward_bloc
        icon = GFX_focus_RAJ_forward_bloc
        prerequisite = { focus = RAJ_league_against_gandhism }
        x = 0
        y = 2
        relative_position_id = RAJ_league_against_gandhism
        mutually_exclusive = { focus = RAJ_red_in_the_shadows }
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        allow_branch = {
            NOT = { has_completed_focus = RAJ_mahatma }
            NOT = { has_completed_focus = RAJ_great_depression_price_controls }
            NOT = { has_completed_focus = RAJ_red_in_the_shadows }
        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL}
        search_filters = {FOCUS_FILTER_POLITICAL_CHARACTER}

        completion_reward = {
            add_war_support = 0.05
            add_popularity = {
                ideology = neutrality
                popularity = 0.1
            }
            add_popularity = {
                ideology = fascism
                popularity = 0.1
            }
            set_party_name = {
                ideology = neutrality
                long_name = RAJ_forward_bloc_party_name_long
                name = RAJ_forward_bloc_party_name
            }

            custom_effect_tooltip = generic_skip_one_line_tt
            RAJ_subhas_chanda_bose = { custom_effect_tooltip = unlock_general_tt }
            custom_effect_tooltip = available_political_advisor
            show_ideas_tooltip = RAJ_subhas_chanda_bose

            hidden_effect = {
                if = {
                    limit = {
                        has_game_rule = {
                            rule = obsolete_focus_branches_visibility
                            option = HIDE
                        }
                    }
                    mark_focus_tree_layout_dirty = yes
                }

                every_owned_state = {
                    if = {
                        limit = { 
                            has_resistance = yes
                            occupation_law = no_garrison 
                        }
                        set_occupation_law = local_police_force_garrison
                    }
                }
                set_country_flag = RAJ_hide_no_garrison
                country_event = {
                    id = GOE_RAJ.36
                    days = 22
                    random_days = 15
                }
            }
        }
    }

    focus = {
        id = RAJ_promote_violence_against_the_british
        icon = GFX_focus_AST_never_gallipoli
        prerequisite = { focus = RAJ_forward_bloc }
        x = 1
        y = 1
        relative_position_id = RAJ_forward_bloc
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL FOCUS_FILTER_TFV_AUTONOMY}
        search_filters = {FOCUS_FILTER_WAR_SUPPORT}

        completion_reward = {
            add_war_support = 0.05
            add_popularity = { ideology = fascism popularity = 0.1 }

            if = {
                limit = {
                    has_dynamic_modifier = { modifier = idea_RAJ_independence_movement }
                }

                custom_effect_tooltip = idea_RAJ_independence_movement_tt
                add_to_variable = { RAJ_autonomy_gain_independence_movement = 0.05 tooltip = autonomy_gain_tt }
                add_to_variable = { RAJ_resistance_activity_independence_movement = 0.05 tooltip =  resistance_activity_tt }
                add_to_variable = { RAJ_resistance_target_independence_movement = 0.05 tooltip =  resistance_target_tt }
            }

            unlock_decision_tooltip = {
                decision = RAJ_GOE_urge_violence
                show_effect_tooltip = yes # default is no
                show_modifiers = yes # default is no
            }
        }
    }

    focus = {
        id = RAJ_india_united
        icon = GFX_focus_RAJ_seek_allies_with_the_muslim_league
        prerequisite = { focus = RAJ_a_congress_resurgent }
        x = 3
        y = 1
        relative_position_id = RAJ_a_congress_resurgent
        mutually_exclusive = { focus = RAJ_two_nation_theory_dlc }
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {
             compare_autonomy_state > autonomy_colony
        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL}

        completion_reward = {
            custom_effect_tooltip = RAJ_india_united_tt
        }
    }

    focus = {
        id = RAJ_two_nation_theory_dlc
        icon = GFX_focus_RAJ_two_nation_theory
        prerequisite = { focus = RAJ_a_congress_resurgent }
        x = -6
        y = 0
        relative_position_id = RAJ_india_united
        mutually_exclusive = { focus = RAJ_india_united }
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {
            compare_autonomy_state > autonomy_colony
        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL FOCUS_FILTER_TFV_AUTONOMY}

        completion_reward = {

            if = {
                limit = {
                    has_idea = RAJ_marginalized_muslim_community_angry
                }
                swap_ideas = {
                    add_idea = RAJ_marginalized_muslim_community_happy
                    remove_idea = RAJ_marginalized_muslim_community_angry
                }
            }
            else = {
                swap_ideas = {
                    add_idea = RAJ_marginalized_muslim_community_happy
                    remove_idea = RAJ_marginalized_muslim_community
                }
            }
           # add_ideas = idea_RAJ_guided_by_britain     
        }
    }

    focus = {
        id = RAJ_red_in_the_shadows
        icon = GFX_focus_RAJ_red_in_the_shadows
        prerequisite = { focus = RAJ_all_india_kisan_sabha }
        x = 0
        y = 1
        relative_position_id = RAJ_all_india_kisan_sabha
        mutually_exclusive = { focus = RAJ_forward_bloc }
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        allow_branch = {
            NOT = { has_completed_focus = RAJ_mahatma }
            NOT = { has_completed_focus = RAJ_great_depression_price_controls }
            NOT = { has_completed_focus = RAJ_forward_bloc }
        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL}

        completion_reward = {

            add_ideas = idea_RAJ_underground_communists


            set_country_flag = stop_unrest_events
            
            hidden_effect = {
                if = {
                    limit = {
                        has_game_rule = {
                            rule = obsolete_focus_branches_visibility
                            option = HIDE
                        }
                    }
                    mark_focus_tree_layout_dirty = yes
                }
            }
        }
    }

    focus = {
        id = RAJ_rally_the_indian_left
        icon = GFX_focus_generic_join_comintern
        prerequisite = { focus = RAJ_all_india_kisan_sabha }
        x = 2
        y = 1
        relative_position_id = RAJ_all_india_kisan_sabha
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL}
        search_filters = {FOCUS_FILTER_POLITICAL_CHARACTER}

        completion_reward = {
            custom_effect_tooltip = available_political_advisor
            show_ideas_tooltip = RAJ_jim_corbett
            custom_effect_tooltip = generic_skip_one_line_tt
            custom_effect_tooltip = available_political_advisor
            show_ideas_tooltip = RAJ_puran_chand_joshi
            custom_effect_tooltip = generic_skip_one_line_tt
            custom_effect_tooltip = available_political_advisor
            show_ideas_tooltip = RAJ_bhalchandra_trimbak_ranadive
            custom_effect_tooltip = generic_skip_one_line_tt
            custom_effect_tooltip = available_political_advisor
            show_ideas_tooltip = RAJ_elamkulam_manakkal_sakaran_namboodiripad
            custom_effect_tooltip = generic_skip_one_line_tt
            custom_effect_tooltip = available_political_advisor
            show_ideas_tooltip = RAJ_shripad_amrit_dange
            custom_effect_tooltip = generic_skip_one_line_tt
            custom_effect_tooltip = available_political_advisor
            show_ideas_tooltip = RAJ_sahajanand_saraswati
        }
    }

    focus = {
        id = RAJ_threaten_princes
        icon = GFX_goal_generic_forceful_treaty
        prerequisite = { focus = RAJ_red_in_the_shadows }
        x = 8
        y = 1
        relative_position_id = RAJ_red_in_the_shadows

        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {
            NOT = {
                has_idea = RAJ_princely_states
            }
        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL}
        search_filters = {FOCUS_FILTER_POLITICAL_CHARACTER}

        completion_reward = {
            if = {
                limit = {
                    has_idea = RAJ_princely_states
                }
                remove_ideas = RAJ_princely_states
            }
            add_popularity = {
                ideology = communism
                popularity = 0.1
            }
        }
    }

    focus = {
        id = RAJ_exile_princes
        icon = GFX_focus_rom_parties_end
        prerequisite = { focus = RAJ_threaten_princes }
        x = 0
        y = 1
        relative_position_id = RAJ_threaten_princes

        cost = 10

        ai_will_do = {
            factor = 1
        }

        available = {
            is_subject = no
        }
        
        bypass = {
        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL}
        search_filters = {FOCUS_FILTER_POLITICAL_CHARACTER}

        completion_reward = {
            try_build_civ_in_core_otherwise_build_in_controlled_2_civs = yes
            custom_effect_tooltip = generic_skip_one_line_tt
            add_timed_idea = {
                idea = idea_RAJ_confiscated_princely_wealth
                days = 740
            }
            set_country_flag = RAJ_exiled_princes_flag
        }
    }

    focus = {
        id = RAJ_integrate_the_princes
        icon = GFX_focus_rom_handle_king
        prerequisite = { focus = RAJ_exile_princes }
        x = 0
        y = 1
        relative_position_id = RAJ_exile_princes

        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {
            has_country_flag = {
                flag = RAJ_exiled_princes_flag
                days > 365
            }
        }

        bypass = {

        }

        search_filters = {FOCUS_FILTER_POLITICAL}
        search_filters={FOCUS_FILTER_ANNEXATION}

        completion_reward = {
            custom_effect_tooltip = RAJ_india_indivisible_tt
        }

    }



    focus = {
        id = RAJ_orchestrate_train_robberies 
        icon = GFX_focus_generic_railroad
        prerequisite = { focus = RAJ_red_in_the_shadows }
        x = -2
        y = 1
        relative_position_id = RAJ_red_in_the_shadows

        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {
        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL FOCUS_FILTER_TFV_AUTONOMY}
        search_filters = {FOCUS_FILTER_INDUSTRY}

        completion_reward = {
            add_ideas = idea_RAJ_train_robberies
            custom_effect_tooltip = RAJ_orchestrate_train_robberies_tt
            custom_effect_tooltip = RAJ_modify_indian_railways_tt  
            effect_tooltip = {

                if = {
                    limit = { check_variable = { RAJ_railway_focuses = 1 } }
                    set_variable = { RAJ_indian_railway_industrial_capacity_factory = 0.03 tooltip = industrial_capacity_factory_tt }
                    
                    add_to_variable = { RAJ_indian_railway_production_speed_infrastructure_factor = -0.02 tooltip = production_speed_rail_way_factor_tt }
                    add_to_variable = { RAJ_indian_railway_production_speed_supply_node_factor = -0.02  tooltip = production_speed_supply_node_factor_tt }
                    add_to_variable = { RAJ_indian_railway_production_speed_rail_way_factor = -0.02 tooltip = production_speed_infrastructure_factor_tt }
                }
                else_if = {
                    limit = { check_variable = { RAJ_railway_focuses = 2 } }
                    set_variable = { RAJ_indian_railway_industrial_capacity_factory = 0.06 tooltip = industrial_capacity_factory_tt }

                    add_to_variable = { RAJ_indian_railway_production_speed_infrastructure_factor = -0.04 tooltip = production_speed_rail_way_factor_tt }
                    add_to_variable = { RAJ_indian_railway_production_speed_supply_node_factor = -0.04  tooltip = production_speed_supply_node_factor_tt }
                    add_to_variable = { RAJ_indian_railway_production_speed_rail_way_factor = -0.04 tooltip = production_speed_infrastructure_factor_tt }
                }
                else_if = {
                    limit = { check_variable = { RAJ_railway_focuses = 3 } }
                    set_variable = { RAJ_indian_railway_industrial_capacity_factory = 0.09 tooltip = industrial_capacity_factory_tt }

                    add_to_variable = { RAJ_indian_railway_production_speed_infrastructure_factor = -0.06 tooltip = production_speed_rail_way_factor_tt }
                    add_to_variable = { RAJ_indian_railway_production_speed_supply_node_factor = -0.06  tooltip = production_speed_supply_node_factor_tt }
                    add_to_variable = { RAJ_indian_railway_production_speed_rail_way_factor = -0.06 tooltip = production_speed_infrastructure_factor_tt }
                }
                else_if = {
                    limit = { check_variable = { RAJ_railway_focuses = 4 } }
                    set_variable = { RAJ_indian_railway_industrial_capacity_factory = 0.12 tooltip = industrial_capacity_factory_tt }
                    
                    add_to_variable = { RAJ_indian_railway_production_speed_infrastructure_factor = -0.09 tooltip = production_speed_rail_way_factor_tt }
                    add_to_variable = { RAJ_indian_railway_production_speed_supply_node_factor = -0.09  tooltip = production_speed_supply_node_factor_tt }
                    add_to_variable = { RAJ_indian_railway_production_speed_rail_way_factor = -0.09 tooltip = production_speed_infrastructure_factor_tt }
                }
                else_if = {
                    limit = { check_variable = { RAJ_railway_focuses = 5 } }
                    set_variable = { RAJ_indian_railway_industrial_capacity_factory = 0.15 tooltip = industrial_capacity_factory_tt }

                    add_to_variable = { RAJ_indian_railway_production_speed_infrastructure_factor = -0.12 tooltip = production_speed_rail_way_factor_tt }
                    add_to_variable = { RAJ_indian_railway_production_speed_supply_node_factor = -0.12  tooltip = production_speed_supply_node_factor_tt }
                    add_to_variable = { RAJ_indian_railway_production_speed_rail_way_factor = -0.12 tooltip = production_speed_infrastructure_factor_tt }
                }
                else = {
                    set_variable = { RAJ_indian_railway_industrial_capacity_factory = 0 tooltip = industrial_capacity_factory_tt }
                }
            }
            hidden_effect = { indian_railways_increase_bonus = yes } 
        }
    }

    focus = {
        id = RAJ_royal_indian_navy_mutiny
        icon = GFX_focus_hol_legacy_of_the_de_zeven_provincien_mutiny
        prerequisite = { focus = RAJ_red_in_the_shadows }
        x = 0
        y = 1
        relative_position_id = RAJ_red_in_the_shadows

        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

            communism > 0.5
            PAK = {
                OR = {
                    is_subject = no
                    is_subject_of = RAJ
                }
            }
        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL}

        completion_reward = {

            if = {
                limit = {
                    is_subject = yes
                }
                ENG = {
                    set_autonomy = {
                        target=RAJ
                        autonomy_state = autonomy_free
                        end_civil_wars = yes 
                    }
                }
            }
           
           drop_cosmetic_tag = yes
           if = {
                limit = {
                    is_in_faction_with = ENG
                }
                leave_faction = yes
           }
           set_country_flag = RAJ_allow_release_states
           set_country_flag = stop_unrest_events
          # custom_effect_tooltip = RAJ_red_in_the_shadows_tt
           add_country_leader_role = {
               character =  RAJ_GOE_m_n_roy # optional if inside character scope
               promote_leader = yes
               country_leader = {
                   ideology = marxism
                   
                   traits = { marxist_philosopher } 
               }
           }
           set_politics = {
               ruling_party = communism
               elections_allowed = yes
               last_election = "1936.1.1"
               election_frequency = 48
               long_name = RAJ_communism_transitional_council_long # Optional
               name = RAJ_communism_transitional_council# Optional
           }

           custom_effect_tooltip = generic_skip_one_line_tt

            if = {
                limit = {
                    PAK = { exists = no }
                }
                release = PAK
            }
            else = {
                if = {
                    limit = {
                        PAK = { is_subject_of = RAJ }
                    }
                    end_puppet = PAK
                }
            }

           RAJ = { 
                RAJ_GOE_muhammad_ali_jinnah = {
                    set_nationality = PAK
                    add_country_leader_role = {
                        promote_leader = yes
                        country_leader = {
                            ideology = centrism
                            traits = { father_of_pakistan } 
                        }
                    }
                }
           }
           ENG = {
               add_opinion_modifier = {
                   target = RAJ
                   modifier = modifier_RAJ_ENG_anti_communist
               }
           }
           PAK = {
               add_ideas = idea_RAJ_PAK_british_anti_communist_investments
               add_opinion_modifier = {
                   target = RAJ
                   modifier = modifier_RAJ_ENG_anti_communist
                }
                transfer_state = 986
                transfer_state = 441
                transfer_state = 989
                transfer_state = 443
                transfer_state = 428
                transfer_state = 431
                transfer_state = 433

                hidden_effect = {
                    inherit_technology = RAJ
                    986 = { add_core_of = THIS }
                    441 = { add_core_of = THIS }
                    989 = { add_core_of = THIS }
                    443 = { add_core_of = THIS }
                    428 = { add_core_of = THIS }
                    431 = { add_core_of = THIS }
                    433 = { add_core_of = THIS }
                    add_equipment_to_stockpile = { 
                        type = convoy_1
                        amount = 80
                        producer = PAK
                    }

                    add_equipment_to_stockpile = { 
                        type = train_equipment_1
                        amount = 15
                        producer = PAK
                    }

                    433 = {
                        add_building_construction = {
                            type = supply_node
                            level = 1
                            province = 7998
                            instant_build = yes
                        }
                    }

                    build_railway = {
                        level = 1
                        start_province = 7998
                        target_province = 10772
                    }

                    build_railway = {
                        level = 1
                        start_province = 7998
                        target_province = 1908
                    }
                }
            }   
            hidden_effect = {
            
               random_core_state = {
                    limit = {
                        is_controlled_by = PAK   
                    }
                    prioritize = { 443 } #optional: to pick those states first if they fulfill the limit
                    create_unit = {
                        division = "name = \"Infantry Division\" division_template = \"Infantry Division\" start_experience_factor = 0.3 start_equipment_factor = 0.8 start_manpower_factor = 0.8"
                        owner = PAK

                        count = 27
                    }
                    
                }
            }

           set_truce = {
               target = PAK
               days = 580
           }


           add_stability = -0.15
        }
    }

    focus = {
        id = RAJ_accept_russian_muhajir_money
        icon = GFX_focus_chi_mission_to_the_soviet_union
        prerequisite = { focus = RAJ_orchestrate_train_robberies }
        x = -1
        y = 1
        relative_position_id = RAJ_orchestrate_train_robberies

        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {
            capital_scope.controller = { original_tag = ROOT }
            
        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}

        completion_reward = {
           
            if = {
                limit = {
                    has_dlc = "Arms Against Tyranny"
                }
                every_military_industrial_organization = {
                    add_mio_size = 1
                }

                 add_cic = 1800
            }

            capital_scope = {
                add_extra_state_shared_building_slots = 3
                add_building_construction = {
                    type = industrial_complex
                    level = 2
                    instant_build = yes
                }
                add_building_construction = {
                    type = arms_factory
                    level = 1
                    instant_build = yes
                }
            }
            add_popularity = {
                ideology = communism
                popularity = 0.1
            }
        }
    }

    focus = {
        id = RAJ_bhoodan_movement
        icon = GFX_focus_RAJ_seek_help_from_soviet
        prerequisite = { focus = RAJ_red_in_the_shadows }
        x = 2
        y = 1
        relative_position_id = RAJ_red_in_the_shadows

        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {
        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}
        search_filters = {FOCUS_FILTER_STABILITY}
        search_filters = {FOCUS_FILTER_POLITICAL}

        completion_reward = {
            every_core_state = {
                random_select_amount = 3
                add_extra_state_shared_building_slots = 1
            }
            custom_effect_tooltip = generic_skip_one_line_tt

            add_war_support = -0.05
            add_timed_idea = {
                idea = idea_RAJ_bhoodan_movement
                days = 720
            }
        }
    }


    focus = {
        id = RAJ_five_year_plan
        icon = GFX_focus_generic_soviet_politics
        prerequisite = { focus = RAJ_royal_indian_navy_mutiny }
        x = 5
        y = 2
        relative_position_id = RAJ_royal_indian_navy_mutiny

        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }

        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        completion_reward = {
            add_dynamic_modifier = { modifier = idea_RAJ_five_year_plan }
            add_to_variable = { RAJ_fyp_stability_factor = 0.05 tooltip = stability_factor_tt }
            add_to_variable = { RAJ_fyp_production_speed_buildings_factor = 0.05 tooltip = production_speed_buildings_factor_tt }
            set_country_flag = RAJ_five_year_plan_flag
            add_research_slot = 1
        }
    }

    focus = {
        id = RAJ_indian_socialism
        icon = GFX_focus_prc_agrarian_socialism
        prerequisite = { focus = RAJ_five_year_plan }
        x = 1
        y = 1
        relative_position_id = RAJ_five_year_plan

        mutually_exclusive = { focus = RAJ_soviet_influence }

        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {

        }

        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_RESEARCH}

        completion_reward = {
            set_rule = { 
                can_create_factions  = yes #
            }
            add_tech_bonus = {
                bonus = 0.75
                uses = 2
                category = industry
            }
            custom_effect_tooltip = RAJ_five_year_plan_modify_tt
            add_to_variable = { RAJ_fyp_research_speed_factor = 0.05  tooltip = research_speed_factor_tt }
        }
    }

    focus = {
        id = RAJ_soviet_influence
        icon = GFX_focus_generic_soviet_politics
        prerequisite = { focus = RAJ_five_year_plan }
        x = -1
        y = 1
        relative_position_id = RAJ_five_year_plan

        mutually_exclusive = { focus = RAJ_indian_socialism }

        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {

        }

        bypass = {

        }

        search_filters = {FOCUS_FILTER_INDUSTRY}

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        completion_reward = {
            custom_effect_tooltip = RAJ_five_year_plan_modify_tt
            add_to_variable = { RAJ_fyp_stability_factor = 0.05 tooltip = stability_factor_tt }
            add_to_variable = { RAJ_fyp_consumer_goods_factor = -0.05 tooltip = consumer_goods_factor_tt }
        }
    }

    focus = {
        id = RAJ_soviet_indian_industrial_cooperation
        icon = GFX_focus_RAJ_seek_help_from_soviet
        prerequisite = { focus = RAJ_soviet_influence }
        x = -1
        y = 1
        relative_position_id = RAJ_soviet_influence

        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }

        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}

        completion_reward = {
            add_offsite_building = {
                type = industrial_complex
                level = 3
            }

            if = {
                limit = {
                    SOV = {
                        exists = yes
                        has_government = communism
                        is_faction_leader = yes
                    }
                }

                SOV = {
                    country_event = { id = generic.2 hours = 2 }
                }
            }
            else = {
                random_other_country = {
                    limit = {
                        has_government = communism
                        is_faction_leader = yes
                        exists = yes
                    }
                    country_event = { id = generic.2 hours = 2 }
                }
            }
        }
    }

    focus = {
        id = RAJ_expand_industry_in_hyderabad
        icon = GFX_focus_CHL_enlarge_the_textile_industries
        prerequisite = { focus = RAJ_indian_socialism }
        x = 1
        y = 1
        relative_position_id = RAJ_indian_socialism

        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }

        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}

        completion_reward = {
            random_controlled_state = {
                limit = {
                    is_owned_and_controlled_by = RAJ
                }
                prioritize = { 427 }
                add_extra_state_shared_building_slots = 2
                add_building_construction = {
                    type = arms_factory
                    level = 2
                    instant_build = yes
                }

                add_resource = {
                    type = steel
                    amount = 9
                }
            }
        }
    }

    focus = {
        id = RAJ_indian_national_highways
        icon = GFX_focus_generic_road_investment
        prerequisite = { focus = RAJ_soviet_influence focus = RAJ_indian_socialism }
        x = 0
        y = 2
        relative_position_id = RAJ_five_year_plan

        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {

        }

        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}

        completion_reward = {
            random_owned_controlled_state = {
                limit = {
                    infrastructure < 4
                }
                add_building_construction = {
                    type = infrastructure
                    level = 2
                    instant_build = yes
                }
            }
            random_owned_controlled_state = {
                limit = {
                    infrastructure < 5
                }
                add_building_construction = {
                    type = infrastructure
                    level = 1
                    instant_build = yes
                }
            }
        }
    }

    focus = {
        id = RAJ_continue_the_five_year_plan
        icon = GFX_focus_generic_printing_press
        prerequisite = { focus = RAJ_indian_national_highways }
        x = 0
        y = 1
        relative_position_id = RAJ_indian_national_highways

        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {
            has_country_flag = {
                flag = RAJ_five_year_plan_flag
                days > 365
            }
           custom_trigger_tooltip = {
               tooltip = RAJ_five_year_plan_when_removed_tt
               has_country_flag = {
                   flag = RAJ_five_year_plan_flag
                   days > 365
               }
            }
            
        }

        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}
        search_filters = {FOCUS_FILTER_RESEARCH}

        completion_reward = {
            custom_effect_tooltip = RAJ_five_year_plan_modify_tt
            add_to_variable = { RAJ_fyp_consumer_goods_factor = -0.05 tooltip = consumer_goods_factor_tt }
            add_to_variable = { RAJ_fyp_production_speed_buildings_factor = 0.05 tooltip = production_speed_buildings_factor_tt }
            add_to_variable = { RAJ_fyp_research_speed_factor = 0.05 tooltip = research_speed_factor_tt }
            add_research_slot = 1
        }
    }

    focus = {
        id = RAJ_focus_on_military_industry
        icon = GFX_focus_generic_military_industry
        prerequisite = { focus = RAJ_continue_the_five_year_plan }
        x = 1
        y = 1
        relative_position_id = RAJ_continue_the_five_year_plan

        mutually_exclusive = { focus = RAJ_focus_on_civilian_industry }

        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }

        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}

        completion_reward = {
            custom_effect_tooltip = RAJ_five_year_plan_modify_tt
            add_to_variable = { RAJ_fyp_production_speed_arms_factory_factor = 0.1 tooltip = production_speed_arms_factory_factor_tt }
            add_to_variable = { RAJ_fyp_production_factory_efficiency_gain_factor = 0.1 tooltip = production_factory_efficiency_gain_factor_tt }
            add_to_variable = { RAJ_fyp_production_factory_max_efficiency_factor = 0.05 tooltip = production_factory_max_efficiency_factor_tt }
        }
    }

    focus = {
        id = RAJ_focus_on_civilian_industry
        icon = GFX_focus_generic_industry_3
        prerequisite = { focus = RAJ_continue_the_five_year_plan }
        x = -1
        y = 1
        relative_position_id = RAJ_continue_the_five_year_plan

        mutually_exclusive = { focus = RAJ_focus_on_military_industry }

        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }

        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}

        completion_reward = {
            custom_effect_tooltip = RAJ_five_year_plan_modify_tt
            add_to_variable = { RAJ_fyp_production_factory_max_efficiency_factor = 0.05 tooltip = production_factory_max_efficiency_factor_tt }
            add_to_variable = { RAJ_fyp_production_speed_industrial_complex_factor = 0.1 tooltip = production_speed_industrial_complex_factor_tt }
        }
    }

    focus = {
        id = RAJ_nationalize_tata_group
        icon = GFX_focus_ICE_state_corporatism
        prerequisite = { focus = RAJ_focus_on_civilian_industry }
        x = 0
        y = 1
        relative_position_id = RAJ_focus_on_civilian_industry

        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {
            controls_state = 429
        }

        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}

        completion_reward = {
            random_core_state = {
                limit = {
                    is_owned_and_controlled_by = RAJ
                }
                prioritize = { 429 }
                add_extra_state_shared_building_slots = 2
                add_building_construction = {
                    type = industrial_complex
                    level = 2
                    instant_build = yes
                }
            }

            429 = {
                add_resource = {
                    type = steel
                    amount = 12
                }
            }
        }
    }

    focus = {
        id = RAJ_nationalize_gun_carriage_agency
        icon = GFX_focus_SWE_let_fly_all_guns
        prerequisite = { focus = RAJ_focus_on_military_industry }
        x = 0
        y = 1
        relative_position_id = RAJ_focus_on_military_industry

        mutually_exclusive = { focus = RAJ_eastern_shipyard_construction }

        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }

        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}

        completion_reward = {
            random_core_state = {
                limit = {
                    is_owned_and_controlled_by = RAJ
                }
                add_extra_state_shared_building_slots = 2
                add_building_construction = {
                    type = arms_factory
                    level = 2
                    instant_build = yes
                }
            }
        }
    }

    focus = {
        id = RAJ_eastern_shipyard_construction
        icon = GFX_focus_generic_refit_civilian_ships
        prerequisite = { focus = RAJ_focus_on_military_industry }
        x = 2
        y = 1
        relative_position_id = RAJ_focus_on_military_industry

        mutually_exclusive = { focus = RAJ_nationalize_gun_carriage_agency }

        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }

        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}

        completion_reward = {
            random_core_state = {
                limit = {
                    is_owned_and_controlled_by = RAJ
                    is_coastal = yes
                }
                prioritize = { 423 424 426 431 }
                add_extra_state_shared_building_slots = 3
                add_building_construction = {
                    type = dockyard
                    level = 3
                    instant_build = yes
                }
            }
        }
    }

    focus = {
        id = RAJ_the_peoples_liberation_army
        icon = GFX_focus_GER_support_the_proletarian_uprising
        prerequisite = { focus = RAJ_royal_indian_navy_mutiny }
        x = 1
        y = 1
        relative_position_id = RAJ_royal_indian_navy_mutiny

        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {
        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        completion_reward = {
            add_ideas = idea_RAJ_the_peoples_liberation_army
        }
    }

    focus = {
        id = RAJ_deathblow_to_imperial_remnants
        icon = GFX_goal_generic_secret_weapon
        prerequisite = { focus = RAJ_the_peoples_liberation_army }
        prerequisite = { focus = RAJ_nationalize_british_owned_factories }
        x = -1
        y = 2
        relative_position_id = RAJ_the_peoples_liberation_army

        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {
            NOT = {
                has_truce_with = PAK
            }
		    is_subject = no
			num_of_factories > 25
			has_army_manpower = { size > 99999 }
        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_ANNEXATION}

        completion_reward = {
            create_wargoal = {
                type = annex_everything
                target = PAK 
            }
            custom_effect_tooltip = generic_skip_one_line_tt
            PAK = {
                every_core_state = {
                    add_core_of = ROOT
                }
            }

            if = {
                limit = {
                    BRM = {
                        is_in_faction_with = ENG
                    }
                }

                create_wargoal = {
                    type = annex_everything
                    target = BRM 
                }
                custom_effect_tooltip = generic_skip_one_line_tt
                BRM = {
                    every_core_state = {
                        add_core_of = ROOT
                    }
                }
            }
        }
    }

    
    focus = {
        id = RAJ_jugantar
        icon = GFX_focus_focus_fra_maquis
        prerequisite = { focus = RAJ_the_peoples_liberation_army }
        x = 0
        y = 1
        relative_position_id = RAJ_the_peoples_liberation_army

        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {
            NOT = {
                OR = {
                    controls_state = 431
                    controls_state = 430
                }
            }
        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_ARMY_XP}

        completion_reward = {
            custom_effect_tooltip = RAJ_jugantar_tt
            army_experience = 50
        }
    }

    focus = {
        id = RAJ_the_revolutionary_army_marches
        icon = GFX_goal_generic_attack_allies
        prerequisite = { focus = RAJ_the_peoples_liberation_army }
        x = 2
        y = 1
        relative_position_id = RAJ_the_peoples_liberation_army

        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {
        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        completion_reward = {
            swap_ideas = {
                remove_idea = idea_RAJ_the_peoples_liberation_army
                add_idea = idea_RAJ_the_peoples_liberation_army_2
            }
        }
    }

   


    focus = {
        id = RAJ_nationalize_british_owned_factories
        icon = GFX_focus_AUS_raid_military_storages
        prerequisite = { focus = RAJ_royal_indian_navy_mutiny }
        x = -1
        y = 1
        relative_position_id = RAJ_royal_indian_navy_mutiny

        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {
            is_subject = no
        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}

        completion_reward = {
            try_build_civ_in_core_otherwise_build_in_controlled = yes
            try_build_mil_in_core_otherwise_build_in_controlled_2_mil = yes
        }
    }

    focus = {
        id = RAJ_protest_against_the_howell_monument
        icon = GFX_focus_RAJ_protest_against_the_howell_monument
        prerequisite = { focus = RAJ_forward_bloc }
        x = -2
        y = 0
        relative_position_id = RAJ_promote_violence_against_the_british
        
        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL}

        completion_reward = {
            unlock_decision_tooltip = {
                decision = RAJ_GOE_foment_independence_tension
                show_effect_tooltip = yes # default is no
                show_modifiers = yes # default is no
            }
        }
    }

    focus = {
        id = RAJ_indian_legion
        icon = GFX_focus_RAJ_seek_help_from_germany
        prerequisite = { focus = RAJ_protest_against_the_howell_monument }
        x = -5
        y = 1
        relative_position_id = RAJ_protest_against_the_howell_monument
        
        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {
        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_MILITARY_CHARACTER}

        completion_reward = {
            add_ideas = idea_RAJ_indian_legion
            custom_effect_tooltip = generic_skip_one_line_tt
            random_army_leader = {
                limit = {
                    NOT = { has_trait = desert_fox }
                }
                add_unit_leader_trait = desert_fox
            }
        }
    }

    focus = {
        id = RAJ_infiltrate_aden
        icon = GFX_focus_generic_infiltration
        prerequisite = { focus = RAJ_indian_legion focus = RAJ_go_into_hiding }
        x = 0
        y = 1
        relative_position_id = RAJ_indian_legion
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {
            NOT = { has_completed_focus = RAJ_give_me_blood_and_i_will_grant_you_freedom }
        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL}

        completion_reward = {
            custom_effect_tooltip = RAJ_infiltrate_aden_tt
        }
    }

    focus = {
        id = RAJ_go_into_hiding
        icon = GFX_focus_RAJ_go_into_hiding
        prerequisite = { focus = RAJ_protest_against_the_howell_monument }
        x = -3
        y = 1
        relative_position_id = RAJ_protest_against_the_howell_monument
        
        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {
            NOT = { has_country_flag = has_arrested_bose }
        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL_CHARACTER}

        completion_reward = {
            add_timed_idea = {
                idea = idea_RAJ_bose_hiding_raj
                days = 50
            }
            custom_effect_tooltip = RAJ_go_into_hiding_tt              
        }
    }

    focus = {
        id = RAJ_seek_domestic_allies
        icon = GFX_focus_generic_national_security
        prerequisite = { focus = RAJ_go_into_hiding }
        x = 0
        y = 1
        relative_position_id = RAJ_go_into_hiding
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL_CHARACTER}

        completion_reward = {
            custom_effect_tooltip = available_political_advisor
            show_ideas_tooltip = RAJ_GOE_ukkirapandi_muthuramalinga_thevar
            custom_effect_tooltip = generic_skip_one_line_tt
            custom_effect_tooltip = available_political_advisor
            show_ideas_tooltip = RAJ_GOE_sarat_bose
            custom_effect_tooltip = generic_skip_one_line_tt
            custom_effect_tooltip = available_chief_of_army
            show_ideas_tooltip = RAJ_mohan_singh 
            
        }
    }

    focus = {
        id = RAJ_give_me_blood_and_i_will_grant_you_freedom
        icon = GFX_focus_RAJ_give_me_blood_and_i_will_grant_you_freedom
        prerequisite = { focus = RAJ_protest_against_the_howell_monument  }
        prerequisite = { focus =   RAJ_promote_violence_against_the_british }
        x = 1
        y = 1
        relative_position_id = RAJ_protest_against_the_howell_monument
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {
            any_controlled_state = {
                resistance > 65
                is_in_array = {
                    array = RAJ.owned_states_at_game_start
                    value = THIS
                }
                NOT = {
                    state = 992 #Aden
                }
            }
            has_capitulated = no
            has_war_support > 0.25
        }
        
        bypass = {
        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_TFV_AUTONOMY}

        completion_reward = {

            hidden_effect = {
                set_country_flag = stop_unrest_events
                clr_country_flag = RAJ_hide_no_garrison
                if = {
                    limit = {
                        is_subject = yes
                    }
                    overlord = {
                        set_autonomy = {
                            target = RAJ
                            autonomy_state = autonomy_free
                            freedom_level = 1 # 0-1 
                            end_wars  = no # default yes. will not cancel non civil wars if set to no
                            end_civil_wars = no # default yes. will not cancel civil wars if set to no
                        }
                    }
                }
                else = { hidden_effect = { set_country_flag = RAJ_was_not_subject_of_eng } }
                    every_country = {
                        limit = {
                            has_war_with = RAJ
                            NOT = {
                                RAJ = {
                                    any_owned_state = {
                                        is_controlled_by = PREV.PREV
                                    }
                                }
                            }
                        }
                        white_peace = RAJ
                    }
            var:RAJ.revolter_tag = {
                if = {
                    limit = { NOT = { has_country_flag =  RAJ_was_not_subject_of_eng }}
                    ENG = {
                        set_autonomy = {
                            target=PREV
                            autonomy_state = autonomy_colony
                            freedom_level = 0.8 
                            end_wars  = no 
                            end_civil_wars = no 
                        }
                    }
                }

                if = {
                    limit = { check_variable = { RAJ.capital_fit_count > 0 } }

                    set_capital = {
                          state = var:RAJ.best_capital_fit
                      } 
                    
                }
                else = {
                    random_controlled_state = {
                         PREV = { set_capital = { state = PREV } }
                    }
                   PREV = { set_capital = { state = PREV } }
                }

                if = {
                    limit = {
                        RAJ = { has_country_flag = has_arrested_bose }
                    }

                    capital_scope = { set_variable = { global.bose_arrest_location = THIS } }
                 }
              }	
            }

            custom_effect_tooltip = RAJ_give_me_blood_and_i_will_grant_you_freedom_tt
			
            division_template = {
                name = "Azad Hind Legion"
                is_locked = no
                #division_names_group = NAMELIST_ID # optional
                priority = 0 # optional 
                regiments = {
                     infantry = { x = 0 y = 0 }
                     infantry = { x = 0 y = 1 }
                     infantry = { x = 0 y = 2 }
                     infantry = { x = 1 y = 0 }
                     infantry = { x = 1 y = 1 }
                     infantry = { x = 1 y = 2 } 
                }
                support = {
                    
                }
            }

            hidden_effect = {
            start_civil_war = {
                ideology = democratic
                ruling_party = neutrality
                size = 0.8 # (0-1) Size modifier of the revolt. Affects stockpile, army, air and navy as well
                states = all
                states_filter = { resistance < 64 }
                keep_all_characters = yes
                keep_political_party_members = yes

                hidden_effect = {
                    ROOT = {
                        drop_cosmetic_tag = yes
                    }

                    RAJ = { set_variable = { revolter_tag = PREV } }
                        ROOT = {
                            every_unit_leader = {
                                limit = { has_trait = loyalty_to_india }
                                set_nationality = PREV.PREV
                            }
                        }
                        division_template = {
                            name = "District Garrison II"
                            is_locked = no
                            #division_names_group = NAMELIST_ID # optional
                            priority = 0 # optional 
                            regiments = {
                                infantry = { x = 0 y = 0 }
                                infantry = { x = 0 y = 1 }
                                infantry = { x = 0 y = 2 }
                                infantry = { x = 1 y = 0 }
                                infantry = { x = 1 y = 1 }
                                infantry = { x = 1 y = 2 }    
                            }
                            support = {
                                
                            }
                        }

                        ####### Add Tank division #######
                        if = {  
                            limit = { has_dlc = "No Step Back"}
                            set_technology = {
                                basic_medium_tank_chassis = 1
                                popup = no
                            }
                            create_equipment_variant = {
                                name = "Cruiser Mk. IV"
                                type = medium_tank_chassis_1 # equipment type id, example: ship_hull_carrier_2 

                                upgrades = {
                                    tank_nsb_engine_upgrade = 6
                                    tank_nsb_armor_upgrade = 2
                                }
                                
                                modules = {      
                                    main_armament_slot = tank_small_cannon
                                    engine_type_slot = tank_gasoline_engine
                                    special_type_slot_1 = tank_radio_1
                                    turret_type_slot = tank_medium_three_man_tank_turret
                                    suspension_type_slot = tank_christie_suspension
                                    armor_type_slot = tank_riveted_armor
                                }
                                model = ENG_medium_armor_1_entity # optional. Example: GER_light_armor_2_entity
                            }

                            add_equipment_to_stockpile = { 
                                type = medium_tank_chassis_1
                                variant_name = "Cruiser Mk. IV"
                                amount = 50 
                                producer = ENG
                            }

                        }
                        else = {
                            add_equipment_to_stockpile = { 
                                type = medium_tank_equipment_1 
                                amount = 50 
                                producer = ENG
                            }
                        }

                        division_template = {
                            name = "Royal Tank Division"
                            division_names_group = ENG_ARM_01
                            is_locked = no
                            #division_names_group = NAMELIST_ID # optional
                            priority = 2 # optional 
                            regiments = {
                                medium_armor = { x = 0 y = 0 }
                                medium_armor = { x = 0 y = 1 }
                                medium_armor = { x = 0 y = 2 }
                                medium_armor = { x = 0 y = 3 }

                                cavalry = { x = 1 y = 0 }
                                cavalry = { x = 1 y = 1 }
                                cavalry = { x = 1 y = 2 }
                                cavalry = { x = 1 y = 3 }
    
            
                            }
                            support = {
                                
                            }
                        }
                    }
                    ####### Add Tank division #######
                }
				
                ### Restore cores and spawn divisions ####
                    capital_scope = {
                       create_unit = {
                            division = "name = \"Elite Azad Hind Legion\" division_template = \"Azad Hind Legion\" start_experience_factor = 0.8 start_equipment_factor = 0.7 start_manpower_factor = 1"
                            owner = ROOT
                            allow_spawning_on_enemy_provs = yes 
                            count = 2
                        }
                    }
                for_each_scope_loop = {
                    array =  RAJ.owned_states_at_game_start 
                    if = {
                        limit = {  
                            has_resistance = yes
                            resistance > 84
                        }

                        ROOT = { 
                            transfer_state  = PREV 
                        }
                        add_core_of = ROOT

                        create_unit = {
                            division = "name = \"Azad Hind Legion\" division_template = \"Azad Hind Legion\" start_experience_factor = 0.6 start_equipment_factor = 0.85 start_manpower_factor = 1"
                            owner = ROOT
                            allow_spawning_on_enemy_provs = yes 
                            count = 2
                        }
                        set_resistance = 0
                    }
                    else_if = {
                        limit = { 
                            has_resistance = yes
                            resistance > 64 
                            resistance < 84
                        }

                        ROOT = { 
                            transfer_state  = PREV 
                        }
                        add_core_of = ROOT

                        create_unit = {
                            division = "name = \"Azad Hind Legion\" division_template = \"Azad Hind Legion\" start_experience_factor = 0.3 start_equipment_factor = 0.85 start_manpower_factor = 1"
                            owner = ROOT
                            allow_spawning_on_enemy_provs = yes 
                            count = 1
                        }
                        set_resistance = 0
                    }
                    random_state = {
                        limit = {  
							is_controlled_by = PREV
                        }
                        create_unit = {
                            division = "name = \"District Garrison II\" division_template = \"District Garrison II\" start_experience_factor = 0.1 start_equipment_factor = 0.35 start_manpower_factor = 0.6"
                            owner = var:RAJ.revolter_tag
                            allow_spawning_on_enemy_provs = no 
                            count = 1
                        }
                    }

                    if = {
                        limit = { has_state_flag = pre_bose_core }
                        force_disable_resistance = { 
                            clear = no #if yes, will clear previously disabled resistance
                            occupier = RAJ
                            occupied = DIP
                        }
                        remove_core_of = DIP 
                        add_core_of = RAJ
                    }
                }

                random_state = { #this used to be a part of the for loop by mistake, leading to the funniest bug report i have ever read: "notice there are 34 newly spawned tank divisions" 
                    limit = {
                        is_controlled_by = PREV
                    }
                    create_unit = {
                        division = "name = \"Royal Tank Division\" division_template = \"Royal Tank Division\" start_experience_factor = 0.1 start_equipment_factor = 0.8 start_manpower_factor = 0.9"
                        owner = var:RAJ.revolter_tag
                        allow_spawning_on_enemy_provs = no 
                        count = 1
                    }
                }
                
                ### Restore cores and spawn divisions ####

                random_state = {
                   limit = {
                        NOT = { state = 439 }
                        is_in_array = {
                            array = RAJ.owned_states_at_game_start
                            value = THIS
                        }
                        is_controlled_by = ROOT
                   }
                   RAJ = {
                       set_capital  = {
                           state = PREV
                           remember_old_capital = yes #default = yes
                       }
                   }
               }
           }
 			add_manpower = 50000
			
			add_equipment_to_stockpile = { type = infantry_equipment_0 amount = 500 producer = SOV }
			add_equipment_to_stockpile = { type = infantry_equipment_0 amount = 500 producer = JAP }
			add_equipment_to_stockpile = { type = infantry_equipment_0 amount = 500 producer = GER }
			add_equipment_to_stockpile = { type = convoy_1 amount = 10 }
			add_equipment_to_stockpile = { type = train_equipment_1 amount = 5 }
            ###### #Call Jaoan In #######
            if = {
                limit = {
                    JAP = {
                        exists = yes
                        is_subject = no
                        has_country_flag = agreed_to_help_bose
                    }
                }

                JAP = { country_event = { id = GOE_RAJ.10 hours = 1  } }
            }

            if = {
                limit = { is_in_faction_with = ENG }
                leave_faction = yes
            }


            #First check if the "other" raj has any valid state that it can possily have as a capital
            bose_civil_war_capital_check = yes
            if = {
                limit = { RAJ = { has_country_flag = bose_opponent_has_valid_capital } }

                every_other_country = {
                    limit = {
                        original_tag = RAJ
                    }
                    set_variable = { RAJ.RAJ_capital_fit_count = 0 }
                    every_controlled_state = { #try prevent cheese by the player surrounding the capital pre-cw by only picking high resistance states around the enemy capital by picking a capital that at least has an adjectent controlled state
                        set_variable = { RAJ.RAJ_state_fit_count = 0 }

                        every_neighbor_state = {
                            limit = {
                                is_in_array = {
                                    array = RAJ.owned_states_at_game_start
                                    value = THIS
                                }
                                is_controlled_by = RAJ.revolter_tag
                            }

                            add_to_variable = { RAJ.RAJ_state_fit_count = 1 }
                        }

                        if = {
                            limit = { check_variable = { RAJ.RAJ_state_fit_count  > RAJ.RAJ_capital_fit_count } }

                            set_variable = { RAJ.RAJ_capital_fit_count = RAJ.RAJ_state_fit_count }
                            set_variable = { RAJ.best_capital_fit =  THIS }
                            
                        }
                    }
                }
            }
            else = { #If not a random indian state becomes the capital to avoid edge cases where you dont white peace out the other raj
                random_scope_in_array = {
                    array = RAJ.owned_states_at_game_start 
                    limit = { 
                        is_controlled_by = ROOT 
                        NOT = { state = 992 }
                    } 
                    

                    for_each_scope_loop = {
                        array = RAJ.owned_states_at_game_start 
                        add_to_array = { RAJ.owned_states_copy = THIS }
                    }

                    remove_from_array = {
                        array = RAJ.owned_states_copy
                        value = THIS 
                    }
                    var:RAJ.revolter_tag = { transfer_state = PREV }
                    THIS = {
                        teleport_armies = { 
                            limit = {

                                has_war_with = var:RAJ.revolter_tag
                            }
                            to_state_array = RAJ.owned_states_copy
                        }
                    }

                    clear_array = RAJ.owned_states_copy
                }
            }

            ### ADEN ###
            if = {
                limit = {
                    has_completed_focus = RAJ_infiltrate_aden
                }

                if = {
                    limit = {
                        659 = { 
                            controller = {  
                                OR = {
                                    original_tag = ENG
                                    is_in_faction_with = ENG
                                }
                            } 
                        }
                    }
                    659 = {
                        create_unit = {
                            division = "name = \"Azad Hind Legion\" division_template = \"Azad Hind Legion\" start_experience_factor = 0.2 start_equipment_factor = 0.8 start_manpower_factor = 1"
                            owner = ROOT
                            allow_spawning_on_enemy_provs = yes 
                            count = 2
                        }
                    }

                }

                if = {
                    limit = {
                        906 = { 
                            controller = {  
                                OR = {
                                    original_tag = ENG
                                    is_in_faction_with = ENG
                                }
                            } 
                        }
                    }
                    906 = {
                        create_unit = {
                            division = "name = \"Azad Hind Legion\" division_template = \"Azad Hind Legion\" start_experience_factor = 0.2 start_equipment_factor = 0.8 start_manpower_factor = 1"
                            owner = ROOT
                            allow_spawning_on_enemy_provs = yes 
                            count = 2
                        }
                    }

                }

                if = {
                    limit = {
                        658 = { 
                            controller = {  
                                OR = {
                                    original_tag = ENG
                                    is_in_faction_with = ENG
                                }
                            } 
                        }
                    }
                    658 = {
                        create_unit = {
                            division = "name = \"Azad Hind Legion\" division_template = \"Azad Hind Legion\" start_experience_factor = 0.2 start_equipment_factor = 0.8 start_manpower_factor = 1"
                            owner = ROOT
                            allow_spawning_on_enemy_provs = yes 
                            count = 2
                        }
                    }

                }

                if = {
                    limit = {
                        765 = { 
                            controller = {  
                                OR = {
                                    original_tag = ENG
                                    is_in_faction_with = ENG
                                }
                            } 
                        }
                    }
                    765 = {
                        create_unit = {
                            division = "name = \"Azad Hind Legion\" division_template = \"Azad Hind Legion\" start_experience_factor = 0.2 start_equipment_factor = 0.8 start_manpower_factor = 1"
                            owner = ROOT
                            allow_spawning_on_enemy_provs = yes 
                            count = 2
                        }
                    }

                }

                if = {
                    limit = {
                        422 = { 
                            controller = {  
                                OR = {
                                    original_tag = ENG
                                    is_in_faction_with = ENG
                                }
                            } 
                        }
                    }
					RAJ = { transfer_state = 422 }
                    422 = {
                        create_unit = {
                            division = "name = \"Azad Hind Legion\" division_template = \"Azad Hind Legion\" start_experience_factor = 0.2 start_equipment_factor = 0.8 start_manpower_factor = 1"
                            owner = ROOT
                            allow_spawning_on_enemy_provs = yes 
                            count = 2
                        }
                    }

                }

                if = {
                    limit = {
                        656 = { 
                            controller = {  
                                OR = {
                                    original_tag = ENG
                                    is_in_faction_with = ENG
                                }
                            } 
                        }
                    }
                    656 = {
                        create_unit = {
                            division = "name = \"Azad Hind Legion\" division_template = \"Azad Hind Legion\" start_experience_factor = 0.2 start_equipment_factor = 0.8 start_manpower_factor = 1"
                            owner = ROOT
                            allow_spawning_on_enemy_provs = yes 
                            count = 2
                        }
                    }
                }
            }

            if = {
                limit = { has_completed_focus = RAJ_seek_japanese_support }

                add_ideas = idea_RAJ_japanese_army_advisors
                if = {
                    limit = {
                        has_dlc = "By Blood Alone"
                    }

                    create_equipment_variant = {
                        name = "B4Y"
                        type = cv_small_plane_naval_bomber_airframe_1
                        modules = {
                            fixed_main_weapon_slot = torpedo_mounting
                            fixed_auxiliary_weapon_slot_1 = bomb_locks
                            engine_type_slot = engine_2_1x
                            special_type_slot_1 = empty
                        }
                        icon = "GFX_JAP_cv_naval_bomber1_medium"
                    }

                    add_equipment_to_stockpile = { 
                        type = cv_small_plane_naval_bomber_airframe_1
                        variant_name = "B4Y"
                        amount = 120 
                        producer = JAP
                    }


                    create_equipment_variant = {
                        name = "Ki-10"
                        type = small_plane_airframe_0
                        modules = {
                            fixed_main_weapon_slot = light_mg_2x
                            engine_type_slot = engine_1_1x
                            special_type_slot_1 = empty
                        }
                    }

                    add_equipment_to_stockpile = { 
                        type = small_plane_airframe_0
                        variant_name = "Ki-10"
                        amount = 135 
                        producer = JAP
                    }


                    
                }
                else = {
                    add_equipment_to_stockpile = { 
                        type = nav_bomber_equipment_1
                        amount = 120 
                        producer = JAP
                    }

                    add_equipment_to_stockpile = { 
                        type = fighter_equipment_0 
                        amount = 135 
                        producer = JAP
                    }
                }
            }

            var:revolter_tag = {
                set_cosmetic_tag = RAJ_UK
            }
          
           every_other_country = {
                limit = {
                    original_tag = RAJ
                    has_cosmetic_tag = RAJ_UK
                    has_war_with = ROOT
                }
                RAJ = {
                    every_unit_leader = {
                        limit = {
                            has_trait = loyalty_to_britain
                        }
                        set_nationality = PREV.PREV
                    }
                    RAJ_lord_linlithgow = {
                        set_nationality = PREV.PREV
                        add_country_leader_role = {
                            promote_leader = yes
                            country_leader = {
                                ideology = conservatism
                            }
                        }
                    }
                }
           }

            RAJ = {
                if = {
                    limit = {
                        NOT = { has_country_flag = has_arrested_bose }
                    }

                    add_country_leader_role = {
                        character = RAJ_subhas_chanda_bose
                        promote_leader = yes
                        country_leader={
                            ideology=centrism
                            expire="1965.1.1.1"
                            traits = { nationalistic_freedom_fighter }
                            id=-1
                        }
                    }
                }
                else = {
                    add_country_leader_role = {
                        character = RAJ_subhas_chanda_bose
                        promote_leader = yes
                        country_leader = {
                            ideology = centrism
                            expire = "1965.1.1.1"
                            traits = { in_prison }
                            id = -1
                        }
                    }
                }

            }
            
            if = {
                limit = {
                    has_completed_focus = RAJ_azad_hind_dlc
                }
                add_timed_idea = {
                    idea = idea_RAJ_azad_hind_repair
                    days = 120
                }
            }

            set_cosmetic_tag = RAJ_azad_hind_tag
            every_army_leader = {
                limit = {
                    has_trait = loyalty_to_britain
                }
                set_nationality = ENG
            }

            every_army_leader = {
                limit = {
                    OR = {
                        has_trait = loyalty_to_india
                        has_trait = loyalty_to_pakistan
                        has_trait = loyalty_to_britain
                    }
                }
                set_nationality =  var:RAJ.revolter_tag
            }
        }
    }

    focus = {
        id = RAJ_rani_of_jhansi_regiment
        icon = GFX_focus_generic_women_in_military
        prerequisite = { focus = RAJ_forward_bloc focus = RAJ_red_in_the_shadows }
        x = 6
        y =1
        relative_position_id = RAJ_forward_bloc
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_MANPOWER}

        completion_reward = {
            add_ideas = { idea_RAJ_rani_of_jhansi_regiment }
            add_corps_commander_role = {
                character = RAJ_lakshmi_sahgal
                traits = { }
                skill = 5
                female = yes
                attack_skill = 4
                defense_skill = 2
                planning_skill = 4
                logistics_skill = 2
            }
            division_template = {
                name = "Rani of Jhansi Division"
                division_names_group = RAJ_INF_01
                regiments = {
                    infantry = { x = 0 y = 0 }
                    infantry = { x = 0 y = 1 }
                    infantry = { x = 0 y = 2 }
        
                    infantry = { x = 1 y = 0 }
                    infantry = { x = 1 y = 1 }
                    infantry = { x = 1 y = 2 }
        
                    infantry = { x = 2 y = 0 }
                    infantry = { x = 2 y = 1 }
                    infantry = { x = 2 y = 2 }
                }
            }
        }
        
    }

    focus = {
        id = RAJ_azad_hind_dlc
        icon = GFX_goal_generic_major_war
        prerequisite = { focus = RAJ_protest_against_the_howell_monument }
        x = 6
        y = 1
        relative_position_id = RAJ_protest_against_the_howell_monument
        
        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {
        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL}

        completion_reward = {
            if = {
                limit = {
                    NOT = { has_completed_focus = RAJ_hindutva }
                }
                set_party_name = {
                    ideology = neutrality
                    long_name = RAJ_azad_hind
                    name = RAJ_azad_hind
                }
            }
            add_popularity = {
                ideology = neutrality
                popularity = 0.1
            }
            add_popularity = {
                ideology = fascism
                popularity = 0.1
            }

            if = {
                limit = { NOT = { has_completed_focus = RAJ_give_me_blood_and_i_will_grant_you_freedom } }
                custom_effect_tooltip = generic_skip_one_line_tt
                custom_effect_tooltip = RAJ_azad_hind_dlc_tt
                show_ideas_tooltip = idea_RAJ_azad_hind_repair
                custom_effect_tooltip = RAJ_azad_hind_dlc_tt_2
            }
            else = {
                add_timed_idea = {
                    idea = idea_RAJ_azad_hind_repair
                    days = 120
                }
            }

            custom_effect_tooltip = generic_skip_one_line_tt
            custom_effect_tooltip = available_political_advisor
            show_ideas_tooltip = RAJ_GOE_arcot_doraiswamy_loganadan
            RAJ_GOE_arcot_doraiswamy_loganadan = { custom_effect_tooltip = unlock_general_tt }
            show_ideas_tooltip = RAJ_GOE_shah_nawaz_khan
            RAJ_GOE_shah_nawaz_khan = { custom_effect_tooltip = unlock_general_tt }
            RAJ_GOE_mohammed_zaman_kiani = { custom_effect_tooltip = unlock_general_tt }
        }
    }

    focus = {
        id = RAJ_seek_japanese_support
        icon = GFX_focus_AST_war_japan
        prerequisite = { focus = RAJ_azad_hind_dlc }
        x = 3
        y = 1
        relative_position_id = RAJ_azad_hind_dlc
        
        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL_CHARACTER}
        search_filters = {FOCUS_FILTER_INDUSTRY}

        completion_reward = {
            custom_effect_tooltip = RAJ_seek_japanese_support_tt
            effect_tooltip = {
                show_ideas_tooltip = idea_RAJ_japanese_army_advisors
            }

            custom_effect_tooltip = generic_skip_one_line_tt
            custom_effect_tooltip = available_political_advisor
            show_ideas_tooltip = RAJ_GOE_rash_behari_bose
        }
    }

    focus = {
        id = RAJ_the_enemy_of_my_enemy
        icon = GFX_focus_jap_cast_the_die
        prerequisite = { focus = RAJ_seek_japanese_support }
        x = 1
        y = 1
        relative_position_id = RAJ_seek_japanese_support
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {
            JAP = {
                exists = yes
                is_subject = no
				is_major = yes
				has_civil_war = no 
				OR = { has_government = fascism has_government = neutrality }
            }
        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL}

        completion_reward = {
            custom_effect_tooltip = if_they_accept
            custom_effect_tooltip = RAJ_the_enemy_of_my_enemy_tt
            JAP = { country_event = { id =  GOE_RAJ.7 days = 1 random_days = 3 } }
            if = {
                limit = { JAP = { is_ai = yes } }
                custom_effect_tooltip = RAJ_the_enemy_of_my_enemy_tt_2
            }
        }
    }

    focus = {
        id = RAJ_join_the_co_prospherity_sphere
        icon = GFX_focus_chi_collaboration_with_the_japanese
        prerequisite = { focus = RAJ_the_enemy_of_my_enemy }
        x = 1
        y = 1
        relative_position_id = RAJ_the_enemy_of_my_enemy
        
        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {
            JAP = {
                is_faction_leader = yes
                is_subject = no
                NOT = {
                    has_war_with = ROOT
                }
            }
            is_in_faction = no
            is_subject = no
        }
        
        bypass = {
        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = { FOCUS_FILTER_POLITICAL }

        completion_reward = {
            hidden_effect = {
                JAP = {
                    country_event = { id = generic.2 hours = 2 }
                }
            }
            custom_effect_tooltip = RAJ_join_the_co_prospherity_sphere_tt
        }
    }

    focus = {
        id = RAJ_shaheed_and_swaraj
        icon = GFX_focus_jap_strike_south
        prerequisite = { focus = RAJ_the_enemy_of_my_enemy }
        x = -1
        y = 1
        relative_position_id = RAJ_the_enemy_of_my_enemy
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {
            controls_state = 733
        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}

        completion_reward = {

            add_equipment_to_stockpile = { 
                type = convoy_1
                amount = 50
                producer = RAJ
            }

            custom_effect_tooltip = generic_skip_one_line_tt

            733 = {
                add_core_of = RAJ
                set_state_name = STATE_733_shaheed


                add_building_construction = {
                    type = coastal_bunker
                    province = {
                        all_provinces = yes
                    }
                    level = 5
                    instant_build = yes
                }

                add_building_construction = {
                    type = naval_base
                    province = 12251
                    level = 3
                    instant_build = yes
                }

                set_province_name = {
                    id = 12251
                    name = VICTORY_POINTS_12251_bose
                }
                add_extra_state_shared_building_slots = 4
                add_building_construction = {
                    type = arms_factory
                    level = 2
                    instant_build = yes
                }

            }

            
            set_capital = {
                state = 733
                remember_old_capital = yes #default = yes
            }
        }
    }

    focus = {
        id = RAJ_azad_hind_dlc_radio
        icon = GFX_focus_SWE_radiotjanst
        prerequisite = { focus = RAJ_azad_hind_dlc }
        x = 1
        y = 1
        relative_position_id = RAJ_azad_hind_dlc
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL}

        completion_reward = {
            if = {
                limit = {
                    has_government = fascism
                }
                add_ideas = idea_RAJ_azad_hind_radio_fascism
                custom_effect_tooltip = generic_skip_one_line_tt
            }
            else_if = {
                limit = {
                    has_government = communism
                }
                add_ideas = idea_RAJ_azad_hind_radio_communism  
                custom_effect_tooltip = generic_skip_one_line_tt
            }
            else = {
                add_ideas = idea_RAJ_azad_hind_radio_unaligned    
                custom_effect_tooltip = generic_skip_one_line_tt
            }
              
            unlock_decision_tooltip = {
                decision = RAJ_GOE_azad_hind_radio_fascism
                show_effect_tooltip = yes # default is no
                show_modifiers = yes # default is no
            }

            unlock_decision_tooltip = {
                decision = RAJ_GOE_azad_hind_radio_unaligned
                show_effect_tooltip = yes # default is no
                show_modifiers = yes # default is no
            }
            unlock_decision_tooltip = {
                decision = RAJ_GOE_azad_hind_radio_communism
                show_effect_tooltip = yes # default is no
                show_modifiers = yes # default is no
            }




        }
    }

#   focus = {
#       id = RAJ_seek_international_recognition
#       #icon = GFX_
#      # prerequisite = { focus = RAJ_azad_hind_dlc  }
#       prerequisite = {focus = RAJ_give_me_blood_and_i_will_grant_you_freedom }
#       x = -7
#       y = 2
#       relative_position_id = RAJ_azad_hind_dlc
#       
#       cost = 6

#       ai_will_do = {
#           factor = 1
#       }

#       available = {
#           all_of_scopes = {
#               array = owned_states_at_game_start
#               is_fully_controlled_by = ROOT
#           }  
#       }
#       
#       bypass = {

#       }

#       cancel_if_invalid = yes
#       continue_if_invalid = no
#       available_if_capitulated = no



#       completion_reward = {
#           every_state = { #in case something happens add back cores here 
#               limit = { has_state_flag = pre_bose_core }
#               if = {
#                   limit = { has_resistance = yes }
#                   force_disable_resistance = { 
#                       clear = no #if yes, will clear previously disabled resistance
#                       occupier = RAJ
#                       occupied = DIP
#                   }
#               }
#               add_core_of = RAJ
#           }


#       }
#   }

    focus = {
        id = RAJ_war_taxes
        icon = GFX_focus_RAJ_war_taxes
        prerequisite = { focus = RAJ_azad_hind_dlc }
        x = -1
        y = 1
        relative_position_id = RAJ_azad_hind_dlc
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}

        completion_reward = {


            set_variable = { amount_of_times_raised_taxes = 0 }
            set_variable = { RAJ_war_taxes_mil = 0 }
            set_variable = { RAJ_war_taxes_war_support = 0 }
            set_variable = { RAJ_war_taxes_stability = 0 }
            custom_effect_tooltip = RAJ_war_taxes_tt
            unlock_decision_tooltip = {
                decision = RAJ_GOE_raise_war_taxes
                show_effect_tooltip = yes # default is no
                show_modifiers = yes # default is no
            }

            unlock_decision_tooltip = {
                decision = RAJ_GOE_reduce_war_taxes
                show_effect_tooltip = yes # default is no
                show_modifiers = yes # default is no
            }
        }
    }

    focus = {
        id = RAJ_the_indian_national_army
        icon = GFX_focus_generic_fascist_troops
        prerequisite = { focus = RAJ_war_taxes }
        x = 0
        y = 1
        relative_position_id = RAJ_war_taxes
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        completion_reward = {
            add_ideas = idea_RAJ_the_indian_national_army   
        }
    }

    focus = {
        id = RAJ_azad_hind_dlc_bank
        icon = GFX_focus_usa_reestablish_the_gold_standard
        prerequisite = { focus = RAJ_war_taxes }
        x = 2
        y = 1
        relative_position_id = RAJ_war_taxes
        
        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}

        completion_reward = {
            custom_effect_tooltip = available_industrial_concern
            show_ideas_tooltip = idea_RAJ_azad_hind_bank
        }
    }

    focus = {
        id = RAJ_education_efforts_2
        icon = GFX_focus_research
        prerequisite = { focus = RAJ_azad_hind_dlc_bank }
        x = 0
        y = 1
        relative_position_id = RAJ_azad_hind_dlc_bank
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_RESEARCH}

        complete_tooltip = {

        }

        completion_reward = {
            add_research_slot = 1
        }
    }

    focus = {
        id = RAJ_hindutva
        icon = GFX_focus_RAJ_hindutava
        prerequisite = { focus = RAJ_give_me_blood_and_i_will_grant_you_freedom }
        x = -2
        y = 4
        relative_position_id = RAJ_give_me_blood_and_i_will_grant_you_freedom
        mutually_exclusive = { focus = RAJ_netaji }
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL}

        completion_reward = {
		    add_stability = 0.1
            set_politics = {
                ruling_party = fascism
                elections_allowed = no
                last_election = "1936.1.1"
                election_frequency = 24
                long_name = RAJ_fascism_party_long  # Optional
                name = RAJ_fascism_party # Optional
            }

            effect_tooltip = {
                promote_character = {
                    ideology = fascism_ideology 
                    character = RAJ_v_d_savarkar
                }
            }

            set_country_flag = RAJ_allow_release_states
        }
    }

    focus = {
        id = RAJ_netaji
        icon = GFX_focus_RAJ_netaji
        prerequisite = { focus = RAJ_give_me_blood_and_i_will_grant_you_freedom }
        x = 4
        y = 0
        relative_position_id = RAJ_hindutva
        mutually_exclusive = { focus = RAJ_hindutva }
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL_CHARACTER}

        completion_reward = {

            add_trait = {
                character = RAJ_subhas_chanda_bose # optional if inside character scope
                trait = netaji
                ideology = centrism #Only required for updating country leader 
            }
			add_stability = 0.2
            set_country_flag = RAJ_allow_release_states
        }
    }

    focus = {
        id = RAJ_the_second_duar_war
        icon = GFX_focus_generic_attack_bhutan
        prerequisite = { focus = RAJ_netaji }
         mutually_exclusive = { focus = RAJ_bhutanese_protectorate }
        x = 4
        y = 1
        relative_position_id = RAJ_netaji
       

        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {
            BHU = {
                exists = yes
                NOT = { is_subject_of = ROOT }
            }
		    is_subject = no
			num_of_factories > 15
			has_army_manpower = { size > 49999 }
        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_ANNEXATION}

        completion_reward = {

            create_wargoal = {
                type = annex_everything
                target = BHU 
            }
        }
    }


    focus = {
        id = RAJ_coal_fire_and_steel
        icon = GFX_focus_GER_factories_for_resources
        prerequisite = { focus = RAJ_netaji focus = RAJ_hindutva }
        x = -2
        y = 1
        relative_position_id = RAJ_netaji
        #mutually_exclusive = { focus = RAJ_hindutva }
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}

        completion_reward = {
            try_build_mil_in_core_otherwise_build_in_controlled = yes
            try_build_civ_in_core_otherwise_build_in_controlled = yes  
            random_core_state = {
                limit = {
                    is_controlled_by = ROOT
                }
                prioritize = { 435 } #optional: to pick those states first if they fulfill the limit
                add_resource = {
                    type = steel
                    amount = 12
                    state = THIS 
                }
            }
        }
    }

    focus = {
        id = RAJ_bhutanese_protectorate
        icon = GFX_focus_generic_attack_bhutan
        prerequisite = { focus = RAJ_netaji }
        x = 2
        y = 0
        relative_position_id = RAJ_the_second_duar_war
        mutually_exclusive = { focus = RAJ_the_second_duar_war }
        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {
            BHU = {
                exists = yes
                is_subject = no
            }
        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_ANNEXATION}

        completion_reward = {
            BHU = {
              country_event = { id = GOE_RAJ.4 hours = 3 random_hours = 2  }
            }
            custom_effect_tooltip = if_they_accept_tt
            custom_effect_tooltip = RAJ_bhutanese_protectorate_tt
        }
    }

    focus = {
        id = RAJ_heavy_industries
        icon = GFX_focus_CONGO_copper_cartridges
        prerequisite = { focus = RAJ_coal_fire_and_steel }
        x = 0
        y = 1
        relative_position_id = RAJ_coal_fire_and_steel
        #mutually_exclusive = { focus = RAJ_hindutva }
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}

        completion_reward = {
            if = {
                limit = {
                    has_dlc = "Arms Against Tyranny"
                }
                every_military_industrial_organization = {
                    add_mio_size = 1
                }
            }
            try_build_mil_in_core_otherwise_build_in_controlled = yes
            try_build_mil_in_core_otherwise_build_in_controlled = yes  

        }
    }

    focus = {
        id = RAJ_extend_indian_security_zone
        icon = GFX_goal_generic_more_territorial_claims
        prerequisite = { focus = RAJ_netaji }
        x = 0
        y = 2
        relative_position_id = RAJ_netaji
        #mutually_exclusive = { focus = RAJ_hindutva }
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {
            TIB = {
                exists = no
            }
		    is_subject = no
			num_of_factories > 15
			has_army_manpower = { size > 49999 }
        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL}

        completion_reward = {
            TIB = {
                every_core_state = {
                    limit = {
                        NOT = { state = 601 } #Chinese core
                        controller = {
                            NOT = { original_tag = ROOT }
                            NOT = { is_subject_of = ROOT }
                        }
                        NOT = { 
                            controller = {
                                ROOT = {
                                    has_wargoal_against = {
                                         target = PREV
                                     } 
                                }
                            }

                        }
                    }

                    controller = {
                        ROOT = {
                            create_wargoal = {
                                type = puppet_wargoal_focus
                                target = PREV
                                expire = 365
                            }
                        }
                    }

                }
            }
            if = {
                limit = {
                    CHI = {
                        exists = yes
                        is_subject = no
                    }
                }
                CHI = {
                    country_event = { id = GOE_RAJ.17 hours = 1 }
                }
            }
        }
    }

    focus = {
        id = RAJ_guided_democracy
        icon = GFX_focus_generic_strike_at_democracy2
        prerequisite = { focus = RAJ_netaji }
        mutually_exclusive = { focus = RAJ_authoritarianship }
        x = 12
        y = 1
        relative_position_id = RAJ_netaji
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL}

        completion_reward = {
            add_country_leader_trait = under_democratic_guise
        }
    }

    focus = {
        id = RAJ_authoritarianship
        icon = GFX_focus_generic_military_dictatorship
        prerequisite = { focus = RAJ_netaji }
        mutually_exclusive = { focus = RAJ_guided_democracy }
        x = -4
        y = 0
        relative_position_id = RAJ_guided_democracy
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL}
        search_filters = {FOCUS_FILTER_INDUSTRY}

        completion_reward = {
            add_country_leader_trait = authoritarian
        }
    }


    focus = {
        id = RAJ_demand_return_of_imperialist_colonies
        icon = GFX_focus_eng_bring_the_dominions_back_into_the_fold
        prerequisite = { focus = RAJ_authoritarianship focus = RAJ_guided_democracy  }
        x = 2
        y = 1
        relative_position_id = RAJ_authoritarianship
        #mutually_exclusive = { focus = RAJ_hindutva }
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL}
        search_filters = {FOCUS_FILTER_ANNEXATION}

        completion_reward = {
            320 = { add_core_of = ROOT }
            321 = { add_core_of = ROOT }
            422 = { add_claim_by = ROOT }
            custom_effect_tooltip = generic_skip_one_line_tt
            if = {
                limit = { 
                    NOT = { has_war_with = 320.owner }
                    320 = { is_fully_controlled_by = 320.owner }

                }

                320 = {
                    owner = {
                        set_variable = { RAJ_demand_return_state = PREV }
                        country_event = { id = GOE_RAJ.18 hours = 2 }
                    }
                }
            }

            if = {
                limit = { 
                    NOT = { has_war_with = 321.owner }
                    321 = { is_fully_controlled_by = 321.owner }

                }

                321 = {
                    owner = {
                        set_variable = { RAJ_demand_return_state = PREV }
                        country_event = { id = GOE_RAJ.18 hours = 2 }
                    }
                }
            }


            if = {
                limit = { 
                    NOT = { has_war_with = 422.owner }
                    422 = { is_fully_controlled_by = 422.owner }

                }

                422 = {
                    owner = {
                        set_variable = { RAJ_demand_return_state = PREV }
                        country_event = { id = GOE_RAJ.18 hours = 2 }
                    }
                }
            }
        }
    }

    focus = {
        id = RAJ_strike_burma
        icon = GFX_goal_generic_territory_or_war
        prerequisite = { focus = RAJ_demand_return_of_imperialist_colonies }
        x = 0
        y = 1
        relative_position_id = RAJ_demand_return_of_imperialist_colonies
        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {
            BRM = { 
                exists = yes 
                NOT = { is_subject_of = ROOT }
            }
		    is_subject = no
			num_of_factories > 15
			has_army_manpower = { size > 49999 }
        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_ANNEXATION}
        search_filters = {FOCUS_FILTER_POLITICAL}

        completion_reward = {
            create_wargoal = {
                type = annex_everything
                target = BRM
            }
        }
    }


    focus = {
        id = RAJ_the_sun_sets
        icon = GFX_focus_RAJ_the_sun_sets
        prerequisite = { focus = RAJ_strike_burma }
        x = 0
        y = 1
        relative_position_id = RAJ_strike_burma
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {
		    is_subject = no
			num_of_factories > 50
			has_army_manpower = { size > 199999 }
        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_ANNEXATION}
        search_filters = {FOCUS_FILTER_POLITICAL}

        completion_reward = {
            if = {
                limit = {
                    NOT = { has_war_with = MAL }
                }

                create_wargoal = {
                    type = annex_everything
                    target = MAL
                }

                MAL = {
                    every_core_state = {
                        add_claim_by = ROOT
                    }
                }
            }

            custom_effect_tooltip = generic_skip_one_line_tt

            add_ideas = idea_RAJ_anti_imperialism
            
        }
    }


    focus =  {
        id = RAJ_cult_of_personality
        icon = GFX_focus_ICE_embrace_the_workers_revolution
        x = 2
        y = 1
        relative_position_id = RAJ_netaji
        prerequisite = { focus = RAJ_netaji }
        cost = 6
        ai_will_do = {
            factor = 30
        }
        available = {
            fascism > 0.05
        }

        search_filters = {FOCUS_FILTER_POLITICAL}
        search_filters = {FOCUS_FILTER_STABILITY}
        search_filters = {FOCUS_FILTER_WAR_SUPPORT}

        completion_reward = {
            add_country_leader_trait = JUNO_cult_of_personality
        }
    }


    focus = {
        id = RAJ_seek_financial_aid_from_the_ussr
        icon = GFX_focus_chi_mission_to_the_soviet_union
        prerequisite = { focus = RAJ_extend_indian_security_zone }
        x = 3
        y = 1
        relative_position_id = RAJ_extend_indian_security_zone
        #mutually_exclusive = { focus = RAJ_hindutva }
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {
           communism > 0.05
        }
        
        bypass = {
            OR = {
                has_war_with = SOV
                NOT = { country_exists = SOV }
            }
        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}

        completion_reward = {
            try_build_mil_in_core_otherwise_build_in_controlled = yes
            try_build_civ_in_core_otherwise_build_in_controlled = yes
            add_popularity = {
                ideology = communism
                popularity = 0.05
            }

        }
    }

    focus = {
        id = RAJ_appoint_soviet_friendly_government
        icon = GFX_goal_support_communism 
        prerequisite = { focus = RAJ_seek_financial_aid_from_the_ussr }
        x = 2
        y = 1
        relative_position_id = RAJ_seek_financial_aid_from_the_ussr

        cost = 5 

        ai_will_do = {
            factor = 1
            modifier = {
                factor = 0
                has_war_with = SOV
            }
        }

        available = {
            communism > 0.4
            NOT = { has_completed_focus = RAJ_appoint_german_friendly_government }
            if = {
                limit = { SOV = { has_government = communism } }
                NOT = { has_war_with = SOV }
            }
            
        }

        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = yes
        search_filters = { FOCUS_FILTER_POLITICAL }
        completion_reward = {


            add_popularity = {
                popularity = 0.15
                ideology = communism
            }

            add_opinion_modifier = { modifier = ROM_appoint_soviet_friendly_government target = SOV }
            SOV = { add_opinion_modifier = { modifier = ROM_appoint_soviet_friendly_government target = ROOT } }
			
            set_politics = {
                ruling_party = communism
                elections_allowed = no
            }

              add_country_leader_role = {
                  character =  RAJ_subhas_chanda_bose # optional if inside character scope
                  promote_leader = yes
                  country_leader = {
                      ideology = marxism
                  }
              }


                if = {
                    limit = {
                        has_completed_focus = RAJ_netaji   
                    }
                    add_country_leader_trait = netaji
                }
                if = {
                    limit = {
                        has_completed_focus = RAJ_cult_of_personality   
                    }
                    add_country_leader_trait = JUNO_cult_of_personality
                }

                if = {
                    limit = {
                        has_completed_focus = RAJ_authoritarianship   
                    }
                    add_country_leader_trait = authoritarian
                }

                if = {
                    limit = {
                        has_completed_focus = RAJ_guided_democracy   
                    }
                    add_country_leader_trait = under_democratic_guise
                }
               complete_national_focus = RAJ_rally_the_indian_left
        }
    }

    focus = {
        id = RAJ_appoint_german_friendly_government
        icon = GFX_goal_support_fascism
        prerequisite = { focus = RAJ_cult_of_personality }
        x = 0
        y = 1
        relative_position_id = RAJ_cult_of_personality

        cost = 5 

        ai_will_do = {
            factor = 1
            modifier = {
                factor = 0
                has_war_with = GER
            }
        }

        available = {
            fascism > 0.4
            NOT = { has_completed_focus = RAJ_appoint_soviet_friendly_government }
            if = {
                limit = { GER = { has_government = fascism } }
                NOT = { has_war_with = GER }
            }
            
        }

        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = yes
        search_filters = { FOCUS_FILTER_POLITICAL }
        completion_reward = {

            add_popularity = {
                popularity = 0.1
                ideology = fascism
            }
            add_timed_idea = { idea = GRE_four_year_plan_spirit days = 730 }

            add_opinion_modifier = { modifier = ROM_appoint_german_friendly_government target = GER }
            GER = { add_opinion_modifier = { modifier = ROM_appoint_german_friendly_government target = ROOT } }

            set_politics = {
                ruling_party = fascism
                elections_allowed = no
            }
			
          add_country_leader_role = {
              character =  RAJ_subhas_chanda_bose # optional if inside character scope
              promote_leader = yes
              country_leader = {
                  ideology = fascism_ideology
              }
          }

			
                if = {
                    limit = {
                        has_completed_focus = RAJ_netaji   
                    }
                    add_country_leader_trait = netaji
                }

                if = {
                    limit = {
                        has_completed_focus = RAJ_cult_of_personality   
                    }
                    add_country_leader_trait = JUNO_cult_of_personality
                }

                if = {
                    limit = {
                        has_completed_focus = RAJ_authoritarianship   
                    }
                    add_country_leader_trait = authoritarian
                }

                if = {
                    limit = {
                        has_completed_focus = RAJ_guided_democracy   
                    }
                    add_country_leader_trait = under_democratic_guise
                }
        }
    }



    focus = {
        id = RAJ_the_second_gorkha_war
        icon = GFX_focus_generic_attack_nepal
        prerequisite = { focus = RAJ_the_second_duar_war focus = RAJ_bhutanese_protectorate }
        x = 1
        y = 1
        relative_position_id = RAJ_the_second_duar_war
        #mutually_exclusive = { focus = RAJ_guarantee_nepalese_independence }
        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {
		    is_subject = no
			num_of_factories > 15
			has_army_manpower = { size > 49999 }
        }
        
        bypass = {
            NEP = {
                exists = no
            }
        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL}

        completion_reward = {
            NEP = {
                every_core_state = {
                    limit = {
                        controller = {
                            NOT = { original_tag = ROOT }
                            NOT = { is_subject_of = ROOT }
                        }
                        NOT = { 
                            controller = {
                                ROOT = {
                                    has_wargoal_against = {
                                         target = PREV
                                     } 
                                }
                            }

                        }
                    }

                    controller = {
                        ROOT = {
                            create_wargoal = {
                                type = puppet_wargoal_focus
                                target = PREV
                                expire = 365
                            }
                        }
                    }

                }
            }
        }
    }


    focus = {
        id = RAJ_planned_economy
        icon = GFX_focus_SOV_merge_plants
        prerequisite = { focus = RAJ_seek_financial_aid_from_the_ussr }
        x = 0
        y = 1
        relative_position_id = RAJ_seek_financial_aid_from_the_ussr
       #mutually_exclusive = { focus = RAJ_form_ties_with_leftist_parties }
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {
             communism > 0.05
        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}

        completion_reward = {

            add_research_slot = 1
            add_ideas = idea_RAJ_planned_economy
        }
    }



    focus = {
        id = RAJ_high_altitude_training
        icon = GFX_focus_GRE_a_land_of_mountains
        prerequisite = { focus = RAJ_extend_indian_security_zone }
        x = -1
        y = 1
        relative_position_id = RAJ_extend_indian_security_zone
        #mutually_exclusive = { focus = RAJ_hindutva }
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {
            has_tech = tech_mountaineers
            OR = {
                TIB = {
                    any_core_state = {
                        is_controlled_by = ROOT
                    }
                }

                NEP = {
                    any_core_state = {
                        is_controlled_by = ROOT
                    }
                }

                BHU = {
                    any_core_state = {
                        is_controlled_by = ROOT
                    }
                }
            }
        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        completion_reward = {
            division_template = {
                name = "High Altitude Specialists"
                is_locked = no
                priority = 1 # optional 
                regiments = {
                    mountaineers = { x = 0 y = 0 }
                    mountaineers = { x = 0 y = 1 }
                    mountaineers = { x = 0 y = 2 }
                    mountaineers = { x = 0 y = 3 }
                    mountaineers = { x = 1 y = 0 }
                    mountaineers = { x = 1 y = 1 }
                    mountaineers = { x = 1 y = 2 }
                    mountaineers = { x = 1 y = 3 }
                    mountaineers = { x = 2 y = 0 }
                    mountaineers = { x = 2 y = 1 }
                    mountaineers = { x = 2 y = 2 }
                    mountaineers = { x = 2 y = 3 }
                    mountaineers = { x = 3 y = 0 }
                    
                }
                support = {
                    
                }
            }
            custom_effect_tooltip = RAJ_high_altitude_training_tt
            add_ideas = idea_RAJ_high_altitude_training
        }
    }

    focus = {
        id = RAJ_strike_against_china
        icon = GFX_focus_attack_china
        prerequisite = { focus = RAJ_extend_indian_security_zone }
        x = 1
        y = 1
        relative_position_id = RAJ_extend_indian_security_zone
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {
            any_country = {
                is_literally_china = yes
                exists = yes
                NOT = { is_subject_of = ROOT }
            }
		    is_subject = no
			num_of_factories > 35
			has_army_manpower = { size > 199999 }
        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL}
        search_filters = {FOCUS_FILTER_ANNEXATION}

        completion_reward = {
            every_country = {
                limit = {
                    is_literally_china = yes
                }
                ROOT = {
                    create_wargoal = {
                        type = annex_everything
                        target = PREV 
                    }
                }
            }
        }
    }

    focus = {
        id = RAJ_hindu_mahasabha
        icon = GFX_focus_RAJ_hindu_mahasabha
        prerequisite = { focus = RAJ_hindutva focus = RAJ_netaji }
        x = 0
        y = 1
        relative_position_id = RAJ_hindutva
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}
        search_filters = {FOCUS_FILTER_POLITICAL}

        completion_reward = {
            add_dynamic_modifier = { modifier = idea_RAJ_funded_by_princely_states }
            custom_effect_tooltip = generic_skip_one_line_tt
            custom_effect_tooltip = RAJ_hindu_mahasabha_tt
        }
    }

    focus = {
        id = RAJ_akhand_bharat
        icon = GFX_focus_RAJ_akhand_bharat
        prerequisite = { focus = RAJ_hindutva }
        x = -4
        y = 1
        relative_position_id = RAJ_hindutva
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL}

        completion_reward = {
            custom_effect_tooltip = RAJ_akhand_bharat_tt
            unlock_decision_tooltip = {
                decision =  RAJ_form_akhand_bharat
                show_effect_tooltip = yes # default is no
                show_modifiers = yes # default is no
            }
        }
    }

    focus = {
        id = RAJ_sanatani
        icon = GFX_focus_generic_spread_fascism
        prerequisite = { focus = RAJ_hindutva }
        x = -2
        y = 1
        relative_position_id = RAJ_hindutva
        
        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL}

        completion_reward = {
            add_stability = 0.1
            add_popularity = {
                ideology = fascism
                popularity = 0.15
            }
        }
    }

        focus = {
        id = RAJ_hindi_as_a_national_language
        
        icon = GFX_focus_spr_torchbearers_of_tomorrow
        prerequisite = { focus = RAJ_sanatani }
        x = 0
        y = 2
        relative_position_id = RAJ_sanatani
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_MILITARY_CHARACTER}

        completion_reward = {
            add_ideas = idea_RAJ_hindi_as_a_national_language
        }
    }

    focus = {
        id = RAJ_seven_shackles
        icon = GFX_focus_RAJ_seven_shackles
        prerequisite = { focus = RAJ_sanatani }
        x = -2
        y = 0
        relative_position_id = RAJ_hindi_as_a_national_language
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL FOCUS_FILTER_STABILITY FOCUS_FILTER_WAR_SUPPORT}

        completion_reward = {
            add_stability = 0.08
            add_war_support = 0.08          
            add_popularity = {
                ideology = fascism
                popularity = 0.1
            }

            every_controlled_state = {
                limit = {
                    has_resistance = yes
                }
                add_compliance = 30
            }

        }
    }

    focus = {
        id = RAJ_burn_down_the_cellular_jail
    
        icon = GFX_focus_RAJ_burn_down_the_cellular_jail
        prerequisite = { focus = RAJ_seven_shackles }
        x = -1
        y = 1
        relative_position_id = RAJ_seven_shackles

        cost = 6

        ai_will_do = {

        }

        available = {

        }

        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = yes
        search_filters = { FOCUS_FILTER_POLITICAL }
        completion_reward = {
            add_war_support = 0.1
            every_controlled_state = {
                limit = {
                    has_resistance = yes
                }
                add_resistance = -30
            }
        }
    }

    focus = {
        id = RAJ_the_sword_and_the_saffron
        icon = GFX_focus_RAJ_indian_gentlemen_offcers 
        prerequisite = { focus = RAJ_sanatani }
        x = 2
        y = 2
        relative_position_id = RAJ_sanatani
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_ARMY_XP}

        completion_reward = {
            add_ideas = idea_RAJ_hindu_militarism
        }
    }

    focus = {
        id = RAJ_rashtriya_swayamsevak_sangh
        icon = GFX_focus_SWE_revoke_militia_law
        prerequisite = { focus = RAJ_the_sword_and_the_saffron }
        x = 0
        y = 1
        relative_position_id = RAJ_the_sword_and_the_saffron
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {
            has_idea = idea_RAJ_hindu_militarism
        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        completion_reward = {
            swap_ideas = {
                remove_idea = idea_RAJ_hindu_militarism
                add_idea = idea_RAJ_hindu_militarism_2
            }
        }
    }

    focus = {
        id = RAJ_the_hindu_martial_tradition
        icon = GFX_focus_focus_fra_fascist_threat
        prerequisite = { focus = RAJ_hindi_as_a_national_language }
        prerequisite = { focus = RAJ_rashtriya_swayamsevak_sangh }
        x = -2
        y = 1
        relative_position_id = RAJ_rashtriya_swayamsevak_sangh
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {
            has_idea = idea_RAJ_hindu_militarism_2
        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        completion_reward = {
            swap_ideas = {
                remove_idea = idea_RAJ_hindu_militarism_2
                add_idea = idea_RAJ_hindu_militarism_3
            }
        }
    }

    focus = {
        id = RAJ_cultural_reawekening 
        icon = GFX_focus_ITA_liberation_or_death
        prerequisite = { focus = RAJ_seven_shackles }
        prerequisite = { focus = RAJ_hindi_as_a_national_language }
        x = 1
        y = 1
        relative_position_id = RAJ_seven_shackles
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL}

        completion_reward = {
            swap_ideas = {
                remove_idea = idea_RAJ_hindi_as_a_national_language
                add_idea = idea_RAJ_cultural_reawekening
            }

        }
    }

    #NEW ID
    focus = {
        id = RAJ_the_pakistan_movement
        icon = GFX_focus_RAJ_the_pakistan_movement
        prerequisite = { focus = RAJ_two_nation_theory_dlc }
        x = 0
        y = 1
        relative_position_id = RAJ_two_nation_theory_dlc
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        complete_tooltip = {

        }

        search_filters = {FOCUS_FILTER_POLITICAL FOCUS_FILTER_TFV_AUTONOMY}

        completion_reward = {

            add_timed_idea = {
                 idea = idea_RAJ_muslims_demanding_a_homeland
                 days = 270
            }

            add_timed_idea = {
                idea = idea_RAJ_growing_hindu_nationalism
                days = 270
            }



        }
    }

    focus = {
        id = RAJ_cripps_mission_dlc
        icon = GFX_goal_generic_major_alliance
        prerequisite = { focus = RAJ_tea_exports }
        x = 0
        y = 1
        relative_position_id = RAJ_tea_exports
        mutually_exclusive = { focus = RAJ_haripura_session_of_the_indian_national_congress  }
        cost = 5

        ai_will_do = {
            factor = 25
        }

        available = {

        }

        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no


        search_filters = { FOCUS_FILTER_POLITICAL FOCUS_FILTER_TFV_AUTONOMY }

        completion_reward = {
            add_autonomy_score = { 
                value = 100 
                localization = RAJ_cripps_mission_dlc
            }
            if = {
                limit = {
                    has_idea = RAJ_marginalized_muslim_community_very_happy
                }
                swap_ideas = {
                    add_idea = RAJ_marginalized_muslim_community_happy
                    remove_idea = RAJ_marginalized_muslim_community_very_happy
                }
            }
            if = {
                limit = {
                    has_idea = RAJ_marginalized_muslim_community_happy
                }
                swap_ideas = {
                    add_idea = RAJ_marginalized_muslim_community
                    remove_idea = RAJ_marginalized_muslim_community_happy
                }
            }
            if = {
                limit = {
                    has_idea = RAJ_marginalized_muslim_community
                }
                swap_ideas = {
                    add_idea = RAJ_marginalized_muslim_community_angry
                    remove_idea = RAJ_marginalized_muslim_community
                }
            }
            if = {
                limit = {
                    has_idea = RAJ_marginalized_muslim_community_angry
                }
                add_war_support = -0.05
            }


        }
    }

    focus = {
        id = RAJ_haripura_session_of_the_indian_national_congress
        icon = GFX_goal_generic_dangerous_deal
        prerequisite = {  focus  = RAJ_local_resistance_to_land_taxes }
        x = -2
        y = 0
        relative_position_id = RAJ_cripps_mission_dlc
        mutually_exclusive = { focus = RAJ_cripps_mission_dlc }
        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL FOCUS_FILTER_TFV_AUTONOMY}

        completion_reward = {
            add_autonomy_score = { 
                value = 50
                localization = RAJ_haripura_session_of_the_indian_national_congress
            }
        }
    }

    focus = {
        id = RAJ_power_sharing_agreement
        icon = GFX_focus_generic_treaty
        prerequisite = { focus =  RAJ_india_united }
        x = 0
        y = 1
        relative_position_id = RAJ_india_united
        
        cost = 5

        ai_will_do = {
            factor = 1 
        }

        available = {
 
        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL}

        complete_tooltip = {

        }

        completion_reward = {
            add_timed_idea = {
                idea = idea_RAJ_power_sharing_agreement
                days = 1460
            } 
            every_controlled_state = {
                limit = {
                    is_in_array = {
                        array = RAJ.owned_states_at_game_start
                        value = THIS
                    }
                    has_resistance = yes

                }

                add_compliance = -50
                add_resistance = -30
            }
        }
    }

    focus = {
        id = RAJ_a_permanent_muslim_governmental_seat
        icon = GFX_focus_TUR_turanist_ambition
        prerequisite = { focus = RAJ_power_sharing_agreement }
        x = 2
        y = 1
        relative_position_id = RAJ_power_sharing_agreement
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL FOCUS_FILTER_TFV_AUTONOMY}

        complete_tooltip = {

        }

        completion_reward = {
            if = {
                limit = {
                    has_idea = RAJ_marginalized_muslim_community_angry
                }
                swap_ideas = {
                    add_idea = RAJ_marginalized_muslim_community_happy_alt
                    remove_idea = RAJ_marginalized_muslim_community_angry
                }
            }
            else = {
                swap_ideas = {
                    add_idea = RAJ_marginalized_muslim_community_happy_alt
                    remove_idea = RAJ_marginalized_muslim_community
                }
            }
        }
    }

    focus = {
        id = RAJ_cabinet_mission_plan
        icon = GFX_focus_ARG_cut_ties_with_britain
        prerequisite = { focus = RAJ_power_sharing_agreement }
        x = 0
        y = 1
        relative_position_id = RAJ_power_sharing_agreement
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL}

        complete_tooltip = {

        }

        completion_reward = {
            add_ideas = idea_RAJ_guided_by_britain
        }
    }

#    focus = {
#        id = RAJ_post_war_independence
#        #icon = GFX_
#        prerequisite = { focus = RAJ_the_pakistan_movement }
#        x = -2
#        y = 1
#        relative_position_id = RAJ_the_pakistan_movement
#        
#        cost = 6
#
#        ai_will_do = {
#            factor = 1
#        }
#
#        available = {
#
#        }
#        
#        bypass = {
#
#        }
#
#        cancel_if_invalid = yes
#        continue_if_invalid = no
#        available_if_capitulated = no
#
#        complete_tooltip = {
#
#        }
#
#        completion_reward = {
#
#        }
#    }

    focus = {
        id = RAJ_lahore_resolution
        icon = GFX_focus_TUR_loosen_the_laws_on_secularism
        prerequisite = { focus = RAJ_the_pakistan_movement }
        x = 0
        y = 1
        relative_position_id = RAJ_the_pakistan_movement
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_TFV_AUTONOMY}

        complete_tooltip = {

        }

        completion_reward = {
           swap_ideas = {
               remove_idea = RAJ_marginalized_muslim_community_happy
               add_idea = RAJ_marginalized_muslim_community_very_happy
           }
        }
    }

    focus = {
        id = RAJ_united_bengal
        icon = GFX_focus_RAJ_united_bengal
        prerequisite = { focus = RAJ_lahore_resolution }
        x = -1
        y = 2
        relative_position_id = RAJ_lahore_resolution 
        mutually_exclusive = { focus = RAJ_eastern_pakistan }
        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {
           OR = {
                is_subject = no
                BAN = {
                    exists = yes
                }
            }
        }
        
        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL FOCUS_FILTER_TFV_AUTONOMY}

        complete_tooltip = {

        }

        completion_reward = {
            custom_effect_tooltip = RAJ_united_bengal_tt
            add_autonomy_ratio = { 
                value = 0.23
                localization = RAJ_united_bengal
            }
            add_political_power = 250
        }
    }

    focus = {
        id = RAJ_eastern_pakistan
        icon = GFX_focus_RAJ_the_pakistan_movement
        prerequisite = { focus = RAJ_lahore_resolution }
        x =2
        y = 0
        relative_position_id = RAJ_united_bengal
        mutually_exclusive = { focus = RAJ_united_bengal }

        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {
            OR = {
                is_subject = no
                PAK = {
                    exists = yes
                }
            }
        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL FOCUS_FILTER_TFV_AUTONOMY}

        complete_tooltip = {

        }

        completion_reward = {
            custom_effect_tooltip = RAJ_eastern_pakistan_tt
            add_autonomy_ratio = { 
                value = 0.5 
                localization = RAJ_eastern_pakistan
            }


        }
    }

    focus = {
        id = RAJ_inclusive_nationalism
        icon = GFX_goal_tfv_saf_anti_colonialist_crusade
        prerequisite = { focus = RAJ_cabinet_mission_plan }
        prerequisite = { focus = RAJ_a_permanent_muslim_governmental_seat }
        x = 0
        y = 1
        relative_position_id = RAJ_cabinet_mission_plan
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_ARMY_XP}

        complete_tooltip = {

        }

        completion_reward = {
            add_doctrine_cost_reduction = {
                cost_reduction = 0.25
                uses = 2
                category = land_doctrine
                name = RAJ_inclusive_nationalism
            }

            add_ideas = idea_RAJ_inclusive_nationalism

        }
    }

    focus = {
        id = RAJ_partition_preparation
        icon = GFX_goal_generic_position_armies
        prerequisite = { focus = RAJ_united_bengal focus = RAJ_eastern_pakistan }
        x = -2
        y = 1
        relative_position_id = RAJ_eastern_pakistan
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {
            is_subject = yes
        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL}
        search_filters = {FOCUS_FILTER_RESEARCH}

        complete_tooltip = {

        }

        completion_reward = {
            custom_effect_tooltip = RAJ_partition_preparation_tt
            effect_tooltip = {
                add_timed_idea = {
                    idea = idea_RAJ_partition_chaos_less_bad
                    days = 80
                }
            }
            custom_effect_tooltip = newline_tt
            custom_effect_tooltip = RAJ_partition_preparation_tt_2
            effect_tooltip = {
                add_timed_idea = {
                    idea = idea_RAJ_partition_chaos_bad
                    days = 80
                }
            }
            add_tech_bonus = {
                name = RAJ_partition_preparation
                bonus = 1
                uses = 1
                category = military_police_tech # optional 
                # technology  = technology_id # optional
            }
        }
    }

    focus = {
        id = RAJ_hedgemony_of_the_subcontinent
        icon = GFX_focus_spa_the_spanish_miracle
        x = 0
        y = 1
        relative_position_id = RAJ_eastern_pakistan
        prerequisite = { focus = RAJ_eastern_pakistan  focus = RAJ_united_bengal }
        cost = 6
        available = {
            if = {
                limit = {
                    PAK = {
                        exists = yes
                    }
                }
                OR = {
                    check_variable = { RAJ.num_of_factories >  pak_factories tooltip = pak_factories_tt }
                    check_variable = { RAJ.num_researched_technologies > pak_researched_techs tooltip = pak_tech_tt }
                }
            }
            else = {
                custom_trigger_tooltip = {
                    tooltip = RAJ_hedgemony_of_the_subcontinent_tt
                    all_of_scopes = {
                      array = RAJ.owned_states_at_game_start
                      is_owned_by = ROOT 
                    }
                }
            }
        }

        ai_will_do = {
            factor = 20
        }

        bypass = {


        }

        search_filters = {FOCUS_FILTER_ARMY_XP FOCUS_FILTER_INDUSTRY FOCUS_FILTER_RESEARCH}

        completion_reward = {
            add_ideas = idea_RAJ_hedgemony_of_the_subcontinent
        }
    }

    focus = {
        id = RAJ_a_secular_state
        icon = GFX_focus_generic_court
        prerequisite = { focus =  RAJ_inclusive_nationalism }
        x = 0
        y = 1
        relative_position_id = RAJ_inclusive_nationalism
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        complete_tooltip = {

        }

        search_filters = {FOCUS_FILTER_POLITICAL}

        completion_reward = {
            add_stability = -0.15
            add_political_power = 150
            set_country_flag = RAJ_allow_release_states
        }
    }


    focus = {
        id = RAJ_indian_independence_act
        icon = GFX_focus_generic_self_management
        prerequisite = { focus = RAJ_haripura_session_of_the_indian_national_congress focus = RAJ_cripps_mission_dlc }
        x = 1
        y = 1
        relative_position_id = RAJ_haripura_session_of_the_indian_national_congress
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {
            is_subject = no
        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL}

        complete_tooltip = {

        }

        completion_reward = {
            custom_effect_tooltip = idea_RAJ_independence_movement_tt
            add_to_variable = { RAJ_autonomy_gain_independence_movement = 0.05 tooltip = autonomy_gain_tt }

            if  = {
                limit = { has_idea = RAJ_princely_states }
                remove_ideas = RAJ_princely_states
            }
        }
    }

    focus = {
        id = RAJ_tryst_with_destiny
        icon = {
            trigger = {
                tag = BAN
            }
            value = GFX_focus_RAJ_tryst_with_destiny_BAN
        }
        icon = {
            trigger = {
                tag = PAK
            }
            value = GFX_focus_RAJ_tryst_with_destiny_PAK
        }
        icon = {
            trigger = {
                NOT = {
                    tag = PAK
                    tag = BAN
                }
            }
            value = GFX_focus_RAJ_tryst_with_destiny
        } 
        prerequisite = { focus = RAJ_united_bengal focus = RAJ_eastern_pakistan focus = RAJ_a_secular_state }
        x = 2
        y = 1
        relative_position_id = RAJ_hedgemony_of_the_subcontinent
        

        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {
            is_subject = no
           

            if = {
                limit = {
                    is_ai = yes
                }
                date > 1947.8.15
               OR = {
                    is_historical_focus_on = yes
                    has_game_rule = {
                        rule = RAJ_ai_behavior
                        option = HISTORICAL
                    }
                }
            }
        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL}

        complete_tooltip = {

        }

        completion_reward = {
            add_popularity = {
                ideology = democratic
                popularity = 0.15
            }

            add_ideas = idea_RAJ_tryst_with_destiny
        }
    }

    focus = {
        id = RAJ_i_am_death
        icon = GFX_focus_RAJ_i_am_death
        prerequisite = { focus = RAJ_tryst_with_destiny }
        x = -10
        y = 1
        relative_position_id = RAJ_tryst_with_destiny
        mutually_exclusive = { focus = RAJ_sideline_the_conflict focus = RAJ_pledge_for_the_allies }
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        allow_branch = {
            has_country_flag = gandhi_survives_assasination_attempt
        }
        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        complete_tooltip = {

        }

        search_filters = {FOCUS_FILTER_POLITICAL_CHARACTER}
        search_filters = {FOCUS_FILTER_POLITICAL}

        completion_reward = {
            if = {
                limit = {
                    NOT = { 
                        has_country_leader = {
                             character = RAJ_mahatma_mohandas_gandhi 
                         } 
                    }
                }

                RAJ_mahatma_mohandas_gandhi = {
                    add_country_leader_role = {
                        promote_leader = yes
                        country_leader = {
                            ideology = liberalism
                            expire = "1965.1.1"
                            traits = { death } 
                        }
                    }
                }
            }
            else = {
                add_country_leader_trait = death
            }

            set_country_leader_portrait = {
                portrait = GFX_portrait_RAJ_mohandas_gandi_nuclear
            }
            
            set_politics = {
                ruling_party = democratic
                elections_allowed = no
                election_frequency = 48
            }

            set_rule = { can_join_factions = yes }
            set_rule = { CAN_DECLARE_WAR_ON_SAME_IDEOLOGY = yes }
            set_rule = { can_only_justify_war_on_threat_country = no }
            set_rule = { can_join_opposite_factions = yes }
        }
    }

    focus = {
        id = RAJ_sideline_the_conflict 
        icon = GFX_goal_generic_neutrality_focus
        prerequisite = { focus = RAJ_tryst_with_destiny }
        x = -2
        y = 1
        relative_position_id = RAJ_tryst_with_destiny
        mutually_exclusive = { focus = RAJ_i_am_death focus = RAJ_pledge_for_the_allies }
        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL}
        search_filters = {FOCUS_FILTER_INDUSTRY}

        complete_tooltip = {

        }

        completion_reward = {
            set_rule = { CAN_DECLARE_WAR_ON_SAME_IDEOLOGY = yes }
            set_rule = { can_only_justify_war_on_threat_country = no }
            set_rule = { can_join_opposite_factions = yes }

            every_enemy_country = {
                country_event = { id = GOE_RAJ.27 hours = 2 }
            }

            if = {
                limit = {
                    is_in_faction = yes
                }

                leave_faction = yes
            }
            add_timed_idea = {
                idea = neutrality_idea
                days = 90
            }

            add_timed_idea = {
                 idea = idea_RAJ_booming_industry
                 days = 280
             }
        }
    }

    focus = {
        id = RAJ_kingmaker
        icon = GFX_focus_RAJ_kingmaker
        prerequisite = { focus = RAJ_sideline_the_conflict }
        x = -1
        y = 1
        relative_position_id = RAJ_sideline_the_conflict
        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {
            is_in_faction = no
            has_war = no
        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        complete_tooltip = {

        }

        completion_reward = {
            add_ideas = idea_RAJ_kingmaker
        }
    }

#    focus = {
#        id = unhide_gandhi_death
#       # icon = GFX_goal_generic_neutrality_focus
#        prerequisite = {  }
#        x = 7
#        y = -1
#        relative_position_id = RAJ_sideline_the_conflict
#        cost = 0
#
#        ai_will_do = {
#            factor = 1
#        }
#
#        available = {
#        }
#        
#        bypass = {
#
#        }
#
#        cancel_if_invalid = yes
#        continue_if_invalid = no
#        available_if_capitulated = no
#
#        search_filters = {FOCUS_FILTER_POLITICAL_CHARACTER}
#
#        complete_tooltip = {
#
#        }
#
#        completion_reward = {
#            set_country_flag = gandhi_survives_assasination_attempt
#            mark_focus_tree_layout_dirty = yes
#        }
#    }
#
    focus = {
        id = RAJ_pledge_for_the_allies
        icon = GFX_focus_eng_the_sun_never_sets
        prerequisite = { focus =  RAJ_tryst_with_destiny }
        x = 4
        y = 0
        relative_position_id = RAJ_sideline_the_conflict
        mutually_exclusive = { focus = RAJ_i_am_death focus = RAJ_sideline_the_conflict }
        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {
        }

        search_filters = {FOCUS_FILTER_POLITICAL}

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        complete_tooltip = {

        }

        completion_reward = {
            if = {
                limit = {
                    ENG = {
                        is_faction_leader = yes
                        has_government = democratic
                    }
                }

                ENG = {
                    country_event = { id = generic.2 hours = 2 }
                }
            }
            else_if = {
                limit = {
                    USA = {
                        is_faction_leader = yes
                        has_government = democratic
                    }
                }

                USA = {
                    country_event = { id = generic.2 hours = 2 }
                }
            }

            else_if = {
                limit = {
                    FRA = {
                        is_faction_leader = yes
                        has_government = democratic
                    }
                }

                FRA = {
                    country_event = { id = generic.2 hours = 2 }
                }
            }
            else_if = {
                limit = {
                    any_other_country = {
                        is_faction_leader = yes
                        has_government = democratic
                    }
                }
                random_other_country = {
                    limit = {
                        is_faction_leader = yes
                        has_government = democratic
                    }
                    country_event = { id = generic.2 hours = 2 }   
                }
            }
            else = {
                create_faction = "Indian-Prosperity-Sphere"
            }
            set_rule = { 
                can_create_factions  = yes
            }
        }
    }

    focus = {
        id = RAJ_destroyer_of_worlds
        icon = GFX_focus_wonderweapons
        prerequisite = { focus = RAJ_i_am_death }
        x = 0
        y = 2
        relative_position_id = RAJ_i_am_death
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_RESEARCH}
        search_filters = {FOCUS_FILTER_MILITARY_CHARACTER}

        complete_tooltip = {

        }

        completion_reward = {
            add_tech_bonus = {
                bonus = 1
                uses = 1
                technology  = atomic_research # optional
            }

           add_breakthrough_points = {
                specialization = specialization_nuclear 
                value = 1
            }

            add_country_leader_trait = destroyer_of_worlds
        }
    }

#    focus = {
#        id = RAJ_ban_untouchability_once_and_for_all
#        #icon = GFX_
#        prerequisite = { focus = RAJ_sideline_the_conflict focus = RAJ_pledge_for_the_allies }
#        x = 1
#        y = 1
#        relative_position_id = RAJ_sideline_the_conflict
#        
#        cost = 6
#
#        ai_will_do = {
#            factor = 1
#        }
#
#        available = {
#
#        }
#        
#        bypass = {
#
#        }
#
#        cancel_if_invalid = yes
#        continue_if_invalid = no
#        available_if_capitulated = no
#
#        complete_tooltip = {
#
#        }
#
#        completion_reward = {
#            add_stability = 0.1
#            add_popularity = {
#                ideology = democratic
#                popularity = 0.1
#            }
#        }
#    }

    focus = {
        id = RAJ_preamble_to_the_constitution_of_india
        icon = GFX_focus_generic_the_giant_wakes
        prerequisite = { focus = RAJ_sideline_the_conflict focus = RAJ_pledge_for_the_allies focus = RAJ_i_am_death }
        x = 2
        y = 1 
        relative_position_id = RAJ_sideline_the_conflict
        
        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL}

        complete_tooltip = {

        }

        completion_reward = {
            add_stability = 0.1
            add_popularity = {
                ideology = democratic
                popularity = 0.15
            }
        }
    }

    focus = {
        id = RAJ_uranium_tipped_bullets
        icon = GFX_focus_RAJ_uranium_tipped_bullets
        prerequisite = { focus = RAJ_destroyer_of_worlds }
        x = -2
        y = 1
        relative_position_id = RAJ_destroyer_of_worlds 
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {
 
        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_RESEARCH}

        complete_tooltip = {
            custom_effect_tooltip = RAJ_uranium_tipped_bullets_tt
        }

        completion_reward = {
            custom_effect_tooltip = RAJ_uranium_tipped_bullets_tt
            hidden_effect = {
                set_technology = {
                    uranium_tipped_bullets = 1
                    popup = no
                }
            }
        }
    }

    focus = {
        id = RAJ_rolling_nuke_barrages
        icon = GFX_focus_GER_wunderwaffe
        prerequisite = { focus = RAJ_destroyer_of_worlds }
        x = 2
        y = 1
        relative_position_id = RAJ_destroyer_of_worlds
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        complete_tooltip = {

        }

        completion_reward = {
            add_ideas = idea_RAJ_rolling_nuke_barrages
        }
    }

    focus = {
        id = RAJ_india_indivisible
        icon = GFX_focus_RAJ_all_india_forward_bloc
        prerequisite = { focus = RAJ_preamble_to_the_constitution_of_india }
        x = 0
        y = 1
        relative_position_id = RAJ_preamble_to_the_constitution_of_india
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {
		     is_subject = no
			 num_of_factories > 60
			 surrender_progress < 0.1
        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        complete_tooltip = {

        }

        completion_reward = {
            custom_effect_tooltip = RAJ_india_indivisible_tt
        }
    }

    focus = {
        id = RAJ_defend_burma
            icon = GFX_goal_generic_defence
        prerequisite = { focus = RAJ_india_indivisible }
        x = 3
        y = 1
        relative_position_id = RAJ_india_indivisible
        
        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {
            BRM = {
                exists = yes
                is_in_faction_with = ROOT
                controls_province = 1330
            }
            controls_province = 4245
        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}

        complete_tooltip = {

        }

        completion_reward = {
            build_railway = {
                level = 2
                start_province = 4245
                target_province = 1330 
            }
            BRM = {
                add_manpower = 21000
            }
        }
    }


    focus = {
        id = RAJ_contamination_cleanup_crew
        icon = GFX_focus_RAJ_contamination_cleanup_crew
        prerequisite = { focus = RAJ_uranium_tipped_bullets }
        x = 0
        y = 1
        relative_position_id = RAJ_uranium_tipped_bullets 
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        complete_tooltip = {

        }

        completion_reward = {
            add_ideas = idea_RAJ_contamination_cleanup_crew
        }
    }

    focus = {
        id = RAJ_jaguar
        icon = GFX_focus_generic_jet_planes
        prerequisite = { focus = RAJ_rolling_nuke_barrages }
        x = 0
        y = 1
        relative_position_id = RAJ_rolling_nuke_barrages
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}
        search_filters = {FOCUS_FILTER_RESEARCH}

        complete_tooltip = {

        }

        completion_reward = {
            if = {
                limit = {
                    controls_state = 439
                    NOT = {
                        439 = {
                            air_facility > 0
                        }
                    }
                }
                439 = {
                    add_building_construction = {
                        type = air_facility
                        level = 1
                        instant_build = yes
                        province = 2086 
                    }
                }
            }

            add_breakthrough_points = {
                specialization = specialization_air 
                value = 1
            }

            add_tech_bonus = {
                bonus = 1
                uses = 2
                category = heavy_air # optional 
                # technology  = technology_id # optional
            }
        }
    }

    focus = {
        id = RAJ_an_economy_unbound
        icon = GFX_focus_SWE_landsverk
        prerequisite = { focus = RAJ_india_indivisible }
        x = -3
        y = 1
        relative_position_id = RAJ_india_indivisible
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}

        complete_tooltip = {

        }

        completion_reward = {
            add_timed_idea = {
                 idea = idea_RAJ_an_economy_unbound
                 days = 260
             }
        }
    }

    focus = {
        id = RAJ_annex_goa
        icon = GFX_focus_generic_attack_portugal
        prerequisite = { focus = RAJ_india_indivisible }
        x = 2
        y = 0
        relative_position_id = RAJ_an_economy_unbound 
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_ANNEXATION}

        complete_tooltip = {

        }

        available = {
            NOT = {
                321 = {
                    is_owned_by = RAJ
                }
            }
        }

        completion_reward = {
            321 = {
                owner = {
                    country_event = { id = GOE_RAJ_goa.1 days = 1 }
                }
            }
        }
    }

    focus = {
        id = RAJ_suppress_paramilitary_organizations
        icon = GFX_focus_PAR_neuter_the_guion_rojo
        prerequisite = { focus = RAJ_india_indivisible }
        x = 2
        y = 0
        relative_position_id = RAJ_annex_goa
        
        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_STABILITY}

        complete_tooltip = {

        }

        completion_reward = {
            remove_ideas = { idea_RAJ_remaining_paramilitary_organizations }
        }
    }

    focus = {
        id = RAJ_bathe_in_hellfire
        icon = GFX_focus_RAJ_bathe_in_hellfire
        prerequisite = { focus = RAJ_contamination_cleanup_crew  }
        prerequisite = { focus = RAJ_jaguar }
        x = 2
        y = 1
        relative_position_id = RAJ_contamination_cleanup_crew
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        complete_tooltip = {

        }

        completion_reward = {
            custom_effect_tooltip = RAJ_bathe_in_hellfire_desc_tt
        }
    }

    focus = {
        id = RAJ_a_tiger_unchained
        icon = GFX_focus_RAJ_a_tiger_unchained
        prerequisite = { focus = RAJ_annex_goa }
        x = 0
        y = 1
        relative_position_id = RAJ_annex_goa 
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_ARMY_XP}

        complete_tooltip = {

        }

        completion_reward = {
            add_doctrine_cost_reduction = {
                cost_reduction = 0.3
                uses = 2
                category = special_forces_doctrine
                name = RAJ_a_tiger_unchained
            }

            add_ideas = idea_RAJ_a_tiger_unchained
        }
    }

    focus = {
        id = RAJ_import_substitution_industrialisation
        icon = GFX_goal_generic_construction
        prerequisite = { focus = RAJ_an_economy_unbound }
        x = 0
        y = 1
        relative_position_id = RAJ_an_economy_unbound
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}

        completion_reward = {
            try_build_civ_in_core_otherwise_build_in_controlled_2_civs = yes
            try_build_mil_in_core_otherwise_build_in_controlled = yes
        }
    }

    focus = {
        id = RAJ_fight_malnutrition
        icon = GFX_focus_generic_field_hostpital
        prerequisite = { focus = RAJ_import_substitution_industrialisation }
        x = 0
        y = 1
        relative_position_id = RAJ_import_substitution_industrialisation 
        
        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_RESEARCH}
        search_filters = {FOCUS_FILTER_STABILITY}

        complete_tooltip = {

        }

        completion_reward = {
            add_tech_bonus = {
                name = RAJ_fight_malnutrition
                bonus = 0.5
                uses = 2
                category = support_tech # optional 
                # technology  = technology_id # optional
            }

            add_tech_bonus = {
                bonus = 0.5
                uses = 1
                category = motorized_equipment # optional 
                # technology  = technology_id # optional
            }

            add_stability = 0.03
            custom_effect_tooltip = RAJ_famine_impact_reduction
            
            add_to_variable = { RAJ_famine_shield = 20 tooltip = RAJ_famine_shield_tt  }
            calculate_famine_shield_and_risk = yes
        }
    }

      focus = {
        id = RAJ_mixed_economy
        icon = GFX_focus_generic_resource_extraction
        prerequisite = { focus = RAJ_import_substitution_industrialisation }
        x = 2
        y = 0
        relative_position_id = RAJ_fight_malnutrition
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}

        complete_tooltip = {

        }

        completion_reward = {
            custom_effect_tooltip = RAJ_mixed_economy_tt
            every_owned_state = {
                limit = {
                    has_resources_amount = { resource = steel amount > 6 }
                    is_controlled_by = ROOT

                    ROOT = { #To fix tooltip
                        OR = {
                            has_tech = excavation1
                            has_tech = excavation2
                            has_tech = excavation3
                            has_tech = excavation4
                            has_tech = excavation5
                        }
                    }
                }

                if = {
                    limit = { ROOT = { has_tech = excavation1 } } 

                    add_resource = { type = steel amount = 3 }
                }

                if = {
                    limit = { ROOT = { has_tech = excavation2 } } 
                    add_resource = { type = steel amount = 3 }

                }
                if = {
                    limit = { ROOT = { has_tech = excavation3 } } 

                    add_resource = { type = steel amount = 3 }
                }
                if = {
                    limit = { ROOT = { has_tech = excavation4 } } 

                      add_resource = { type = steel amount = 3 }
                }
                if = {
                    limit = { ROOT = { has_tech = excavation5 } } 
                      add_resource = { type = steel amount = 3 }
                }
            }

            every_owned_state = {
                limit = {
                    has_resources_amount = { resource = oil amount > 6 }
                    is_controlled_by = ROOT
                    ROOT = { #To fix tooltip
                        OR = {
                            has_tech = excavation1
                            has_tech = excavation2
                            has_tech = excavation3
                            has_tech = excavation4
                            has_tech = excavation5
                        }
                    }
                }

                if = {
                    limit = { ROOT = { has_tech = excavation1 } } 

                    add_resource = { type = oil amount = 3 }
                }

                if = {
                    limit = { ROOT = { has_tech = excavation2 } } 
                    add_resource = { type = oil amount = 3 }

                }
                if = {
                    limit = { ROOT = { has_tech = excavation3 } } 

                    add_resource = { type = oil amount = 3 }
                }
                if = {
                    limit = { ROOT = { has_tech = excavation4 } } 

                      add_resource = { type = oil amount = 3 }
                }
                if = {
                    limit = { ROOT = { has_tech = excavation5 } } 
                      add_resource = { type = oil amount = 3 }
                }
            }

            every_owned_state = {
                limit = {
                    has_resources_amount = { resource = chromium amount > 6 }
                    is_controlled_by = ROOT
                    ROOT = { #To fix tooltip
                        OR = {
                            has_tech = excavation1
                            has_tech = excavation2
                            has_tech = excavation3
                            has_tech = excavation4
                            has_tech = excavation5
                        }
                    }
                }

                if = {
                    limit = { ROOT = { has_tech = excavation1 } } 

                    add_resource = { type = chromium amount = 3 }
                }

                if = {
                    limit = { ROOT = { has_tech = excavation2 } } 
                    add_resource = { type = chromium amount = 3 }

                }
                if = {
                    limit = { ROOT = { has_tech = excavation3 } } 

                    add_resource = { type = chromium amount = 3 }
                }
                if = {
                    limit = { ROOT = { has_tech = excavation4 } } 

                      add_resource = { type = chromium amount = 3 }
                }
                if = {
                    limit = { ROOT = { has_tech = excavation5 } } 
                      add_resource = { type = chromium amount = 3 }
                }
            }

            every_owned_state = {
                limit = {
                    has_resources_amount = { resource = rubber amount > 6 }
                    is_controlled_by = ROOT
                    ROOT = { #To fix tooltip
                        OR = {
                            has_tech = excavation1
                            has_tech = excavation2
                            has_tech = excavation3
                            has_tech = excavation4
                            has_tech = excavation5
                        }
                    }
                }

                if = {
                    limit = { ROOT = { has_tech = excavation1 } } 

                    add_resource = { type = rubber amount = 3 }
                }

                if = {
                    limit = { ROOT = { has_tech = excavation2 } } 
                    add_resource = { type = rubber amount = 3 }

                }
                if = {
                    limit = { ROOT = { has_tech = excavation3 } } 

                    add_resource = { type = rubber amount = 3 }
                }
                if = {
                    limit = { ROOT = { has_tech = excavation4 } } 

                      add_resource = { type = rubber amount = 3 }
                }
                if = {
                    limit = { ROOT = { has_tech = excavation5 } } 
                      add_resource = { type = rubber amount = 3 }
                }
            }

            every_owned_state = {
                limit = {
                    has_resources_amount = { resource = tungsten amount > 6 }
                    is_controlled_by = ROOT
                    ROOT = { #To fix tooltip
                        OR = {
                            has_tech = excavation1
                            has_tech = excavation2
                            has_tech = excavation3
                            has_tech = excavation4
                            has_tech = excavation5
                        }
                    }
                }

                if = {
                    limit = { ROOT = { has_tech = excavation1 } } 

                    add_resource = { type = tungsten amount = 3 }
                }

                if = {
                    limit = { ROOT = { has_tech = excavation2 } } 
                    add_resource = { type = tungsten amount = 3 }

                }
                if = {
                    limit = { ROOT = { has_tech = excavation3 } } 

                    add_resource = { type = tungsten amount = 3 }
                }
                if = {
                    limit = { ROOT = { has_tech = excavation4 } } 

                      add_resource = { type = tungsten amount = 3 }
                }
                if = {
                    limit = { ROOT = { has_tech = excavation5 } } 
                      add_resource = { type = tungsten amount = 3 }
                }
            }

            #
            every_owned_state = {
                limit = {
                    has_resources_amount = { resource = aluminium amount > 6 }
                    is_controlled_by = ROOT
                    ROOT = { #To fix tooltip
                        OR = {
                            has_tech = excavation1
                            has_tech = excavation2
                            has_tech = excavation3
                            has_tech = excavation4
                            has_tech = excavation5
                        }
                    }
                }

                if = {
                    limit = { ROOT = { has_tech = excavation1 } } 

                    add_resource = { type = aluminium amount = 3 }
                }

                if = {
                    limit = { ROOT = { has_tech = excavation2 } } 
                    add_resource = { type = aluminium amount = 3 }

                }
                if = {
                    limit = { ROOT = { has_tech = excavation3 } } 

                    add_resource = { type = aluminium amount = 3 }
                }
                if = {
                    limit = { ROOT = { has_tech = excavation4 } } 

                      add_resource = { type = aluminium amount = 3 }
                }
                if = {
                    limit = { ROOT = { has_tech = excavation5 } } 
                      add_resource = { type = aluminium amount = 3 }
                }
            }
        }
    }

    focus = {
        id = RAJ_land_reforms
        icon = GFX_focus_generic_land_reclamation
        prerequisite = { focus = RAJ_import_substitution_industrialisation }
        x = 2
        y = 0
        relative_position_id = RAJ_mixed_economy
        
        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}

        complete_tooltip = {

        }

        completion_reward = {
            random_core_state = {
                limit = {
                    is_controlled_by = ROOT
                }
                add_extra_state_shared_building_slots = 1   
            }

            random_core_state = {
                limit = {
                    is_controlled_by = ROOT
                }
                add_extra_state_shared_building_slots = 1 
            }
            random_core_state = {
                limit = {
                    is_controlled_by = ROOT
                }
                add_extra_state_shared_building_slots = 1   
            }

        }
    }

    focus = {
        id = RAJ_education_efforts
        icon = GFX_focus_research
        prerequisite = { focus = RAJ_fight_malnutrition }
        x = 0
        y = 1
        relative_position_id = RAJ_fight_malnutrition
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_RESEARCH}

        complete_tooltip = {

        }

        completion_reward = {
            add_research_slot = 1
        }
    }

    focus = {
        id = RAJ_to_shake_the_world
        icon = GFX_focus_RAJ_to_shake_the_world
        prerequisite = { focus =  RAJ_mixed_economy focus =  RAJ_land_reforms  }
        prerequisite = { focus =  RAJ_education_efforts }
        x = 0
        y = 2
        relative_position_id = RAJ_mixed_economy
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {
            OR = {
                surrender_progress > 0.15
                AND = {
                    has_war_support > 0.59
                    num_of_factories > 60
                }
                has_idea = tot_economic_mobilisation
            }
        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}



        completion_reward = {
           add_research_slot = 1
           try_build_civ_in_core_otherwise_build_in_controlled_2_civs = yes
           try_build_civ_in_core_otherwise_build_in_controlled_2_civs = yes
           try_build_mil_in_core_otherwise_build_in_controlled_2_mil = yes
           try_build_mil_in_core_otherwise_build_in_controlled_2_mil = yes
        }
    }

    #############
    ##DOCTRINE###
    #############
    

    focus = {
        id = RAJ_keep_british_generals
        icon = GFX_focus_RAJ_british_investors
        x = -4
        y = 0
        relative_position_id = RAJ_indianize_the_army
        mutually_exclusive = { focus = RAJ_indianize_the_army }

        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {
            is_in_faction_with = ENG
        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_MILITARY_CHARACTER}

        completion_reward = {
            every_army_leader = {
                limit = {
                    has_trait = loyalty_to_britain
                }
                remove_trait = {
                    trait = loyalty_to_britain
                }
            }

            custom_effect_tooltip = generic_skip_one_line_tt

            every_army_leader = {
                limit = {
                    has_trait = loyalty_to_pakistan
                }
                remove_trait = {
                    trait = loyalty_to_pakistan
                }
            }

            custom_effect_tooltip = RAJ_keep_british_generals_tt
        }
    }

    focus = {
        id = RAJ_defense_of_india_act
        icon = GFX_goal_panzerwaffe
        prerequisite = { focus = RAJ_indianize_the_army focus = RAJ_keep_british_generals }
        x = -2
        y = 1
        relative_position_id = RAJ_indianize_the_army
       
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {
            has_war_support > 0.5
            NOT = { has_idea = capital_investment_model }
        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}

        completion_reward = {
			set_rule = { can_send_volunteers = yes can_create_factions = yes }
            if = {
                limit = {
                    NOT = { has_idea = war_economy }
                }
                add_ideas = war_economy
            }

            custom_effect_tooltip = generic_skip_one_line_tt

            every_owned_state = {
                limit = {
                    has_resistance = yes
                }
                add_resistance = -10
            }
        }
    }

    focus = {
        id = RAJ_learn_from_the_crown
        icon = GFX_focus_chi_british_cooperation
        prerequisite = { focus = RAJ_keep_british_generals }

        x = 0
        y = 1
        relative_position_id = RAJ_keep_british_generals

        cost = 5

        available = {
            is_in_faction_with = ENG
        }

        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_ARMY_XP}

        completion_reward = {
            add_doctrine_cost_reduction = {
                name = RAJ_learn_from_the_crown
                cost_reduction = 0.75
                uses = 1
                category = land_doctrine
            }
        }
    }

    focus = {
        id = RAJ_join_the_shadow_scheme
        icon = GFX_goal_generic_construct_mil_factory
        prerequisite = { focus = RAJ_learn_from_the_crown }

        x = -2
        y = 1
        relative_position_id = RAJ_learn_from_the_crown

        cost = 6

        available = {
            ENG = {
                has_completed_focus = shadow_scheme_focus
            }
            is_in_faction_with = ENG
        }

        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}

        completion_reward = {
            random_core_state = {
                add_extra_state_shared_building_slots = 1
                add_building_construction = {
                    type = arms_factory
                    level = 1
                    instant_build = yes
                }
            }
            random_core_state = {
                add_extra_state_shared_building_slots = 1
                add_building_construction = {
                    type = arms_factory
                    level = 1
                    instant_build = yes
                }
            }
            random_core_state = {
                add_extra_state_shared_building_slots = 1
                add_building_construction = {
                    type = arms_factory
                    level = 1
                    instant_build = yes
                }
            }
        }
    }

    focus = {
        id = RAJ_colonial_cadet_exchange
        icon = GFX_focus_generic_fascist_troops
        prerequisite = { focus = RAJ_learn_from_the_crown }

        x = 0
        y = 1
        relative_position_id = RAJ_learn_from_the_crown

        cost = 6

        available = {
            has_manpower > 100000
            is_in_faction_with = ENG
        }

        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        completion_reward = {
            ENG = {
                country_event = { id = GOE_RAJ_generals.1 days = 1}
            }
            custom_effect_tooltip = if_they_accept_tt
            effect_tooltip = {
                add_manpower = -100000
                add_timed_idea = {
                     idea = idea_RAJ_soldiers_training_in_britain
                     days = 365
                }
            }
            custom_effect_tooltip = RAJ_colonial_cadet_exchange_tt
            effect_tooltip = {
                RAJ = {
                    division_template = {
                        name = "Royal Indian Infantry"
                        is_locked = yes
                        support={
                            artillery={ x=0 y=0 }
                            recon={ x=0 y=1 }
                        }
                        regiments={
                            infantry={ x=0 y=0 }
                            infantry={ x=0 y=1 }
                            infantry={ x=0 y=2 }
                            infantry={ x=1 y=0 }
                            infantry={ x=1 y=1 }
                            infantry={ x=1 y=2 }
                            infantry={ x=2 y=0 }
                            infantry={ x=2 y=1 }
                            infantry={ x=2 y=2 }
                        }
                    }

                    random_core_state = {
                        prioritize = { 439 }
                        create_unit = {
                            division = "name = \"Royal Indian Infantry\" division_template = \"Royal Indian Infantry\" start_experience_factor = 0.8 start_equipment_factor = 0.8.0 start_manpower_factor = 1.0"
                            owner = RAJ
                            allow_spawning_on_enemy_provs = no 
                            count = 10
                        }
                    }
                }
            }
        }
    }

    focus = {
        id = RAJ_learn_from_the_secret_intelligence_service
        icon = GFX_focus_generic_secret_service_agency
        prerequisite = { focus = RAJ_colonial_cadet_exchange }

        x = -2
        y = 1
        relative_position_id = RAJ_colonial_cadet_exchange

        cost = 5

        allow_branch = {
            has_dlc = "La Resistance"
        }

        bypass = {

        }

        available = {
            is_in_faction_with = ENG
        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        completion_reward = {
            if = {
                limit = {
                    NOT = { has_intelligence_agency = yes }
                }
                create_intelligence_agency = yes
            }
            add_ideas = { idea_RAJ_help_from_the_secret_intelligence_agency }
        }
    }

    focus = {
        id = RAJ_purchase_british_supply_equipment
        icon = GFX_focus_generic_british_trade
        prerequisite = { focus = RAJ_colonial_cadet_exchange }

        x = 0
        y = 1
        relative_position_id = RAJ_colonial_cadet_exchange

        cost = 6

        available = {
            is_in_faction_with = ENG
        }

        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INTERNATIONAL_TRADE}

        completion_reward = {
            ENG = {
                country_event = { id = GOE_RAJ_generals.7 days = 1 }
            }
            custom_effect_tooltip = if_they_accept_tt
            effect_tooltip = {
                RAJ = {
                    add_equipment_to_stockpile = { 
                        type = motorized_equipment_1
                        amount = 1600
                        producer = ENG
                    }
                    add_equipment_to_stockpile = { 
                        type = train_equipment
                        amount = 10
                        producer = ENG
                    }
                    add_equipment_to_stockpile = { 
                        type = support_equipment
                        amount = 500
                        producer = ENG
                    }
                }
            }
        }
    }

    focus = {
        id = RAJ_forming_an_indian_doctrine
        icon = GFX_focus_RAJ_indian_gurkhas
        prerequisite = { focus = RAJ_indianize_the_army }

        x = 0
        y = 1
        relative_position_id = RAJ_indianize_the_army

        cost = 5

        available = {

        }

        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_WAR_SUPPORT FOCUS_FILTER_ARMY_XP}

        completion_reward = {
            army_experience = 50
            add_war_support = 0.05
        }
    }

    focus = {
        id = RAJ_model_after_germany
        icon = GFX_focus_chi_mission_to_germany
        prerequisite = { focus = RAJ_forming_an_indian_doctrine }

        x = -2
        y = 1
        relative_position_id = RAJ_forming_an_indian_doctrine

        mutually_exclusive = { focus = RAJ_model_after_usa }
        mutually_exclusive = { focus = RAJ_model_after_soviet }

        cost = 6

        available = {
            NOT = { has_war_with = GER }
        }

        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL}

        completion_reward = {
            add_popularity = {
                ideology = fascism
                popularity = 0.05
            }
            custom_effect_tooltip = generic_skip_one_line_tt
            add_ideas = { idea_RAJ_indian_army_doctrine_ger }
        }
    }

    focus = {
        id = RAJ_model_after_usa
        icon = GFX_focus_generic_befriend_usa
        prerequisite = { focus = RAJ_forming_an_indian_doctrine }

        x = 0
        y = 1
        relative_position_id = RAJ_forming_an_indian_doctrine

        mutually_exclusive = { focus = RAJ_model_after_germany }
        mutually_exclusive = { focus = RAJ_model_after_soviet }

        cost = 6

        available = {
            NOT = { has_war_with = USA }
        }

        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL}

        completion_reward = {
            add_popularity = {
                ideology = democratic
                popularity = 0.05
            }
            custom_effect_tooltip = generic_skip_one_line_tt
            add_ideas = { idea_RAJ_indian_army_doctrine_usa }
        }
    }

    focus = {
        id = RAJ_model_after_soviet
        icon = GFX_focus_chi_mission_to_the_soviet_union
        prerequisite = { focus = RAJ_forming_an_indian_doctrine }

        x = 2
        y = 1
        relative_position_id = RAJ_forming_an_indian_doctrine

        mutually_exclusive = { focus = RAJ_model_after_usa }
        mutually_exclusive = { focus = RAJ_model_after_germany }
        
        cost = 6

        available = {
            NOT = { has_war_with = SOV }
        }

        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_POLITICAL}

        completion_reward = {
            add_popularity = {
                ideology = communism
                popularity = 0.05
            }
            custom_effect_tooltip = generic_skip_one_line_tt
            add_ideas = { idea_RAJ_indian_army_doctrine_sov }
        }
    }

    focus = {
        id = RAJ_automating_the_army
        icon = GFX_goal_generic_army_tanks
        prerequisite = { focus = RAJ_model_after_usa focus = RAJ_model_after_germany }


        x = -1
        y = 2
        relative_position_id = RAJ_forming_an_indian_doctrine

        mutually_exclusive = { focus = RAJ_for_the_people_by_the_people }

        cost = 6

        available = {

        }

        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_RESEARCH}

        completion_reward = {
            add_tech_bonus = {
                bonus = 1.0
                uses = 1
                category = cat_mechanized_equipment
            }
            add_tech_bonus = {
                bonus = 0.75
                uses = 1
                category = armor
            }
        }
    }

    focus = {
        id = RAJ_for_the_people_by_the_people
        icon = GFX_focus_ETH_freedom_at_gunpoint
        prerequisite = { focus = RAJ_model_after_usa focus = RAJ_model_after_soviet }

        x = 1
        y = 2
        relative_position_id = RAJ_forming_an_indian_doctrine

        mutually_exclusive = { focus = RAJ_automating_the_army }

        cost = 6

        available = {

        }

        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_RESEARCH}

        completion_reward = {
            add_tech_bonus = {
                name = RAJ_for_the_people_by_the_people
                bonus = 0.75
                uses = 2
                category = infantry_tech
            }
            add_tech_bonus = {
                name = RAJ_for_the_people_by_the_people
                bonus = 0.5
                uses = 1
                category = artillery
            }
            add_tech_bonus = {
                name = RAJ_for_the_people_by_the_people
                bonus = 0.5
                uses = 1
                category = support_tech
            }
        }
    }

    #############
    ##RAILWAYS###
    #############
    focus = {
        id = RAJ_east_india_railways_dlc
        icon = GFX_goal_generic_construct_infrastructure
        #prerequisite = { focus =  }
        x = 10
        y = 0
        relative_position_id = RAJ_indianize_the_army
        
        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}

        complete_tooltip = {

        }

        completion_reward = {

            indian_railways_increase_bonus = yes

            custom_effect_tooltip = generic_skip_one_line_tt

            if = {
                limit = {
                    controls_province = 2086
                    controls_province = 4245
                }

                build_railway = {
                    level = 1
                    start_province = 2086
                    target_province = 4245
                }
            }

            if = {
                limit = {
                    controls_state = 431
                }

                431 = {
                    add_building_construction = {
                        type = supply_node
                        level = 1
                        instant_build = yes
                        province = 7593
                    }
                }
            }

            add_to_variable = { RAJ_railway_focuses = 1 }
        }
    }

    focus = {
        id = RAJ_the_calcutta_line
        icon = GFX_goal_fortify_the_westwall
        #prerequisite = { focus =  }
        x = 0
        y = 1
        relative_position_id = RAJ_east_india_railways_dlc
        
        prerequisite = { focus =  RAJ_east_india_railways_dlc }
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {
            431 = {
                is_fully_controlled_by = ROOT
            }
            430 = {
                is_fully_controlled_by = ROOT
            }
            432 = {
                is_fully_controlled_by = ROOT
            }
        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}

        complete_tooltip = {

        }

        completion_reward = {

            431 = {
                custom_effect_tooltip = RAJ_the_calcutta_line_tt
                hidden_effect = {

                    if = {
                        limit = {
                            any_province_building_level = {
                                province = {
                                    id = 1159
                                    id = 4245
                                    id = 10077
                                    id = 4644
                                    id = 7593
                                    id = 7537
                                }
                                building = bunker
                                level < 10
                            }
                        }
                        add_building_construction = {
                            type = bunker
                            level = 2
                            instant_build = yes
                            province = {
                                id = 1159
                                id = 4245
                                id = 10077
                                id = 4644
                                id = 7593
                                id = 7537
                            }
                        }
                    }
                }
            }

            custom_effect_tooltip = generic_skip_one_line_tt

            430 = {
                custom_effect_tooltip = RAJ_the_calcutta_line_tt
                hidden_effect = {
                    add_building_construction = {
                        type = bunker
                        level = 2
                        instant_build = yes
                        province  = 9935
                    }

                    add_building_construction = {
                        type = bunker
                        level = 2
                        instant_build = yes
                        province  = 2843
                    }

                    add_building_construction = {
                        type = bunker
                        level = 2
                        instant_build = yes
                        province  = 7124
                    }

                    add_building_construction = {
                        type = bunker
                        level = 2
                        instant_build = yes
                        province  = 4162
                    }

                    add_building_construction = {
                        type = bunker
                        level = 2
                        instant_build = yes
                        province  = 11929
                    }

                    add_building_construction = {
                        type = bunker
                        level = 2
                        instant_build = yes
                        province  = 9993
                    }

                    add_building_construction = {
                        type = bunker
                        level = 2
                        instant_build = yes
                        province  = 9993
                    }

                    add_building_construction = {
                        type = bunker
                        level = 2
                        instant_build = yes
                        province  = 4616
                    }

                    add_building_construction = {
                        type = bunker
                        level = 2
                        instant_build = yes
                        province  = 10443
                    }

                    add_building_construction = {
                        type = bunker
                        level = 2
                        instant_build = yes
                        province  = 10389
                    }   

                    add_building_construction = {
                        type = bunker
                        level = 2
                        instant_build = yes
                        province  = 12423
                    } 
                }         
            }

            custom_effect_tooltip = generic_skip_one_line_tt

            432 = {
                add_building_construction = {
                    type = bunker
                    level = 2
                    instant_build = yes
                    province  = 13208
                }
            }

        }
    }

    focus = {
        id = RAJ_bombay_baroda_and_central_india_railway
        icon = GFX_goal_generic_construct_infrastructure
        #prerequisite = { focus =  }
        x = 4
        y = 0
        relative_position_id = RAJ_east_india_railways_dlc
        
        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}

        completion_reward = {
            indian_railways_increase_bonus = yes
            if = {
                limit = {
                    429 = {
                        infrastructure < 5
                    }
                }
                429 = {
                    add_building_construction = {
                        type = infrastructure
                        level = 1
                        instant_build = yes
                    }
                }
            }

            custom_effect_tooltip = generic_skip_one_line_tt
            if = {
                limit = {
                    controls_province = 1349
                    controls_province = 4950
                }

                build_railway = {
                    level = 2
                    start_province = 1349
                    target_province = 4950
                }
            }

            if = {
                limit = {
                    controls_province = 4950
                    controls_province = 2086
                }

                build_railway = {
                    level = 2
                    start_province = 4950
                    target_province = 2086
                }
            }

            if = {
                limit = {
                    controls_province = 1349
                    controls_province = 9975
                }

                build_railway = {
                    level = 1
                    start_province = 1349
                    target_province = 9975
                }
            }

            if = {
                limit = {
                    controls_province = 1349
                    controls_province = 9975
                }

                build_railway = {
                    level = 1
                    start_province = 9975
                    target_province = 2086
                }
            }

            add_to_variable = { RAJ_railway_focuses = 1 }

        }
    }

    focus = {
        id = RAJ_great_indian_peninsula_railway_dlc
        icon = GFX_goal_generic_construct_infrastructure
        prerequisite = { focus = RAJ_east_india_railways_dlc focus = RAJ_bombay_baroda_and_central_india_railway }
        x = 2
        y = 1
        relative_position_id = RAJ_east_india_railways_dlc 
        
        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}

        complete_tooltip = {

        }

        completion_reward = {
            indian_railways_increase_bonus = yes
            add_to_variable = { RAJ_railway_focuses = 1 }
        }
    }

    focus = {
        id = RAJ_south_indian_railway_company
        icon = GFX_goal_generic_construct_infrastructure
        prerequisite = { focus = RAJ_great_indian_peninsula_railway_dlc }
        x = -2
        y = 1
        relative_position_id = RAJ_great_indian_peninsula_railway_dlc
        
        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}

        complete_tooltip = {

        }

        completion_reward = {
            indian_railways_increase_bonus = yes
            add_to_variable = { RAJ_railway_focuses = 1 }
        }
    }

    focus = {
        id = RAJ_supply_center_fortifications
        icon = GFX_goal_generic_fortify_city
        prerequisite = { focus = RAJ_great_indian_peninsula_railway_dlc }
        x = 0
        y = 1
        relative_position_id = RAJ_great_indian_peninsula_railway_dlc 
        
        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}

        complete_tooltip = {

        }

        completion_reward = {
            custom_effect_tooltip = RAJ_supply_center_fortifications_tt
            hidden_effect = {
                every_owned_state = {
                    add_building_construction = {
                        type = bunker
                        level = 3
                        instant_build = yes
                        province = {
                            all_provinces = yes
                            limit_to_supply_node = yes
                        }
                    }
                }
            }
        }
    }

    focus = {
        id = RAJ_north_western_state_railway
        icon = GFX_goal_generic_construct_infrastructure
        prerequisite = { focus = RAJ_great_indian_peninsula_railway_dlc }
        x = 2
        y = 1
        relative_position_id = RAJ_great_indian_peninsula_railway_dlc 
        
        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}

        complete_tooltip = {

        }

        completion_reward = {
            indian_railways_increase_bonus = yes
            add_to_variable = { RAJ_railway_focuses = 1 }

        }
    }

    focus = {
        id = RAJ_prioritize_army_cargo
        icon = GFX_focus_GER_kriegslokomotive
        prerequisite = { focus = RAJ_supply_center_fortifications }
        x = -2
        y = 1
        relative_position_id = RAJ_supply_center_fortifications
        mutually_exclusive = { focus = RAJ_prioritize_civilian_cargo }
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_RESEARCH}

        complete_tooltip = {

        }

        completion_reward = {
            #add_ideas = idea_RAJ_army_cargo
            if = {
                limit = {
                    has_dlc = "No Step Back"
                }

                add_equipment_bonus = {
                    name = RAJ_prioritize_army_cargo
                    bonus = {
                        train_equipment_3 = { #Valid for BBA and not BBA
                            armor_value = 0.1 # HP = BASE_TRAIN_HP + armor_value
                            air_attack = 0.15
                            instant = yes
                        }
                    }
                }

                set_technology = {
                    armored_train = 1
                    popup = no
                }
            }
            else = {
                add_ideas = idea_RAJ_cargo_no_nsb
            }


        }
    }

    focus = {
        id = RAJ_prioritize_civilian_cargo
        icon = GFX_focus_generic_railroad
        prerequisite = { focus = RAJ_supply_center_fortifications }
        x = 4
        y = 0
        relative_position_id = RAJ_prioritize_army_cargo
        mutually_exclusive = { focus = RAJ_prioritize_army_cargo }
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}

        complete_tooltip = {

        }

        completion_reward = {
            custom_effect_tooltip = RAJ_famine_impact_reduction
            
            add_to_variable = { RAJ_famine_shield = 10 tooltip = RAJ_famine_shield_tt  }
            calculate_famine_shield_and_risk = yes
            add_to_variable = { famine_reduction = 1 }
            add_equipment_to_stockpile = { 
                type = train_equipment_1
                amount = 15
                producer = RAJ
            }
        }
    }

    focus = {
        id = RAJ_ammunition_factory_khadki
        icon = GFX_goal_generic_construct_mil_factory
        #prerequisite = { focus =  }
        x = 7
        y = 0
        relative_position_id = RAJ_bombay_baroda_and_central_india_railway
        
        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}

        completion_reward = {
            random_core_state = {
                limit = {
                    is_owned_by = RAJ
                }
                prioritize = { 429 } #optional: to pick those states first if they fulfill the limit
                add_extra_state_shared_building_slots = 1
                add_building_construction = {
                    type = arms_factory
                    level = 1
                    instant_build = yes
                }
            }

            if = {
                limit = {
                    has_dlc = "Arms Against Tyranny"
                }

                mio:RAJ_ammunition_factory_khadki_organization = {
                    add_mio_size = 1
                }
            }
            else = {
                upgrade_ordance_factories_no_aat = yes
            }
        }
    }

    focus = {
        id = RAJ_royal_indian_artillery_dlc
        #icon = GFX_
        prerequisite = {  }
        x = 9
        y = 0
        relative_position_id = RAJ_ammunition_factory_khadki
        icon = GFX_focus_SWE_let_fly_all_guns
        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_RESEARCH}

        completion_reward = {
            add_tech_bonus = {
                name = RAJ_royal_indian_artillery_dlc
                bonus = 0.5
                uses = 2
                category = artillery # optional 
                # technology  = technology_id # optional
            }
        }
    }

    focus = {
        id = RAJ_military_pensions
        icon = GFX_focus_SWE_defense_act
        #prerequisite = { focus = RAJ_local_recruitment_offices }
        x = 9
        y = 0
        relative_position_id = RAJ_royal_indian_artillery_dlc
        
        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_WAR_SUPPORT}
        search_filters = {FOCUS_FILTER_POLITICAL}

        completion_reward = {
            add_timed_idea = { idea = idea_RAJ_military_pensions days = 400 }
        }
    }
    
    focus = {
        id = RAJ_local_recruitment_offices
        icon = GFX_focus_SWE_varnplikt
        #prerequisite = { focus =  }
        x = 10
        y = 0
        relative_position_id = RAJ_military_pensions
        
        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {
            is_raj_or_raj_inheritor = yes
        }
        
        bypass = {
            NOT = { has_dynamic_modifier = { modifier = idea_RAJ_agrarian_society } }
        }
        search_filters = { FOCUS_FILTER_MANPOWER }
        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no



        completion_reward = {
            custom_effect_tooltip = RAJ_local_recruitment_offices_tt
            remove_agrarian_society_if_void = yes

        }
    }

    focus = {
        id = RAJ_specialized_dietary_requirement
        icon = GFX_focus_RAJ_specialized_dietery_requirements
        prerequisite = { focus = RAJ_military_pensions focus = RAJ_royal_indian_artillery_dlc  }
        x = 2
        y = 1
        relative_position_id = RAJ_royal_indian_artillery_dlc 
        mutually_exclusive = { focus = RAJ_standardized_rations }
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_STABILITY}

        completion_reward = {
            add_ideas = idea_RAJ_specialized_dietary_requirement
        }
    }
    

    focus = {
        id = RAJ_standardized_rations
        icon = GFX_focus_SWE_rations
        prerequisite = { focus = RAJ_military_pensions focus = RAJ_royal_indian_artillery_dlc  }
        x = 2
        y = 0
        relative_position_id = RAJ_specialized_dietary_requirement
        mutually_exclusive = { focus = RAJ_specialized_dietary_requirement }
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        completion_reward = {
            add_ideas = idea_RAJ_standardized_rations
        }
    }


    focus = {
        id = RAJ_quinine
        icon = GFX_focus_RAJ_quinine
        prerequisite = { focus = RAJ_specialized_dietary_requirement focus = RAJ_standardized_rations } 
        x = 1
        y = 1
        relative_position_id = RAJ_specialized_dietary_requirement
       
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        completion_reward = {
            set_country_flag = has_quinine
            custom_effect_tooltip = RAJ_quinine_tt
            custom_effect_tooltip = newline_tt
            unlock_decision_tooltip = {
                decision = RAJ_deploy_emergency_healthcare
                show_effect_tooltip = yes # default is no
                show_modifiers = yes # default is no
            }
        }
    }
    
    focus = {
        id = RAJ_armoured_corps_center_and_school
        icon = GFX_goal_generic_army_tanks
        prerequisite = { focus = RAJ_royal_indian_artillery_dlc }
        x = -3
        y = 1
        relative_position_id = RAJ_royal_indian_artillery_dlc
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_RESEARCH FOCUS_FILTER_MILITARY_CHARACTER}

        completion_reward = {
            random_army_leader = {
                limit = {
                    NOT = { has_trait = panzer_leader }
                }
                add_trait = {
                    trait = panzer_leader
                }
            }
            add_tech_bonus = {
                name = RAJ_armoured_corps_center_and_school
                bonus = 0.3
                uses = 2
                category = armor # optional 
                # technology  = technology_id # optional
            }
        }
    }
    

    focus = {
        id = RAJ_legacy_of_military_service
        #icon = GFX_
        prerequisite = { focus = RAJ_local_recruitment_offices }
        x = 0
        y = 1
        relative_position_id = RAJ_local_recruitment_offices
        icon = GFX_focus_generic_commonwealth_build_infantry
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {
            NOT = { has_dynamic_modifier = { modifier = idea_RAJ_agrarian_society } }
        }
        search_filters = { FOCUS_FILTER_MANPOWER FOCUS_FILTER_MANPOWER }
        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no



        completion_reward = {
            custom_effect_tooltip = RAJ_relax_agrarian_society_criteria_tt
            
            add_to_variable = { RAJ_agrarian_society_conscription_factor = 0.1 tooltip = conscription_factor_tt }
            add_to_variable = { RAJ_agrarian_society_mobilization_speed = 0.1  tooltip = mobilization_speed_tt }
            add_to_variable = { RAJ_agrarian_society_mobilization_laws_cost_factor = -0.2 tooltip = mobilization_laws_cost_factor_tt }
            remove_agrarian_society_if_void = yes
        }
    }
    

    focus = {
        id = RAJ_indian_states_force
        icon = GFX_goal_generic_construct_mil_factory
        prerequisite = { focus = RAJ_military_pensions }
        x = 0
        y = 2
        relative_position_id = RAJ_military_pensions
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}

        completion_reward = {
            every_controlled_state = {
                random_select_amount = 2
                limit = {
                    is_in_array = {
                        array = ROOT.owned_states_at_game_start
                        value = THIS
                    }

                    has_resistance = yes
                }
                add_extra_state_shared_building_slots = 1
                add_building_construction = {
                    type = arms_factory
                    level = 1
                    instant_build = yes
                }
            }
        }
    }
    


    focus = {
        id = RAJ_womens_auxiliary_corps
        icon = GFX_focus_SWE_lottakoren
        prerequisite = { focus = RAJ_military_pensions }
        x = 2
        y = 1
        relative_position_id = RAJ_military_pensions
        
        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no



        completion_reward = {
            add_ideas = idea_RAJ_womens_auxiliary_corps
        }
    }

    focus = {
        id = RAJ_indian_army_corps_of_engineers
        icon = GFX_focus_SOV_organize_wreckers
        prerequisite = { focus = RAJ_legacy_of_military_service focus = RAJ_military_pensions }
        x = -5
        y = 1
        relative_position_id = RAJ_legacy_of_military_service
        
        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_MILITARY_CHARACTER}
        search_filters = {FOCUS_FILTER_RESEARCH}

        completion_reward = {
            every_army_leader = {
                random_select_amount = 2
                add_trait = {
                    trait = trait_engineer
                }
                add_logistics = 2
            }

            add_tech_bonus = {
                name = RAJ_indian_army_corps_of_engineers
                bonus = 1
                uses = 1
                category = engineers_tech # optional 
                # technology  = technology_id # optional
            }
        }
    }
    

    focus = {
        id = RAJ_relax_agrarian_society_criteria
        icon = GFX_focus_secret_rearmament
        prerequisite = { focus = RAJ_legacy_of_military_service}
        x = -1
        y = 1
        relative_position_id = RAJ_legacy_of_military_service 
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {
            has_stability > 0.69
        }
        
        bypass = {
            NOT = { has_dynamic_modifier = { modifier = idea_RAJ_agrarian_society } }
        }
        search_filters = { FOCUS_FILTER_MANPOWER }
        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_MANPOWER}

        completion_reward = {
            custom_effect_tooltip = RAJ_relax_agrarian_society_criteria_tt
            
            add_to_variable = { RAJ_agrarian_society_conscription_factor = 0.1 tooltip = conscription_factor_tt }
            add_to_variable = { RAJ_agrarian_society_mobilization_speed = 0.1  tooltip = mobilization_speed_tt }
            add_to_variable = { RAJ_agrarian_society_mobilization_laws_cost_factor = -0.2 tooltip = mobilization_laws_cost_factor_tt }
            remove_agrarian_society_if_void = yes
                        
        }
    }
    

    focus = {
        id = RAJ_mechanization_of_the_cavalry
        icon = GFX_focus_generic_mechanized
        prerequisite = { focus = RAJ_armoured_corps_center_and_school }
        x = 0
        y = 1
        relative_position_id = RAJ_armoured_corps_center_and_school 
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_RESEARCH FOCUS_FILTER_ARMY_XP}

        completion_reward = {
            add_tech_bonus = {
                name = RAJ_mechanization_of_the_cavalry
                bonus = 1
                uses = 1
                category = cat_mechanized_equipment # optional 
                # technology  = technology_id # optional
            }
            army_experience = 20
        }
    }
    

    focus = {
        id = RAJ_mountain_tanks
        icon = GFX_focus_generic_army_tanks2
        prerequisite = { focus = RAJ_mechanization_of_the_cavalry }
        x = 0
        y = 1
        relative_position_id = RAJ_mechanization_of_the_cavalry
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_RESEARCH}

        completion_reward = {

            custom_effect_tooltip = mountain_tanks_tt
           # hidden_effect = {
                set_technology = {
                    mountain_tanks = 1
                    popup = yes
                }
           # }
        }
    }
    

    focus = {
        id = RAJ_siege_batteries
        icon = GFX_focus_generic_railway_gun
        prerequisite = { focus = RAJ_indian_army_corps_of_engineers }
        x = 0
        y = 1
        relative_position_id = RAJ_indian_army_corps_of_engineers
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_RESEARCH FOCUS_FILTER_MILITARY_CHARACTER}

        completion_reward = {
            if = {
                limit = {
                    has_dlc = "No Step Back"
                }
                #Required techs for railway guns
                if = {
                    limit = {
                        NOT = { has_tech = armored_train }
                    }
                    set_technology = { armored_train = 1 }
                }
                if = {
                    limit = {
                        NOT = { has_tech = railway_gun }
                    }
                    set_technology = { railway_gun = 1 }
                }

                create_railway_gun = {
                    equipment = railway_gun_equipment_1
                    name = "BL 9.2-inch Railway Gun"
                }
            }
            else = {
                add_ideas = idea_RAJ_siege_batteries
            }

            random_army_leader = {
                limit = {
                    NOT = { has_trait = fortress_buster }
                }
                add_trait = {
                    trait = fortress_buster
                }
            }
        }
    }
    

    focus = {
        id = RAJ_mountain_guns
        icon = GFX_focus_RAJ_mountain_guns
        prerequisite = { focus = RAJ_royal_indian_artillery_dlc }
        x = 0
        y = 1
        relative_position_id = RAJ_royal_indian_artillery_dlc
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_RESEARCH}

        completion_reward = {
            custom_effect_tooltip = mountain_guns_tt
            hidden_effect = {
                set_technology = {
                    mountain_gun = 1
                    popup = no
                }
            }

        }
    }
    

    focus = {
        id = RAJ_frontier_corps
        icon = GFX_focus_generic_military_academy
        prerequisite = { focus = RAJ_military_pensions }
        x = -2
        y = 1
        relative_position_id = RAJ_military_pensions
        
        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_RESEARCH}

        completion_reward = {
            add_tech_bonus = {
                bonus = 1
                uses = 1
                category = logistics_tech # optional 
                ahead_reduction = 2
                # technology  = technology_id # optional
            }
            if = {
                limit = {
                    has_dlc = "Arms Against Tyranny"
                }
                add_doctrine_cost_reduction = {
                    cost_reduction = 0.25
                    uses = 1
                    category = special_forces_doctrine
                }
            }
            else = {
                army_experience = 50
            }
        }
    }
    

    focus = {
        id = RAJ_regimental_loyalty
        icon = GFX_goal_generic_axis_build_infantry
        prerequisite = { focus = RAJ_legacy_of_military_service }
        x = 2
        y = 0
        relative_position_id = RAJ_relax_agrarian_society_criteria
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {
            has_war_support > 0.55
        }
        search_filters = { FOCUS_FILTER_MANPOWER }
        bypass = {
            NOT = { has_dynamic_modifier = { modifier = idea_RAJ_agrarian_society } }
        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_MANPOWER}

        completion_reward = {
            custom_effect_tooltip = RAJ_relax_agrarian_society_criteria_tt
            
            add_to_variable = { RAJ_agrarian_society_conscription_factor = 0.1 tooltip = conscription_factor_tt }
            add_to_variable = { RAJ_agrarian_society_mobilization_speed = 0.1  tooltip = mobilization_speed_tt }
            add_to_variable = { RAJ_agrarian_society_mobilization_laws_cost_factor = -0.2 tooltip = mobilization_laws_cost_factor_tt }
            remove_agrarian_society_if_void = yes
        }
    }
    
    focus = {
        id = RAJ_the_burma_rifles
        icon = GFX_goal_generic_army_doctrines
        prerequisite = { focus = RAJ_frontier_corps }
        x = 0
        y = 1
        relative_position_id = RAJ_frontier_corps
        
        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_RESEARCH}

        completion_reward = {
            add_doctrine_cost_reduction = {
                name = RAJ_the_burma_rifles
                cost_reduction = 0.35
                uses = 1
                category = land_doctrine
            }

            add_tech_bonus = {
                bonus = 0.4
                uses = 1
                category = infantry_weapons # optional 
                # technology  = technology_id # optional
                name = RAJ_the_burma_rifles
            }
        }
    }

    focus = {
        id = RAJ_gurkhas
        icon = GFX_focus_RAJ_indian_gurkhas
        prerequisite = { focus = RAJ_the_burma_rifles  }
        x = 0
        y = 2
        relative_position_id = RAJ_the_burma_rifles
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        } 

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        completion_reward = {
            add_doctrine_cost_reduction = {
                name = RAJ_gurkhas
                cost_reduction = 0.35
                uses = 3
                category = special_forces_doctrine
            }
            add_potential_special_forces_tree = yes
            division_template = {
                name = "Gurkha Rifles"
                is_locked = no
                #division_names_group = NAMELIST_ID # optional
                priority = 2 # optional 
                #template_counter = <INT> # optional
                regiments = {
                    infantry = { x = 0 y = 0 }
                    infantry = { x = 0 y = 1 }
                    infantry = { x = 0 y = 2 }
                    infantry = { x = 0 y = 3 }
                    infantry = { x = 1 y = 0 }
                    infantry = { x = 1 y = 1 }
                    infantry = { x = 1 y = 2 }
                    infantry = { x = 1 y = 3 }
                    artillery_brigade = { x = 2 y = 0 }
                    
                }
                support = {
                    artillery = { x = 0 y = 0 }
                    engineer = { x = 0 y = 1 }
                    anti_air = { x = 0 y = 2 }
                }
            }

            random_owned_controlled_state = {

                prioritize = { 439 } #optional: to pick those states first if they fulfill the limit
                if = {
                    limit = {
                       ROOT = { is_subject_of = ENG } 
                    }


                    create_unit = {
                        division = "name = \"1st King George V's Own Gurkha Rifles\" division_template = \"Gurkha Rifles\" start_experience_factor = 1.5 start_equipment_factor = 0.8 start_manpower_factor = 0.7"
                        owner = ROOT
                        allow_spawning_on_enemy_provs = no 
                        country_score = {} # optional 
                    }

                    create_unit = {
                        division = "name = \"6th Queen Elizabeth's Own Gurkha Rifles\" division_template = \"Gurkha Rifles\" start_experience_factor = 1.5 start_equipment_factor = 0.8 start_manpower_factor = 0.7"
                        owner = ROOT
                        allow_spawning_on_enemy_provs = no 
                        country_score = {} # optional 
                    }
                }
                else = {
                    create_unit = {
                        division = "name = \"The Sirmoor Rifles\" division_template = \"Gurkha Rifles\" start_experience_factor = 1.5 start_equipment_factor = 0.8 start_manpower_factor = 0.7"
                        owner = ROOT
                        allow_spawning_on_enemy_provs = no 
                        country_score = {} # optional 
                    }

                    create_unit = {
                        division = "name = \"Gurkha Rifles\" division_template = \"Gurkha Rifles\" start_experience_factor = 1.5 start_equipment_factor = 0.8 start_manpower_factor = 0.7"
                        owner = ROOT
                        allow_spawning_on_enemy_provs = no 
                        country_score = {} # optional 
                    }
                }
                
            }



        }
    }



    focus = {
        id = RAJ_lions_of_the_great_war_dlc
        icon = GFX_focus_RAJ_lions_of_the_great_war
        prerequisite = { focus = RAJ_gurkhas }
        x = 0
        y = 1
        relative_position_id = RAJ_gurkhas

        cost = 6

        ai_will_do = {
            factor = 25
        }

        available = {

        }

        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = { FOCUS_FILTER_MANPOWER FOCUS_FILTER_ARMY_XP }
        completion_reward = {
            add_ideas = idea_RAJ_lions_of_the_great_war
            army_experience = 30
            custom_effect_tooltip = RAJ_create_unit_sikh_tt
            hidden_effect = {

                division_template = {
                name = "Sikh Regiment" #sikh regiment, bro
                division_names_group = RAJ_INF_01
                regiments = {
                        infantry = { x = 0 y = 0 }
                        infantry = { x = 0 y = 1 }
                        infantry = { x = 0 y = 2 }
        
                        infantry = { x = 1 y = 0 }
                        infantry = { x = 1 y = 1 }
                        infantry = { x = 1 y = 2 }

                        infantry = { x = 2 y = 0 }
                        infantry = { x = 2 y = 1 }
                        infantry = { x = 2 y = 2 }
                            }
                        }
        
                    random_owned_controlled_state = {
                            prioritize = { 439 }
                            create_unit = { 
                                division = "name = \"1. Sikh Regiment\" division_template = \"Sikh Regiment\" start_experience_factor = 0.5" 
                                owner = RAJ
                                }
        
                    }
                }

        }
    }
    

    focus = {
        id = RAJ_abolish_agrarian_society_criteria
        icon = GFX_focus_generic_manpower
        prerequisite = { focus = RAJ_relax_agrarian_society_criteria  focus = RAJ_regimental_loyalty }
        x = -1
        y = 1
        relative_position_id = RAJ_regimental_loyalty
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {
            has_war_support > 0.68
            OR = {
                has_war_with_major = yes
                surrender_progress > 0.2
            }
        }
        search_filters = { FOCUS_FILTER_MANPOWER }
        bypass = {
            NOT = { has_dynamic_modifier = { modifier = idea_RAJ_agrarian_society } }
        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no



        completion_reward = {
            custom_effect_tooltip = RAJ_abolish_agrarian_society_criteria_tt
            subtract_from_variable = { RAJ_recruitment_offices_timeout_max = 3 }
            remove_agrarian_society_if_void = yes
        }
    }

    

    focus = {
        id = RAJ_indian_territorial_force
        icon = GFX_goal_generic_more_territorial_claims
        prerequisite = { focus = RAJ_frontier_corps }
        x = -2
        y = 1
        relative_position_id = RAJ_frontier_corps
        

        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {
            NOT = { has_dynamic_modifier = { modifier = idea_RAJ_agrarian_society } }
        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no


        search_filters = { FOCUS_FILTER_MANPOWER }
        completion_reward = {
            add_doctrine_cost_reduction = {
                cost_reduction = 0.35
                uses = 1
                category = land_doctrine
            }

           custom_effect_tooltip = RAJ_relax_agrarian_society_criteria_tt
            
            add_to_variable = { RAJ_agrarian_society_conscription_factor = 0.05 tooltip = conscription_factor_tt }
            add_to_variable = { RAJ_agrarian_society_mobilization_speed = 0.05  tooltip = mobilization_speed_tt }
            add_to_variable = { RAJ_agrarian_society_mobilization_laws_cost_factor = -0.1 tooltip = mobilization_laws_cost_factor_tt }
        }
    }
    

    focus = {
        id = RAJ_military_engineer_services
        icon = GFX_goal_fortify_the_westwall
        prerequisite = { focus = RAJ_indian_army_corps_of_engineers }
        x = 2
        y = 1
        relative_position_id = RAJ_indian_army_corps_of_engineers
        
        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_RESEARCH}

        completion_reward = {
            add_tech_bonus = {
                uses = 1
                ahead_reduction = 2
                category = engineers_tech # optional 
                # technology  = technology_id # optional
            }
        }
    }

    focus = {
        id = RAJ_help_from_the_nagas
        icon = GFX_goal_generic_military_deal
        prerequisite = { focus = RAJ_indian_territorial_force  }
        x = 0
        y = 1
        relative_position_id = RAJ_indian_territorial_force
        
        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_RESEARCH}

        completion_reward = {
            add_tech_bonus = {
                name = RAJ_help_from_the_nagas
                ahead_reduction = 1
                uses = 1
                category = recon_tech # optional 
            }
            hidden_effect = {
                set_technology = {
                    tech_recon_focus_bonus = 1
                    popup = no
                }
            }
            custom_effect_tooltip = tech_recon_focus_bonus_tt

        }
    }
    

    focus = {
        id = RAJ_re_establish_the_khyber_rifles
        icon = GFX_focus_ETH_freedom_at_gunpoint
        prerequisite = { focus = RAJ_indian_territorial_force focus = RAJ_mountain_guns }
        x = -4
        y = 1
        relative_position_id = RAJ_indian_territorial_force
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_MILITARY_CHARACTER}

        completion_reward = {
            random_army_leader = {
                limit = {
                    NOT = { has_trait = hill_fighter }   
                }

                add_trait = {
                    trait = hill_fighter
                }
            }

            random_army_leader = {
                limit = {
                    NOT = { has_trait = trait_mountaineer }   
                }

                add_trait = {
                    trait = trait_mountaineer
                }
            }

        }
    }
    

    focus = {
        id = RAJ_campaign_against_agrarian_societys
        icon = GFX_goal_generic_small_arms
        prerequisite = { focus = RAJ_abolish_agrarian_society_criteria }
        x = 0
        y = 1
        relative_position_id = RAJ_abolish_agrarian_society_criteria
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {
            NOT = { has_dynamic_modifier = { modifier = idea_RAJ_agrarian_society } }
        }

        search_filters = { FOCUS_FILTER_MANPOWER }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no



        completion_reward = {
            unlock_decision_tooltip = {
                decision = RAJ_GOE_campaign_against_agrarian_societys
                show_effect_tooltip = yes # default is no
                show_modifiers = yes # default is no
            }
            remove_agrarian_society_if_void = yes
        }
    }
    
    focus = {
        id = RAJ_assam_oil_dlc
        icon = GFX_goal_generic_oil_refinery
        prerequisite = { focus = RAJ_east_india_railways_dlc  }
        x = -4
        y = 1
        relative_position_id = RAJ_east_india_railways_dlc
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {
            controls_state = 432
        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}
        search_filters = {FOCUS_FILTER_RESEARCH}

        completion_reward = {
            432 = {
                add_resource = {
                    type = oil
                    amount = 12
                }
            }

            add_tech_bonus = {
                name = RAJ_assam_oil
                bonus = 1
                uses = 1
                category = synth_resources # optional 
                # technology  = technology_id # optional
            }
        }
    }
    

    focus = {
        id = RAJ_tata_steel_dlc
        icon = GFX_goal_generic_construct_civilian
        prerequisite = { focus = RAJ_bombay_baroda_and_central_india_railway }
        x = 0
        y = 1
        relative_position_id = RAJ_bombay_baroda_and_central_india_railway
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {
            controls_state = 429
        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}

        completion_reward = {
            429 = {
                add_resource = {
                    type = steel
                    amount = 24
                }
            }
        }
    }

    focus = {
        id = RAJ_chindits_dlc
        icon = GFX_goal_generic_special_forces
        prerequisite = { focus = RAJ_re_establish_the_khyber_rifles }
        x = 0
        y = 1
        relative_position_id = RAJ_re_establish_the_khyber_rifles 
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {
            if = {
                limit = {   #prevent ai from stealing orde from ETH if player
                    is_ai = yes
                }
                OR = {
                    any_other_country = {
                        has_character = RAJ_orde_wingate 
                        is_ai = yes 
                    }

                    any_other_country = {
                        NOT = { has_character = RAJ_orde_wingate  }
                    }
                }
            }
        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_MILITARY_CHARACTER}

        completion_reward = {

            create_orde_wingate = yes
            if = {
                limit = {
                    RAJ_orde_wingate = {
                        has_character_flag = is_in_ethiopia
                    }
                    OR = {
                        ETH = { is_ai = yes }
                        AND = {
                            ETH = { is_ai = no }
                            RAJ = { is_ai = no }
                        }
                    }
                }

                RAJ_orde_wingate = {
                    hidden_effect = {
                        if = {
                            limit = {
                                has_character_flag = is_in_ethiopia
                                NOT = { ROOT = { has_war_with = ENG } }
                            } 
                            clr_character_flag = is_in_ethiopia
                        }
                        set_character_flag = is_in_raj
                    }
                    set_nationality = RAJ
                }
            }

            add_ideas = idea_RAJ_chindits
        }
    }
    

    focus = {
        id = RAJ_viceroys_body_guard
        icon = GFX_goal_generic_cavalry
        prerequisite = { focus = RAJ_indian_states_force }
        x = 0
        y = 1
        relative_position_id = RAJ_indian_states_force
        
        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_RESEARCH}

        completion_reward = {
            if = {
                limit = {
                    NOT = { has_tech = tech_military_police }
                }
                set_technology = {
                    tech_military_police = 1
                    popup = yes
                }
            }

            add_tech_bonus = {
                name = RAJ_viceroys_body_guard
                bonus = 1
                uses = 1
                category = military_police_tech # optional 
                # technology  = technology_id # optional
            }
            if = {
                limit = {
                    is_subject = yes
                }
                division_template = {
                    name = "Viceroys Body Guard"
                    is_locked = no
                    #division_names_group = NAMELIST_ID # optional
                    priority = 2 # optional 
                    #template_counter = <INT> # optional
                    regiments = {
                        cavalry = { x = 0 y = 0 }
                        cavalry = { x = 0 y = 1 }
                        cavalry = { x = 0 y = 2 }
                        cavalry = { x = 0 y = 3 }
                        cavalry = { x = 1 y = 0 }
                        cavalry = { x = 1 y = 1 }
                        cavalry = { x = 1 y = 2 }
                        cavalry = { x = 1 y = 3 }
                        cavalry = { x = 2 y = 0 }
                        cavalry = { x = 2 y = 1 }
                        cavalry = { x = 2 y = 2 }
                        cavalry = { x = 2 y = 3 }
                    }
                    support = {
                        military_police = { x = 0 y  = 0 }
                    }
                }
                random_owned_controlled_state = {
                    prioritize = { 438 } #optional: to pick those states first if they fulfill the limit
                    create_unit = {
                        division = "name = \"Viceroys Body Guard\" division_template = \"Viceroys Body Guard\" start_experience_factor = 0.7 start_equipment_factor = 0.8 start_manpower_factor = 1"
                        owner = RAJ
                    }
                }
            }
            else = {
                division_template = {
                    name = "Presidents Bodyguard"
                    is_locked = no
                    #division_names_group = NAMELIST_ID # optional
                    priority = 2 # optional 
                    #template_counter = <INT> # optional
                    regiments = {
                        cavalry = { x = 0 y = 0 }
                        cavalry = { x = 0 y = 1 }
                        cavalry = { x = 0 y = 2 }
                        cavalry = { x = 0 y = 3 }
                        cavalry = { x = 1 y = 0 }
                        cavalry = { x = 1 y = 1 }
                        cavalry = { x = 1 y = 2 }
                        cavalry = { x = 1 y = 3 }
                        cavalry = { x = 2 y = 0 }
                        cavalry = { x = 2 y = 1 }
                        cavalry = { x = 2 y = 2 }
                        cavalry = { x = 2 y = 3 }
                    }
                    support = {
                        military_police = { x = 0 y  = 0 }
                    }
                }
                random_owned_controlled_state = {
                    prioritize = {  438 } #optional: to pick those states first if they fulfill the limit
                    create_unit = {
                        division = "name = \"Presidents Bodyguard\" division_template = \"Presidents Bodyguard\" start_experience_factor = 0.7 start_equipment_factor = 0.8 start_manpower_factor = 1"
                        owner = RAJ
                    }
                }
            }


        }
    }
    

    focus = {
        id = RAJ_engineering_revolution
        icon = GFX_focus_SWE_landsverk
        prerequisite = { focus = RAJ_mechanization_of_the_cavalry focus = RAJ_ordnance_factory_khamaria_jabalpur }
        x = -2
        y = 1
        relative_position_id = RAJ_mechanization_of_the_cavalry
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_RESEARCH}
        search_filters = {FOCUS_FILTER_INDUSTRY}

        completion_reward = {
            add_tech_bonus = {
                name = RAJ_engineering_revolution
                bonus = 1
                uses = 1
                category = engineers_tech # optional 
                # technology  = technology_id # optional
            }
           try_build_mil_in_core_otherwise_build_in_controlled_2_mil = yes
        }
    }
    

    focus = {
        id = RAJ_gun_and_shell_factory_cossipore
        icon = GFX_goal_generic_construct_mil_factory
        prerequisite = { focus = RAJ_ammunition_factory_khadki }
        x = 2
        y = 1
        relative_position_id = RAJ_ammunition_factory_khadki
        
        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}

        completion_reward = {
            if = {
                limit = {
                    has_dlc = "Arms Against Tyranny"
                }

                mio:RAJ_ammunition_factory_khadki_organization = {
                    add_mio_size = 1
                    unlock_mio_trait_tooltip = {
                        trait = RAJ_mio_trait_gun_and_shell_facatory_cassiopore
                    }
                }
            }
            else = {
                upgrade_ordance_factories_art_no_aat = yes
            }

            try_build_mil_in_core_otherwise_build_in_controlled = yes
        }
    }
    
    focus = {
        id = RAJ_rifle_factory_ishapore_west_bengal
        icon = GFX_goal_generic_small_arms
        prerequisite = { focus = RAJ_ammunition_factory_khadki }
        x = -2
        y = 1
        relative_position_id = RAJ_ammunition_factory_khadki
        
        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no



        completion_reward = {
            if = {
                limit = {
                    has_dlc = "Arms Against Tyranny"
                }
                mio:RAJ_ammunition_factory_khadki_organization = {
                    add_mio_size = 1
                    unlock_mio_trait_tooltip = {
                        trait = RAJ_mio_trait_rifle_factory_ishapore
                    }
                }
            }
            else = {
                upgrade_ordance_factories_no_aat = yes
            }

            try_build_mil_in_core_otherwise_build_in_controlled = yes
            
        }
    }

    focus = {
        id = RAJ_ordnance_factory_kanpur_uttar_pradesh
        icon = GFX_goal_generic_construct_mil_factory
        prerequisite = { focus = RAJ_rifle_factory_ishapore_west_bengal }
        x = 0
        y = 1
        relative_position_id = RAJ_rifle_factory_ishapore_west_bengal   
        
        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no



        completion_reward = {
            
            if = {
                limit = {
                    has_dlc = "Arms Against Tyranny"
                }

                mio:RAJ_ammunition_factory_khadki_organization = {
                    add_mio_size = 1
                    unlock_mio_trait_tooltip = {
                        trait = RAJ_mio_trait_ordnance_factory_kanpur_uttar_pradesh_inf
                    }
                }

                mio:RAJ_ordnance_factory_kanpur_organization = {
                    add_mio_size = 1
                    unlock_mio_trait_tooltip = {
                        trait = RAJ_mio_trait_ordnance_factory_kanpur_uttar_pradesh_art
                    }
                }
            }
            else = {
                upgrade_ordance_factories_no_aat = yes
                upgrade_ordance_factories_art_no_aat = yes
            }

            try_build_mil_in_core_otherwise_build_in_controlled = yes
        }
    }

    focus = {
        id = RAJ_ordnance_factory_medak
        icon = GFX_focus_CHL_domestic_production_of_the_willys_mb
        prerequisite = { focus = RAJ_rifle_factory_ishapore_west_bengal }
        x = -2
        y = 1
        relative_position_id = RAJ_rifle_factory_ishapore_west_bengal   
        
        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = { FOCUS_FILTER_RESEARCH }

        completion_reward = {
            if = {
                limit = {
                    has_dlc = "Arms Against Tyranny"
                }

                mio:RAJ_ordnance_factory_medak_organization = {
                    add_mio_size = 1
                    unlock_mio_trait_tooltip = {
                        trait = RAJ_mio_trait_apc_research_effort
                    }
                }
            }
            else = {
                add_tech_bonus = {
                    name = RAJ_ordnance_factory_medak
                    bonus = 0.75
                    uses = 1
                    category = cat_mechanized_equipment # optional 
                    # technology  = technology_id # optional
                }

            }
            try_build_mil_in_core_otherwise_build_in_controlled = yes

        }
    }





    focus = {
        id = RAJ_chariot_of_victory
        icon = GFX_focus_generic_mechanized
        prerequisite = { focus = RAJ_ordnance_factory_medak focus = RAJ_ordnance_factory_kanpur_uttar_pradesh }
        x = 1
        y = 1
        relative_position_id = RAJ_ordnance_factory_medak   
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_RESEARCH}

        completion_reward = {
            add_tech_bonus = {
                bonus = 0.5
                uses = 1
                category = cat_mechanized_equipment # optional 
                name = RAJ_chariot_of_victory
                # technology  = technology_id # optional
            }
            if = {
                limit = {
                    has_dlc = "Arms Against Tyranny"
                }

                mio:RAJ_ordnance_factory_medak_organization = {
                    add_mio_size = 1
                    unlock_mio_trait_tooltip = {
                        trait = RAJ_mio_trait_chariot_of_victory
                    }
                }
            }
            else = {
                if = {
                    limit = {
                        has_idea = idea_medak
                    }
                    swap_ideas = {
                        remove_idea = idea_medak
                        add_idea = idea_medak_1
                    }
                }
                else = {
                    effect_tooltip = {
                        swap_ideas = {
                            remove_idea = idea_medak
                            add_idea = idea_medak_1
                        }
                    }
                }
            }

            try_build_mil_in_core_otherwise_build_in_controlled = yes
        }
    }
    
   

    focus = {
        id = RAJ_indian_air_force
        icon = GFX_goal_generic_build_airforce
        #prerequisite = { focus =  }
        x = 9
        y = 0
        relative_position_id = RAJ_local_recruitment_offices
        
        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_AIR_XP}

        completion_reward = {
            add_dynamic_modifier = {
                modifier = idea_RAJ_indian_air_force
            }
            set_variable = {
                var = RAJ_indian_air_force_xp_gain
                value = 0.05
                tooltip = experience_gain_air_tt  #Optional. localized text with LEFT and RIGHT tokens in it, tokens will replaced by values
            }

        }
    }
    

    focus = {
        id = RAJ_cordite_factory_aruvankadu_tamil_nadu
        icon = GFX_goal_generic_construct_mil_factory
        prerequisite = { focus = RAJ_gun_and_shell_factory_cossipore }
        x = -1
        y = 1
        relative_position_id = RAJ_gun_and_shell_factory_cossipore
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}

        completion_reward = {
            if = {
                limit = {
                    has_dlc = "Arms Against Tyranny"
                }
                mio:RAJ_ordnance_factory_kanpur_organization = {
                    add_mio_size = 1
                    unlock_mio_trait_tooltip = {
                        trait = RAJ_mio_trait_cordite_factory_aruvankadu_tamil_nadu
                        show_modifiers = yes
                    }
                }
            }
            else = {
                upgrade_ordance_factories_art_no_aat = yes
            }

             try_build_mil_in_core_otherwise_build_in_controlled = yes
        }
    }
    

    focus = {
        id = RAJ_the_burma_road
        icon = GFX_focus_generic_road_investment
        prerequisite = { focus = RAJ_east_india_railways_dlc }
        x = -2
        y = 1
        relative_position_id = RAJ_east_india_railways_dlc
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {
            BRM = {
                is_in_faction_with = ROOT
                controls_state = 995
                controls_state = 640
                controls_state = 998
            }

            CHI = {
                any_enemy_country = {
                    is_major = yes
                    NOT = { 
                        original_tag = BRM 
                        is_in_faction_with = RAJ
                        original_tag = RAJ
                    }
                }
                exists = yes
                is_subject = no
                NOT = { has_idea = idea_RAJ_allied_equipment_support }
            }
        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}

        completion_reward = {
            CHI = {
                add_ideas = idea_RAJ_allied_equipment_support
            }
        }
    }
    

    focus = {
        id = RAJ_womens_auxiliary_air_force
        icon = GFX_focus_SOV_women_in_aviation
        prerequisite = { focus = RAJ_indian_air_force }
        x = -2
        y = 1
        relative_position_id = RAJ_indian_air_force
        
        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no



        completion_reward = {
            
            custom_effect_tooltip = idea_RAJ_indian_air_force_modify_tt
            set_variable = {
                var = RAJ_indian_air_air_accidents_factor
                value = -0.15
                tooltip = air_accidents_factor_tt  
            }
        }
    }
    

    focus = {
        id = RAJ_trainer_planes
        icon = GFX_focus_generic_air_bases
        prerequisite = { focus = RAJ_indian_air_force }
        x = 0
        y = 1
        relative_position_id = RAJ_indian_air_force
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no



        completion_reward = {
            custom_effect_tooltip = idea_RAJ_indian_air_force_modify_tt
            set_variable = {
                var = RAJ_indian_air_training_xp_gain_factor
                value = 0.1
                tooltip = air_training_xp_gain_factor_tt  
            }

            set_variable = {
                var = RAJ_indian_air_mission_xp_gain_factor
                value = 0.1
                tooltip = air_mission_xp_gain_factor_tt  #Optional. localized text with LEFT and RIGHT tokens in it, tokens will replaced by values
            }



        }
    }

    focus = {
        id = RAJ_spitfire
        icon = GFX_goal_generic_air_fighter2
        prerequisite = { focus = RAJ_trainer_planes }
        x = -2
        y = 1
        relative_position_id = RAJ_trainer_planes
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_RESEARCH FOCUS_FILTER_AIR_XP}

        completion_reward = {

            air_experience = 25
            add_tech_bonus = {
                name = RAJ_spitfire
                bonus = 1
                uses = 1
                category = light_fighter
            }
            if = {
                limit = {
                    has_dlc = "Arms Against Tyranny"
                }

                mio:RAJ_supermarine_organization = {
                    add_mio_size = 1
                }
            }
        }
    }
    

    focus = {
        id = RAJ_ground_pounder
        icon = GFX_focus_SWE_marauder_bombers
        prerequisite = { focus = RAJ_trainer_planes }
        x = 2
        y = 1
        relative_position_id = RAJ_trainer_planes
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no



        completion_reward = {
            custom_effect_tooltip = idea_RAJ_indian_air_force_modify_tt
            set_variable = {
                var = RAJ_indian_air_air_cas_present_factor
                value = 0.1
                tooltip = air_cas_present_factor_tt  
            }

            set_variable = {
                var = RAJ_indian_air_air_cas_efficiency
                value = 0.05
                tooltip = air_cas_efficiency_tt  
            }
        }
    }
    

    focus = {
        id = RAJ_douglas_dakota
        icon = GFX_goal_generic_air_bomber
        prerequisite = { focus = RAJ_trainer_planes }
        x = 4
        y = 1
        relative_position_id = RAJ_trainer_planes
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_RESEARCH}

        completion_reward = {
            add_tech_bonus = {
                name = RAJ_douglas_dakota
                bonus = 1
                uses = 1
                category = transport_planes_cat # optional 
            }

            if = {
                limit = {
                    has_dlc = "By Blood Alone"
                }
                add_tech_bonus = {
                    name = RAJ_douglas_dakota
                    uses = 1
                    ahead_reduction = 2
                    technology  = bba_strategic_airlifter # optional
                }
            }

            else = {
                add_tech_bonus = {
                    name = RAJ_douglas_dakota
                    uses = 1
                    ahead_reduction = 2
                    technology  = strategic_airlifter # optional
                }
            }
        }
    }
    

    focus = {
        id = RAJ_vultee_vengeance
        icon = GFX_focus_generic_cas_aircraft
        prerequisite = { focus = RAJ_ground_pounder  }
        x = 0
        y = 1
        relative_position_id = RAJ_ground_pounder
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_RESEARCH FOCUS_FILTER_AIR_XP}

        completion_reward = {
            if = {
                limit = {
                    has_dlc = "By Blood Alone"
                }

                add_tech_bonus = {
                    name = RAJ_spitfire
                    bonus = 1
                    uses = 1
                    category = cat_air_bombs
                }
            }
            else = {
                air_experience = 60
            }

            custom_effect_tooltip = idea_RAJ_indian_air_force_modify_tt
            set_variable = {
                var = RAJ_indian_air_air_agility_factor
                value = 0.08
                tooltip = air_agility_factor_tt  
            }
        }
    }
    

    focus = {
        id = RAJ_ordnance_factory_khamaria_jabalpur
        icon = GFX_focus_CHL_high_quality_nitrate
        prerequisite = { focus = RAJ_gun_and_shell_factory_cossipore }
        x = 1
        y = 1
        relative_position_id = RAJ_gun_and_shell_factory_cossipore
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}

        completion_reward = {
            if = {
                limit = {
                    has_dlc = "Arms Against Tyranny"
                }

                mio:RAJ_ammunition_factory_khadki_organization = {
                    add_mio_size = 1
                    unlock_mio_trait_tooltip = {
                        trait = RAJ_mio_trait_ordnance_factory_khamaria_jabalpur
                    }
                }
            }
            else = {
                upgrade_ordance_factories_no_aat = yes
            }

             
             try_build_mil_in_core_otherwise_build_in_controlled = yes
        }
    }
    

    focus = {
        id = RAJ_the_ledo_road
        icon = GFX_focus_SOV_the_road_of_life
        prerequisite = { focus = RAJ_the_burma_road }
        x = 0
        y = 1
        relative_position_id = RAJ_the_burma_road
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {
            OR = {
                controls_state = 434
                controls_state = 990
                controls_state = 432
            }
            CHI = {
                any_enemy_country = {
                    is_major = yes
                    NOT = { 
                        original_tag = BRM 
                        is_in_faction_with = RAJ
                        original_tag = RAJ
                    }
                }
                exists = yes
                is_subject = no
            }
        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = { FOCUS_FILTER_INDUSTRY }

        completion_reward = {
            
            if = {
                limit = {
                   434 = { 
                        is_owned_and_controlled_by = ROOT
                        infrastructure < 5 
                    }
                }
                434 = {
                    add_building_construction = {
                        type = infrastructure
                        level = 2
                        instant_build = yes
                    }
                }
            }
            else = {
                random_controlled_state = {
                    limit = { 
                        infrastructure < 5 
                    }
                    add_building_construction = {
                        type = infrastructure
                        level = 2
                        instant_build = yes
                    }
                }
            }
            
            if = {
                limit = {
                   990 = { 
                        is_owned_and_controlled_by = ROOT
                        infrastructure < 5 
                   }
                }
                990 = {
                    add_building_construction = {
                        type = infrastructure
                        level = 2
                        instant_build = yes
                    }
                }
            }
            else = {
                random_controlled_state = {
                    limit = { 
                        infrastructure < 5 
                    }
                    add_building_construction = {
                        type = infrastructure
                        level = 2
                        instant_build = yes
                    }
                }
            }
            
            
            if = {
                limit = {
                   432 = { 
                        is_owned_and_controlled_by = ROOT
                        infrastructure < 5 
                   }
                }
                432 = {
                    add_building_construction = {
                        type = infrastructure
                        level = 2
                        instant_build = yes
                    }
                }
            }
            else = {
                random_controlled_state = {
                    limit = { 
                        infrastructure < 5 
                    }
                    add_building_construction = {
                        type = infrastructure
                        level = 2
                        instant_build = yes
                    }
                }
            }

        }
    }
    

    focus = {
        id = RAJ_long_range_escorts
        icon = GFX_focus_generic_multi_role_aircraft
        prerequisite = { focus = RAJ_trainer_planes }
        x = 2
        y = 0
        relative_position_id = RAJ_spitfire
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_RESEARCH FOCUS_FILTER_AIR_XP}

        completion_reward = {
            air_experience = 25
            add_tech_bonus = {
                name = RAJ_long_range_escorts
                bonus = 1
                uses = 1
                category = cat_heavy_fighter
            }

        }
    }
    

    focus = {
        id = RAJ_british_air_experts
        icon = GFX_focus_generic_air_partners
        prerequisite = { focus = RAJ_spitfire focus = RAJ_long_range_escorts }
        x = 1
        y = 1
        relative_position_id = RAJ_spitfire
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_AIR_XP}

        completion_reward = {
            custom_effect_tooltip = idea_RAJ_indian_air_force_modify_tt
            add_to_variable = {
                var = RAJ_indian_air_force_xp_gain
                value = 0.1
                tooltip = experience_gain_air_tt  #Optional. localized text with LEFT and RIGHT tokens in it, tokens will replaced by values
            }
        }
    }

    focus = {
        id = RAJ_special_operations_executive
        icon = GFX_focus_generic_paratrooper 
        prerequisite = { focus = RAJ_british_air_experts }
        x = -1
        y = 1
        relative_position_id = RAJ_british_air_experts
        
        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no



        completion_reward = {
            if = {
                limit = {
                    NOT = { has_tech = paratroopers }
                }
                set_technology = {
                    paratroopers = 1
                    popup = no
                }
            }
            if = {
                limit = {
                    has_dlc = "No Step Back"
                }

                add_doctrine_cost_reduction = {
                    cost_reduction = 0.75
                    uses = 1
                    category = special_forces_doctrine
                }
            }
            else = {
                army_experience = 15
                navy_experience = 15
                air_experience = 15
            }
            
            army_experience = 30
            navy_experience = 30
            air_experience = 30
        }
    }
    

    focus = {
        id = RAJ_the_ordnance_factories_board
        icon = GFX_focus_eng_concessions_to_the_trade_unions
        prerequisite = { focus = RAJ_cordite_factory_aruvankadu_tamil_nadu focus = RAJ_ordnance_factory_kanpur_uttar_pradesh }
        x = -2
        y = 1
        relative_position_id = RAJ_cordite_factory_aruvankadu_tamil_nadu
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

            if = {
                limit = {
                    NOT = { has_dlc = "Arms Against Tyranny" }
                }
                has_completed_focus = RAJ_rifle_factory_ishapore_west_bengal
                has_completed_focus = RAJ_gun_and_shell_factory_cossipore
            }

            if = {
                limit = {
                     has_dlc = "Arms Against Tyranny"
                }
                OR = {
                    mio:RAJ_ammunition_factory_khadki_organization = { has_mio_size > 7  }                   
                    mio:RAJ_ordnance_factory_kanpur_organization  = { has_mio_size > 7  } 
                    mio:RAJ_ordnance_factory_medak_organization  = { has_mio_size > 7  }  
                    mio:RAJ_vickers_armstrong_organization  = { has_mio_size > 7  }   
                }
            }
            
        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}

        completion_reward = {
            if = {
                limit = {
                    has_dlc = "Arms Against Tyranny"
                }

                unlock_mio_policy_tooltip = {
                    policy = mio_policy_RAJ_general_ordnance_factory_board
                }
            }
            else = {
                try_build_mil_in_core_otherwise_build_in_controlled_2_mil = yes
            }

            try_build_mil_in_core_otherwise_build_in_controlled_2_mil = yes
            try_build_mil_in_core_otherwise_build_in_controlled = yes
        }
    }
    

    focus = {
        id = RAJ_smiling_buddah
        icon = GFX_focus_smiling_buddha
        prerequisite = { focus = RAJ_british_air_experts focus = RAJ_abolish_agrarian_society_criteria }
        x = -3
        y = 1
        relative_position_id = RAJ_british_air_experts
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_RESEARCH}

        completion_reward = {
            if = {
                limit = {
                    NOT = {
                        has_tech = atomic_research
                    }
                }
                add_tech_bonus = {
                    name = RAJ_the_smiling_buddha
                    bonus = 3.0
                    uses = 1
                    category = nuclear
                }
                add_breakthrough_progress = {
                    specialization = specialization_nuclear
                    value = 0.5
                }
            }
            else = {
                add_breakthrough_progress = {
                    specialization = specialization_nuclear
                    value = 1
                }
            }

        }
    }
    

    focus = {
        id = RAJ_royal_indian_air_force_dlc
        icon = GFX_focus_eng_special_air_service
        prerequisite = { focus = RAJ_british_air_experts }
        x = 1
        y = 1
        relative_position_id = RAJ_british_air_experts
        
        cost = 6

        ai_will_do = {
            factor = 1
        }

        available = {

        }
        
        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_AIR_XP}

        completion_reward = {
            air_experience = 100
            add_doctrine_cost_reduction = {
                cost_reduction = 0.5
                uses = 2
                category = air_doctrine
            }
        }
    }

    focus = {
        id = RAJ_royal_indian_navy_dlc
        icon = GFX_goal_generic_navy_doctrines_tactics
        #prerequisite = { focus = RAJ_expand_mazagon_dock_dlc
        #focus = RAJ_found_scindia_shipyard_dlc }
        x = 9
        y = 0
        relative_position_id = RAJ_indian_air_force

        cost = 5

        ai_will_do = {
            factor = 1
        }

        available = {

        }

        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = { FOCUS_FILTER_RESEARCH }
        completion_reward = {
            add_dynamic_modifier = {
                modifier = idea_RAJ_royal_indian_navy
            }
            set_variable = {
                var = RAJ_royal_indian_navy_xp_gain
                value = 0.05
                tooltip = experience_gain_navy_tt  #Optional. localized text with LEFT and RIGHT tokens in it, tokens will replaced by values
            }
        }
    }

    focus = {
        id = RAJ_expand_mazagon_dock_dlc
        icon = GFX_goal_generic_construct_naval_dockyard
        prerequisite = { focus = RAJ_royal_indian_navy_dlc }
        x = -2
        y = 1
        relative_position_id = RAJ_royal_indian_navy_dlc

        cost = 6

        ai_will_do = {
            factor = 20
        }

        available = {

        }

        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_NAVY_XP }
        complete_tooltip = {
            random_state = {
                limit = {
                    has_state_flag = RAJ_expand_mazagon_dock_dlc
                }
                add_extra_state_shared_building_slots = 2
                add_building_construction = {
                    type = dockyard
                    level = 2
                    instant_build = yes
                }
                if = {
                    limit = { has_state_flag = RAJ_expand_mazagon_dock_dlc_NB }
                    add_building_construction = {
                        type = naval_base
                        level = 2
                        instant_build = yes
                        province = 1349
                    }
                }
            }
        }

        completion_reward = {
            navy_experience = 50
            random_owned_controlled_state = {
                prioritize = { 429 }
                limit = {
                    is_coastal = yes
                    free_building_slots = {
                        building = dockyard
                        size > 0
                        include_locked = yes
                    }
                }
                add_extra_state_shared_building_slots = 2
                add_building_construction = {
                    type = dockyard
                    level = 2
                    instant_build = yes
                }
                set_state_flag = RAJ_expand_mazagon_dock_dlc
                if = {
                    limit = { state = 429 }
                    add_building_construction = {
                        type = naval_base
                        level = 2
                        instant_build = yes
                        province = 1349
                    }
                    set_state_flag = RAJ_expand_mazagon_dock_dlc_NB
                }
            }
        }
    }

    focus = {
        id = RAJ_black_swan_sloops
        icon = GFX_focus_generic_destroyer
        prerequisite = { focus = RAJ_royal_indian_navy_dlc }
        x = 0
        y = 1
        relative_position_id = RAJ_royal_indian_navy_dlc

        cost = 6

        ai_will_do = {
            factor = 20
        }

        available = {
            if = {
                limit = {
                    has_dlc = "Man the Guns"
                }
                has_tech = basic_ship_hull_light
            }
            else = {
                has_tech = basic_destroyer
            }
        }

        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INTERNATIONAL_TRADE}

        completion_reward = {
            add_tech_bonus = {
                bonus = 0.5
                uses = 2
                category = cat_anti_air # optional 
                # technology  = technology_id # optional
            }
            if = {
                limit = {
                    has_dlc = "Man the Guns"
                }

                create_equipment_variant = {
                    name = "Black Swan Class"                
                    type = ship_hull_light_2
                    modules={
                        fixed_ship_anti_air_slot=ship_anti_air_2
                        fixed_ship_radar_slot=ship_sonar_1
                        fixed_ship_engine_slot=light_ship_engine_2
                        mid_1_custom_slot=ship_anti_air_1
                        rear_1_custom_slot=ship_depth_charge_1
                        fixed_ship_battery_slot=ship_light_battery_1
                    }
                }

                create_ship = {
                    type = ship_hull_light_2 
                    equipment_variant = "Black Swan Class" 
                    creator = RAJ
                    exclude_refitting = no
                }
            }
            else = {
                create_equipment_variant = {
                    name = "Black Swan Class"
                    type = destroyer_2
                    upgrades = {
                        ship_reliability_upgrade = 0
                        ship_engine_upgrade = 0
                        ship_gun_upgrade = 0
                        ship_anti_air_upgrade = 2
                    }
                    obsolete = yes
                }
                create_ship = {
                    type = destroyer_2
                    creator = RAJ
                    equipment_variant = "Black Swan Class"
                     # optionalname = "ship_name"
                     exclude_refitting = no
                }
            }

        }
    }

    focus = {
        id = RAJ_indian_marine_corps
        icon = GFX_goal_generic_navy_battleship
        prerequisite = { focus = RAJ_royal_indian_navy_dlc }
        x = 2
        y = 1
        relative_position_id = RAJ_royal_indian_navy_dlc

        cost = 5

        available = {

        }

        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_RESEARCH}

        completion_reward = {
            add_doctrine_cost_reduction = {
                cost_reduction = 0.3
                uses = 1
                category = naval_doctrine
            }
            add_tech_bonus = {
                bonus = 0.3
                uses = 1
                category = marine_tech
            }
        }
    }

    focus = {
        id = RAJ_madras_ship_repair_factories
        icon = GFX_focus_generic_refit_civilian_ships
        prerequisite = { focus = RAJ_indian_marine_corps }
        x = 4
        y = 2
        relative_position_id = RAJ_royal_indian_navy_dlc

        cost = 5

        available = {

        }

        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}

        completion_reward = {
            random_owned_controlled_state = {
                prioritize = { 423 }
                limit = {
                    is_coastal = yes
                }
                add_extra_state_shared_building_slots = 1
                add_building_construction = {
                    type = dockyard
                    level = 1
                    instant_build = yes
                }
            }
        }
    }

    focus = {
        id = RAJ_found_scindia_shipyard_dlc
        icon = GFX_goal_generic_construct_naval_dockyard
        prerequisite = { focus = RAJ_black_swan_sloops focus = RAJ_expand_mazagon_dock_dlc }
        x = 1
        y = 2
        relative_position_id = RAJ_royal_indian_navy_dlc

        cost = 6

        ai_will_do = {
            factor = 20
        }

        available = {

        }

        bypass = {

        }

        mutually_exclusive = { focus = RAJ_obtain_british_naval_contracts }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = { FOCUS_FILTER_INDUSTRY FOCUS_FILTER_NAVY_XP }
        complete_tooltip = {
            random_state = {
                limit = {
                    has_state_flag = RAJ_found_scindia_shipyard_dlc
                }
                add_extra_state_shared_building_slots = 2
                add_building_construction = {
                    type = dockyard
                    level = 2
                    instant_build = yes
                }
                if = {
                    limit = { has_state_flag = RAJ_found_scindia_shipyard_dlc_NB }
                    add_building_construction = {
                        type = naval_base
                        level = 2
                        instant_build = yes
                        province = 10255
                    }
                }
            }
        }

        completion_reward = {
            navy_experience = 25
            random_owned_controlled_state = {
                prioritize = { 426 }
                limit = {
                    is_coastal = yes
                    free_building_slots = {
                        building = dockyard
                        size > 0
                        include_locked = yes
                    }
                }
                add_extra_state_shared_building_slots = 2
                add_building_construction = {
                    type = dockyard
                    level = 2
                    instant_build = yes
                }
                set_state_flag = RAJ_found_scindia_shipyard_dlc
                if = {
                    limit = { state = 426 }
                    add_building_construction = {
                        type = naval_base
                        level = 2
                        instant_build = yes
                        province = 10255
                    }
                    set_state_flag = RAJ_found_scindia_shipyard_dlc_NB
                }
            }
        }
    }

    focus = {
        id = RAJ_dominate_the_bay_of_bengal
        icon = GFX_goal_generic_navy_submarine
        prerequisite = { focus = RAJ_found_scindia_shipyard_dlc }
        x = 1
        y = 3
        relative_position_id = RAJ_royal_indian_navy_dlc

        cost = 5

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_RESEARCH}

        completion_reward = {
            add_tech_bonus = {
                bonus = 0.5
                uses = 1
                category = mio_cat_tech_all_destroyer_and_modules
            }
            add_tech_bonus = {
                bonus = 1.0
                uses = 1
                category = mio_cat_tech_all_submarine_and_modules
            }
        }

    }

    focus = {
        id = RAJ_indian_cruiser_development
        icon = GFX_focus_generic_cruiser2
        prerequisite = { focus = RAJ_found_scindia_shipyard_dlc }
        x = 3
        y = 3
        relative_position_id = RAJ_royal_indian_navy_dlc

        cost = 5

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_RESEARCH}

        completion_reward = {
            add_tech_bonus = {
                bonus = 1
                uses = 1
                category = mio_cat_tech_all_cruiser_and_modules
            }
        }

    }

    focus = {
        id = RAJ_womens_royal_indian_naval_service
        icon = GFX_focus_generic_women_in_military
        prerequisite = { focus = RAJ_indian_cruiser_development }
        x = 4
        y = 4
        relative_position_id = RAJ_royal_indian_navy_dlc

        cost = 5

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = { FOCUS_FILTER_MANPOWER FOCUS_FILTER_NAVY_XP }

        completion_reward = {
            add_ideas = RAJ_womens_royal_indian_naval_service_spirit
            navy_experience = 25
        }

    }

    focus = {
        id = RAJ_increase_funding_for_the_GRSE
        icon = GFX_focus_generic_economic_recovery
        prerequisite = { focus = RAJ_dominate_the_bay_of_bengal focus = RAJ_indian_cruiser_development }
        x = 1
        y = 4
        relative_position_id = RAJ_royal_indian_navy_dlc

        cost = 6

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INDUSTRY}

        completion_reward = {
            random_owned_controlled_state = {
                prioritize = { 431 }
                limit = {
                    is_coastal = yes
                }
                add_extra_state_shared_building_slots = 3
                add_building_construction = {
                    type = dockyard
                    level = 3
                    instant_build = yes
                }
            }
        }

    }

    focus = {
        id = RAJ_obtain_british_naval_contracts
        icon = GFX_focus_RAJ_british_investors
        prerequisite = { focus = RAJ_black_swan_sloops focus = RAJ_expand_mazagon_dock_dlc }
        x = -1
        y = 2
        relative_position_id = RAJ_royal_indian_navy_dlc

        cost = 5

        available = {
            is_in_faction_with = ENG
        }

        mutually_exclusive = { focus = RAJ_found_scindia_shipyard_dlc }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INTERNATIONAL_TRADE}

        completion_reward = {
            ENG = {
                country_event = { id = GOE_RAJ_navy.1 days = 1 }
            }
        }

    }

    focus = {
        id = RAJ_purchase_decomissioned_british_ships
        icon = GFX_focus_generic_navy_battleship2
        prerequisite = { focus = RAJ_obtain_british_naval_contracts }
        x = -1
        y = 3
        relative_position_id = RAJ_royal_indian_navy_dlc

        cost = 6

        available = {
            has_idea = RAJ_british_naval_agreement
        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INTERNATIONAL_TRADE}

        completion_reward = {
            ENG = {
                country_event = { id = GOE_RAJ_navy.7 days = 1 }
            }
        }
    }

    focus = {
        id = RAJ_request_transfer_of_british_commanders
        icon = GFX_focus_generic_naval_discipline
        prerequisite = { focus = RAJ_obtain_british_naval_contracts }
        x = -3
        y = 3
        relative_position_id = RAJ_royal_indian_navy_dlc

        cost = 5

        available = {
            has_idea = RAJ_british_naval_agreement
        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_MILITARY_CHARACTER}

        completion_reward = {
            ENG = {
                country_event = { id = GOE_RAJ_navy.4 days = 1 }
            }
        }
    }

    focus = {
        id = RAJ_obtain_modern_ship_contracts
        icon = GFX_goal_generic_navy_cruiser
        prerequisite = { focus = RAJ_purchase_decomissioned_british_ships }
        x = -1
        y = 4
        relative_position_id = RAJ_royal_indian_navy_dlc

        cost = 6

        available = {
            has_idea = RAJ_british_naval_agreement 
            ENG = {
                if = {
                    limit = { has_dlc = "Man the Guns" }
                    has_tech = basic_ship_hull_cruiser
                }
                else = {
                    has_tech = basic_light_cruiser
                }
            }
        }

        bypass = {
            ENG = {
                NOT = {
                    if = {
                        limit = { has_dlc = "Man the Guns" }
                        has_tech = basic_ship_hull_cruiser
                    }
                    else = {
                        has_tech = basic_light_cruiser
                    }
                }
            }
        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = {FOCUS_FILTER_INTERNATIONAL_TRADE}

        completion_reward = {
            ENG = {
                country_event = { id = GOE_RAJ_navy.10 days = 1 }
            }
        }
    }

    focus = {
        id = RAJ_modernizing_navy_dlc
        icon = GFX_focus_generic_naval_invasion
        prerequisite = { focus = RAJ_obtain_modern_ship_contracts focus = RAJ_increase_funding_for_the_GRSE }
        x = 0
        y = 5
        relative_position_id = RAJ_royal_indian_navy_dlc

        cost = 6

        ai_will_do = {
            factor = 25
        }

        available = {

        }

        bypass = {

        }

        cancel_if_invalid = yes
        continue_if_invalid = no
        available_if_capitulated = no

        search_filters = { FOCUS_FILTER_INDUSTRY }

        completion_reward = {
            add_ideas = RAJ_modernized_navy_spirit
        }
    }

}       
