capital = 439
if = {
	limit = {
		has_dlc = "Graveyard of Empires"
	}
	set_oob = "RAJ_1936_GOE"
}
if = {
	limit = {
		NOT = { has_dlc = "Graveyard of Empires" }
	}
	set_oob = "RAJ_1936"	
}

if = {
	limit = { has_dlc = "By Blood Alone" }
		set_air_oob = "RAJ_1936_air_bba"
		set_technology = {
			aa_lmg = 1
			engines_1 = 1
			aircraft_construction = 1
			iw_small_airframe = 1
		}
	else = {
		set_air_oob = "RAJ_1936_air_legacy"
		set_technology = {
			CAS1 = 1
			early_fighter = 1
		}
	}
}

set_stability = 0.6
set_war_support = 0.1
# Starting tech
set_technology = {
	infantry_weapons = 1
	infantry_weapons1 = 1
	tech_trucks = 1
	tech_support = 1		
	tech_engineers = 1
	tech_recon = 1
	fuel_silos = 1
	fuel_refining = 1
	basic_train = 1
	gw_artillery = 1
}

recruit_character = RAJ_lord_linlithgow
recruit_character = RAJ_v_d_savarkar
recruit_character = RAJ_p_krishna_pillai
recruit_character = RAJ_b_p_sitaramayya
recruit_character = RAJ_noel_beresfordpeirse
recruit_character = RAJ_frank_messervy
recruit_character = RAJ_douglas_gracey
recruit_character = RAJ_herbert_fitzherbert
recruit_character = RAJ_w_h_gould_bradford
recruit_character = RAJ_william_e_parry
recruit_character = RAJ_mohan_singh
recruit_character = RAJ_mehar_singh
recruit_character = RAJ_reginald_savory
recruit_character = RAJ_bruce_w_mcpherson
recruit_character = RAJ_aspy_merwan_engineer
recruit_character = RAJ_arjan_singh_vibhusan
recruit_character = RAJ_subroto_mukherjee
recruit_character = RAJ_arthur_a_barrett
recruit_character = RAJ_bhaskar_soman
recruit_character = RAJ_rajendra_prasad
recruit_character = RAJ_ravindra_darshan_singh
recruit_character = RAJ_ram_dass_katari
recruit_character = RAJ_archibald_wavell
recruit_character = RAJ_louis_mountbatten
recruit_character = RAJ_kodandera_cariappa
recruit_character = RAJ_ram_singh_thakur
recruit_character = RAJ_bahadur_jayla_of_khoch_bahur
recruit_character = RAJ_anyang_bhula
recruit_character = RAJ_john_edward_golightly
recruit_character = RAJ_bhimrao_ramji_ambedkar
recruit_character = RAJ_chakravarti_rajagopalachari
recruit_character = RAJ_agha_khan_iii
recruit_character = RAJ_subhas_chanda_bose
recruit_character = RAJ_mahatma_mohandas_gandhi
recruit_character = RAJ_sir_mohammed_iqbal
recruit_character = RAJ_john_mathai

if = {
	limit = { has_dlc = "Graveyard of Empires" }

	recruit_character = RAJ_GOE_jawaharlal_nehru 
	recruit_character = RAJ_GOE_tara_singh
	recruit_character = RAJ_GOE_ishar_singh
	recruit_character = RAJ_GOE_parkash_singh
	recruit_character = RAJ_GOE_muhammad_ali_jinnah
	recruit_character = RAJ_GOE_arcot_doraiswamy_loganadan
	recruit_character = RAJ_GOE_shah_nawaz_khan
	recruit_character = RAJ_GOE_ukkirapandi_muthuramalinga_thevar
	recruit_character = RAJ_GOE_rash_behari_bose
	recruit_character = RAJ_GOE_rajendrasinhji_jadeja 
	recruit_character = RAJ_GOE_mohammad_usman
	recruit_character = RAJ_GOE_kodandera_subayya_thimayya
	recruit_character = RAJ_GOE_sam_manekshaw
	recruit_character = RAJ_GOE_muhammad_ayub_khan
	recruit_character = RAJ_GOE_yahya_khan
	recruit_character = RAJ_GOE_montagu_stopford
	recruit_character = RAJ_GOE_mohammed_zaman_kiani
	recruit_character = RAJ_GOE_subcontinent_chaos
	recruit_character = RAJ_GOE_the_board_of_directors
	recruit_character = RAJ_GOE_sarat_bose 
	recruit_character = RAJ_freeman_freeman_thomas
	recruit_character = RAJ_jim_corbett
	recruit_character = RAJ_puran_chand_joshi
	recruit_character = RAJ_bhalchandra_trimbak_ranadive
	recruit_character = RAJ_elamkulam_manakkal_sakaran_namboodiripad
	recruit_character = RAJ_shripad_amrit_dange
	recruit_character = RAJ_sahajanand_saraswati
	recruit_character = RAJ_GOE_g_d_birla
	recruit_character = RAJ_GOE_j_r_d_tata
	recruit_character = RAJ_GOE_william_rhodes_davis
	recruit_character = RAJ_GOE_prescott_bush
	recruit_character = RAJ_GOE_m_n_roy
	recruit_character = RAJ_mirza_khurshid_jah_bahadur
	recruit_character = RAJ_GOE_mughal_army_command_1
	recruit_character = RAJ_GOE_mughal_army_command_2
	recruit_character = RAJ_GOE_mughal_army_command_3
	recruit_character = RAJ_GOE_mughal_army_command_4
	recruit_character = RAJ_GOE_mughal_army_command_5
	recruit_character = RAJ_GOE_mughal_theorist
	recruit_character = RAJ_GOE_mughal_navy_guy
	recruit_character = RAJ_GOE_mughal_air_guy
	recruit_character = RAJ_intel_generic
	recruit_character = RAJ_cap_industry_mughal
	recruit_character = RAJ_mughal_industrialist
	recruit_character = RAJ_silent_mughal
	recruit_character = RAJ_backroom_mughal
	
	else = {
		recruit_character = RAJ_karam_singh_mann
	}
}


set_variable = { RAJ_agrarian_society_increment = 0.05 }
set_variable = { RAJ_war_support_increased = 0 }
set_variable = { RAJ_hindu_mahasabha_released = 0.04 }
set_variable = { RAJ_hindu_mahasabha_counter = 0 }

if = {
	limit = {
		has_dlc = "Together for Victory"
	}
	recruit_character = RAJ_homi_j_bhabha
	recruit_character = RAJ_lakshmi_sahgal
	recruit_character = RAJ_orde_wingate
	recruit_character = RAJ_kodandera_madappa_cariappa
	recruit_character = RAJ_kodandera_subayya_thimayya
	recruit_character = RAJ_jayanto_nath_chaudhuri
}


if = {
	limit = {
		not = { has_dlc =  "Man the Guns" }
	}
	set_technology = {
		transport = 1
	}
}

if = {
	limit = {
		has_dlc = "Man the Guns"
	}
	set_technology = {
		mtg_transport = 1
	}
}

if = {
	limit = {
		has_dlc = "Battle for the Bosporus"
	}
	set_technology = { camelry = 1 }
}

if = {
	limit = { 
		has_dlc = "Together for Victory" 
		
	}

	if = {
		limit = { NOT = { has_dlc = "Graveyard of Empires" } }
		add_ideas = RAJ_agrarian_society
		
	}

	add_ideas = {
		RAJ_princely_states
		RAJ_marginalized_muslim_community
		RAJ_risk_of_famine
	}

	add_to_tech_sharing_group = commonwealth_research
}

if = {
	limit = {
		has_dlc = "Graveyard of Empires"
	}
	add_dynamic_modifier = { modifier = idea_RAJ_agrarian_society } 		
	set_variable = { RAJ_agrarian_society_conscription_factor = -0.72 } #3
	set_variable = { RAJ_agrarian_society_mobilization_laws_cost_factor = 2.16 } #9
	set_variable = { RAJ_agrarian_society_mobilization_speed = -0.72 } #3
	add_ideas = idea_RAJ_great_depression_1

}

if = {
	limit = {
		NOT = { has_dlc = "No Step Back" }
	}
	set_technology = {
		gwtank = 1
	}
}
if = {
	limit = {
		has_dlc = "No Step Back"
	}
	set_technology = {
		gwtank_chassis = 1
	}
}

set_convoys = 20

set_cosmetic_tag = RAJ_UK # British Raj

640 = { #Mandalay
	add_dynamic_modifier = { modifier = dense_rural_infrastructure }
}
432 = { #Assam
	add_dynamic_modifier = { modifier = dense_rural_infrastructure }
}
427 = { #Hyderabad
	add_dynamic_modifier = { modifier = dense_rural_infrastructure }
}
436 = { #Jabalpur
	add_dynamic_modifier = { modifier = dense_rural_infrastructure }
}
437 = { #Indore
	add_dynamic_modifier = { modifier = dense_rural_infrastructure }
}
433 = { #Rajahsthan
	add_dynamic_modifier = { modifier = dense_rural_infrastructure }
}

1939.1.1 = {
	
	if = {
		limit = {
			has_dlc = "Together for Victory"
			NOT = {
				has_dlc = "Graveyard of Empires"
			}
		}
		complete_national_focus = RAJ_lessons_of_the_great_war
		complete_national_focus = RAJ_vickers_berthier_gun
		complete_national_focus = RAJ_army_motorization
		complete_national_focus = RAJ_british_pilot_training
		complete_national_focus = RAJ_great_indian_peninsula_railway
		complete_national_focus = RAJ_east_india_railways
		complete_national_focus = RAJ_found_scindia_shipyard
		complete_national_focus = RAJ_industrial_expansion
		complete_national_focus = RAJ_ishapore_arsenal
	}

	if = {
		limit = {
			has_dlc = "Graveyard of Empires"
		}
		complete_national_focus = RAJ_provincial_autonomy
		complete_national_focus = RAJ_purna_swaraj
		complete_national_focus = RAJ_uplifting_the_people_of_india
		complete_national_focus = RAJ_tenancy_reforms
		complete_national_focus = RAJ_debt_relief
		complete_national_focus = RAJ_national_planning_committee
		complete_national_focus = RAJ_form_a_federal_court
		complete_national_focus = RAJ_litteracy_effort
		complete_national_focus = RAJ_indo_centric_curriculum
		complete_national_focus = RAJ_all_india_students_federation
		complete_national_focus = RAJ_swadeshi_movement
		complete_national_focus = RAJ_khadi_movement
		complete_national_focus = RAJ_boycott_british_made_goods
		complete_national_focus = RAJ_local_resistance_to_land_taxes
		complete_national_focus = RAJ_agricultural_cooperatives
		complete_national_focus = RAJ_ammunition_factory_khadki
		complete_national_focus = RAJ_military_pensions
		complete_national_focus = RAJ_royal_indian_artillery_dlc
		complete_national_focus = RAJ_specialized_dietary_requirement
	}

	add_political_power = 1198
	add_command_power = 100
	oob = "RAJ_1939"
	if = {
		limit = { has_dlc = "By Blood Alone" }
			set_air_oob = "RAJ_1939_air_bba"
		else = {
			set_air_oob = "RAJ_1939_air_legacy"
			set_technology = {
				early_fighter = 1
				fighter1 = 1
			}
		}
	}
	#generic focuses
	complete_national_focus = army_effort
	complete_national_focus = equipment_effort
	complete_national_focus = motorization_effort
	complete_national_focus = aviation_effort
	complete_national_focus = naval_effort
	complete_national_focus = large_navy
	complete_national_focus = industrial_effort
	complete_national_focus = construction_effort
	complete_national_focus = production_effort

	add_ideas = {
		#laws
		volunteer_only
		low_economic_mobilisation
	}

	
	set_technology = {

		#electronics
		electronic_mechanical_engineering = 1
		radio = 1
		cavity_magnatron = 1
		mechanical_computing = 1
		computing_machine = 1
		basic_encryption = 1
		basic_decryption = 1

		#industry
		basic_machine_tools = 1
		improved_machine_tools = 1
		advanced_machine_tools = 1
		fuel_refining2 = 1
		construction1 = 1
		construction2 = 1
		construction3 = 1
		dispersed_industry = 1
		dispersed_industry2 = 1
		dispersed_industry3 = 1
	}
	complete_special_project = {
		project = sp:sp_air_radar
	}
}

set_politics = {
	ruling_party = neutrality
	last_election = "1935.11.14"
	election_frequency = 48
	elections_allowed = no
}
set_popularities = {
	democratic = 17
	fascism = 2
	communism = 1
	neutrality = 80
}

1945.1.1 = {
	oob = "RAJ_1945"
	add_timed_idea = { idea = RAJ_burmese_campaign_2 days = 120 }
}

1945.3.1 = {
	oob = "RAJ_1945_3_6"
}

1945.4.1 = {
	oob = "RAJ_1939"
	add_timed_idea = { idea = RAJ_burmese_campaign_2 days = 117 }
}

1945.4.26 = {
	oob = "RAJ_1945_4_27"
}



if = {
	limit = {
		has_dlc = "La Resistance"
	}
	create_operative_leader = {
		name = "Noor Inayat Khan"
		GFX = GFX_portrait_noor_inayat_khan
		traits = {  }
		bypass_recruitment = no
		available_to_spy_master = yes
		female = yes
		nationalities = { RAJ }
	}
}

#432 = {
#	add_dynamic_modifier = {
#		modifier = malaria
#	}
#}
#434 = {
#	add_dynamic_modifier = {
#		modifier = malaria
#	}
#}
#640 = {
#	add_dynamic_modifier = {
#		modifier = malaria
#	}
#}
#
#288 = {
#	add_dynamic_modifier = {
#		modifier = malaria
#	}
#}

every_owned_state = {
	limit = { NOT = { state = 992 } } #province of Áden
	ROOT = {
		add_to_array = { array = owned_states_at_game_start value = PREV }
	}
}

set_variable = { famine_reduction = 0 }
set_variable = { RAJ_resistance_activity_independence_movement = 0.02 }
set_variable = { RAJ_resistance_target_independence_movement = 0.02 }
set_variable = { RAJ_autonomy_gain_independence_movement = 0.3 }

#Tea exports
set_variable = { RAJ_autonomy_gain_tea_exports = 0 }
set_variable = { RAJ_building_speed_tea_exports = 0 }
set_variable = { RAJ_times_expanded_tea_exports = 0 }



set_variable = { RAJ_famine_spread_times_max = 30 } #months
set_variable = { RAJ_famine_spread_times_min = 18 }


set_variable = { RAJ_times_shield_has_blocked_spread = 0 }
set_variable = { RAJ_famine_reduction_from_shield = 0 }
set_variable = { RAJ_famine_political_power_factor = 0 }
set_variable = { RAJ_famine_stability_factor = 0 }
set_variable = { RAJ_famine_shield = 0 }
set_variable = { RAJ_famine_spreads = 100 }


set_variable = { RAJ_agrarian_society_experience_gain_army_factor_offices_max = -5  }
set_variable = { RAJ_agrarian_society_conscription_factor_offices_max  = 6  }
set_variable = { RAJ_agrarian_society_mobilization_speed_offices_max  = 15  }
set_variable = { RAJ_agrarian_society_mobilization_laws_cost_factor_offices_max  = -15  }

multiply_variable = { RAJ_agrarian_society_experience_gain_army_factor_offices_max = 4  }
multiply_variable = { RAJ_agrarian_society_conscription_factor_offices_max  = 4  }
multiply_variable = { RAJ_agrarian_society_mobilization_speed_offices_max  = 4 }
multiply_variable = { RAJ_agrarian_society_mobilization_laws_cost_factor_offices_max  = 4  }

set_variable = { RAJ_fyp_stability_factor = 0 }
set_variable = { RAJ_fyp_production_speed_buildings_factor = 0 }
set_variable = { RAJ_fyp_consumer_goods_factor = 0 }
set_variable = { RAJ_fyp_research_speed_factor = 0 }
set_variable = { RAJ_fyp_production_speed_industrial_complex_factor = 0 }
set_variable = { RAJ_fyp_production_speed_arms_factory_factor = 0 }
set_variable = { RAJ_fyp_production_speed_dockyard_factor = 0 }
set_variable = { RAJ_fyp_production_factory_efficiency_gain_factor = 0 }
set_variable = { RAJ_fyp_production_factory_max_efficiency_factor = 0 }

if = {
	limit = {
		is_historical_focus_on = yes
	}
	430 = {
	 	set_variable = { global.famine_state = THIS }
	}
	
}
if = {
	limit = { is_historical_focus_on = no }
	random_owned_state = {
		set_variable = { global.famine_state = THIS }	
		
	}
}

if = {
	limit = {
		has_dlc = "Graveyard of Empires"
	}

	add_equipment_to_stockpile = { 
		type = infantry_equipment_0 #for Garrison aid
		amount = 5500
		producer = RAJ
	}
}
if = {
	limit = { #If not having goe core everything again since non dlc cant recore
		NOT = { has_dlc = "Graveyard of Empires" }
	}
	every_owned_state = {
		add_core_of = RAJ
	}
}
country_event = { id = GOE_RAJ_partition.1 days = 40 random_days = 25 }
country_event = { id = GOE_RAJ.32 days = 30 random_days = 80 }

if = {
	limit = {
		NOT = { has_dlc = "Arms Against Tyranny" }
	}
	set_variable = { khadi_level = 0 }
	set_variable = { gun_and_shell_level = 0 }
}

set_variable = { RAJ_recruitment_offices_timeout_max = 12 } 
set_variable = { RAJ_agrarian_society_conscription_factor_penalty_reduction = 0.03  } 
set_variable = { RAJ_agrarian_society_conscription_factor_penalty_reduction_display = RAJ_agrarian_society_conscription_factor_penalty_reduction }
multiply_variable = { RAJ_agrarian_society_conscription_factor_penalty_reduction_display = 100 }
#multiply_variable = { RAJ_agrarian_society_conscription_factor_penalty_reduction_display = -1 }

set_variable = { RAJ_agrarian_society_mobilization_speed_penalty_reduction = 0.03  }
set_variable = { RAJ_agrarian_society_mobilization_speed_penalty_reduction_display = RAJ_agrarian_society_mobilization_speed_penalty_reduction  }
multiply_variable = { RAJ_agrarian_society_mobilization_speed_penalty_reduction_display = 100 }
#multiply_variable = { RAJ_agrarian_society_mobilization_speed_penalty_reduction_display = -1 }

set_variable = { RAJ_agrarian_society_mobilization_laws_cost_factor_penalty_reduction = -0.09 }
set_variable = { RAJ_agrarian_society_mobilization_laws_cost_factor_penalty_reduction_display = RAJ_agrarian_society_mobilization_laws_cost_factor_penalty_reduction }
multiply_variable = { RAJ_agrarian_society_mobilization_laws_cost_factor_penalty_reduction_display = 100 }
set_variable = { RAJ_railway_focuses = 0 }
#multiply_variable = { RAJ_agrarian_society_mobilization_laws_cost_factor_penalty_reduction_display = -1 }

