commonwealth_let_raj_defend_itself = { allowed = { OR = { original_tag = ENG original_tag = NZL original_tag = AST original_tag = SAF original_tag = FRA original_tag = CAN original_tag = POL original_tag = USA original_tag = BEL original_tag = COG original_tag = ETH original_tag = IRQ } } enable = { #OR = { #is_historical_focus_on = yes #RAJ = { # is_ai = no #players are usually better at defending themselves #} #} is_in_faction_with = RAJ RAJ = { OR = { has_war_with = JAP } is_in_faction_with = ENG surrender_progress < 0.5 } } abort_when_not_enabled = yes ai_strategy = { type = dont_defend_ally_borders id = RAJ value = 300 } ai_strategy = { type = dont_defend_ally_borders id = BRM value = 300 } ai_strategy = { type = area_priority id = burma value = -60 } ai_strategy = { type = front_unit_request area = burma value = -80 } ai_strategy = { type = put_unit_buffers # burmese states states = { 288 640 430 997 999 993 994 995 996 } ratio = 0 area = burma subtract_invasions_from_need = no subtract_fronts_from_need = no } } RAJ_communist_prioritize_decisions = { # ensures the AI actually has PP before going communist and doesnt waste it all allowed = { original_tag = RAJ OR = { has_country_flag = RAJ_AI_RANDOM_INDIA_COMMUNISM has_country_flag = RAJ_AI_RANDOM_INDIA_COMMUNISM_URBAN has_game_rule = { rule = RAJ_ai_behavior option = GOE_INDIA_COMMUNISM } has_game_rule = { rule = RAJ_ai_behavior option = GOE_INDIA_COMMUNISM_URBAN } } } enable = { NOT = { has_government = communism } } abort_when_not_enabled = yes ai_strategy = { type = pp_spend_amount id = decision value = 10 } ai_strategy = { type = pp_spend_priority id = decision value = 100 } } RAJ_communist_pakistan_surrounded = { allowed = { original_tag = RAJ OR = { has_country_flag = RAJ_AI_RANDOM_INDIA_COMMUNISM has_country_flag = RAJ_AI_RANDOM_INDIA_COMMUNISM_URBAN has_game_rule = { rule = RAJ_ai_behavior option = GOE_INDIA_COMMUNISM } has_game_rule = { rule = RAJ_ai_behavior option = GOE_INDIA_COMMUNISM_URBAN } } } enable = { PAK = { exists = yes NOT = { is_subject_of = RAJ } } RAJ = { has_war = no } } abort_when_not_enabled = yes ai_strategy = { type = prepare_for_war id = PAK value = 10 } } RAJ_communist_i_dont_want_a_navy = { allowed = { original_tag = RAJ OR = { has_country_flag = RAJ_AI_RANDOM_INDIA_COMMUNISM has_country_flag = RAJ_AI_RANDOM_INDIA_COMMUNISM_URBAN has_game_rule = { rule = RAJ_ai_behavior option = GOE_INDIA_COMMUNISM } has_game_rule = { rule = RAJ_ai_behavior option = GOE_INDIA_COMMUNISM_URBAN } } } enable = { date < 1941.1.1 } abort_when_not_enabled = yes ai_strategy = { type = dockyard_to_military_factory_ratio value = 0 } } RAJ_communist_agrarian_dont_waste_focus_bonuses = { allowed = { original_tag = RAJ OR = { has_country_flag = RAJ_AI_RANDOM_INDIA_COMMUNISM has_game_rule = { rule = RAJ_ai_behavior option = GOE_INDIA_COMMUNISM } } } enable = { has_completed_focus = RAJ_every_man_a_leader } abort = { always = no } ai_strategy = { type = research_weight_factor id = tech_mountaineers value = 2000000 } ai_strategy = { type = build_army id = mountaineers value = 100 } }