#AUTHOR(S): DREAD peace_action_modifiers = { PLPC_enabled_cost_PLAYER = { category = other peace_action_type = { take_states puppet liberate force_government } enable = { PLPC_is_on = yes ROOT = { is_ai = no } } cost_multiplier = 0 } PLPC_enabled_cost_AI = { category = other peace_action_type = { take_states puppet liberate force_government } enable = { PLPC_is_on = yes ROOT = { is_ai = yes any_country = { is_ai = no pc_is_on_same_side_as = ROOT } } } cost_multiplier = 100 } # CPC_disabled_cost = { # THIS DOESN'T WORK YET, ME DUM # category = other # peace_action_type = { take_states puppet liberate force_government } # enable = { # has_game_rule = { # rule = allow_chaotic_PC # option = no # } # OR = { # ROOT = { # pc_is_on_winning_side = yes # is_in_faction = no # pc_is_on_same_side_as = { # any_country = { # check_variable = { FROM.percentage_of_global_factories > ROOT.percentage_of_global_factories } # } # } # } # ROOT = { # pc_is_on_winning_side = yes # is_in_faction = yes # is_faction_leader = no # } # } # } # cost_multiplier = 50 # } # STATE IS CORE OF TAKER, WHO IS NOT A PUPPET # AI COSTS GENERIC_core_reclaim_cost_AI = { category = is_core peace_action_type = take_states enable = { ROOT = { is_ai = yes } FROM.FROM.FROM = { is_core_of = ROOT.FROM } # F.F.F IS STATE CLAIMED, ROOT.FROM IS CLAIMANT OR = { FROM = { pc_is_puppeted = no } # CLAIMANT IS NOT PUPPET FROM = { tag = ROOT } # CLAIMANT IS NEGOTIATING FOR ITSELF } } cost_multiplier = 0.25 # REDUCED BY 75% } # PLAYER COSTS GENERIC_core_reclaim_cost_PLAYER_very_easy = { category = is_core peace_action_type = take_states enable = { PLPC_is_off = yes ROOT = { is_ai = no } difficulty < 1 FROM.FROM.FROM = { is_core_of = ROOT.FROM } # F.F.F IS STATE CLAIMED, ROOT.FROM IS CLAIMANT OR = { FROM = { pc_is_puppeted = no } # CLAIMANT IS NOT PUPPET FROM = { tag = ROOT } # CLAIMANT IS NEGOTIATING FOR ITSELF } } cost_multiplier = 0.5 # REDUCED BY 50% } GENERIC_core_reclaim_cost_PLAYER_easy = { category = is_core peace_action_type = take_states enable = { PLPC_is_off = yes ROOT = { is_ai = no } difficulty > 0 difficulty < 2 FROM.FROM.FROM = { is_core_of = ROOT.FROM } # F.F.F IS STATE CLAIMED, ROOT.FROM IS CLAIMANT OR = { FROM = { pc_is_puppeted = no } # CLAIMANT IS NOT PUPPET FROM = { tag = ROOT } # CLAIMANT IS NEGOTIATING FOR ITSELF } } cost_multiplier = 0.75 # REDUCED BY 25% } GENERIC_core_reclaim_cost_PLAYER_normal = { category = is_core peace_action_type = take_states enable = { PLPC_is_off = yes ROOT = { is_ai = no } difficulty > 1 difficulty < 3 FROM.FROM.FROM = { is_core_of = ROOT.FROM } # F.F.F IS STATE CLAIMED, ROOT.FROM IS CLAIMANT OR = { FROM = { pc_is_puppeted = no } # CLAIMANT IS NOT PUPPET FROM = { tag = ROOT } # CLAIMANT IS NEGOTIATING FOR ITSELF } } cost_multiplier = 1 # BASE COST } GENERIC_core_reclaim_cost_PLAYER_hard = { category = is_core peace_action_type = take_states enable = { PLPC_is_off = yes ROOT = { is_ai = no } difficulty > 2 difficulty < 4 FROM.FROM.FROM = { is_core_of = ROOT.FROM } # F.F.F IS STATE CLAIMED, ROOT.FROM IS CLAIMANT OR = { FROM = { pc_is_puppeted = no } # CLAIMANT IS NOT PUPPET FROM = { tag = ROOT } # CLAIMANT IS NEGOTIATING FOR ITSELF } } cost_multiplier = 1.25 # INCREASED BY 25% } GENERIC_core_reclaim_cost_PLAYER_very_hard = { category = is_core peace_action_type = take_states enable = { PLPC_is_off = yes ROOT = { is_ai = no } difficulty > 3 difficulty < 5 FROM.FROM.FROM = { is_core_of = ROOT.FROM } # F.F.F IS STATE CLAIMED, ROOT.FROM IS CLAIMANT OR = { FROM = { pc_is_puppeted = no } # CLAIMANT IS NOT PUPPET FROM = { tag = ROOT } # CLAIMANT IS NEGOTIATING FOR ITSELF } } cost_multiplier = 1.5 # INCREASED BY 50% } # STATE IS CORE OF TAKER, WHO IS PUPPET, OR WILL BE AFTER PEACE CONFERENCE # AI COSTS GENERIC_our_puppet_core_reclaim_cost_AI = { category = is_core peace_action_type = take_states enable = { PLPC_is_off = yes ROOT = { is_ai = yes } FROM.FROM.FROM = { is_core_of = ROOT.FROM } # F.F.F IS STATE CLAIMED, ROOT.FROM IS CLAIMANT ROOT.FROM = { pc_is_puppeted = yes } # CLAIMANT IS PUPPET OR WILL BE DUE TO PEACE CONFERENCE } cost_multiplier = 0.5 # REDUCED BY 50% } # PLAYER COSTS GENERIC_our_puppet_core_reclaim_cost_PLAYER_very_easy = { category = is_core peace_action_type = take_states enable = { PLPC_is_off = yes ROOT = { is_ai = no } difficulty < 1 FROM.FROM.FROM = { is_core_of = ROOT.FROM } # F.F.F IS STATE CLAIMED, ROOT.FROM IS CLAIMANT ROOT.FROM = { pc_is_puppeted = yes } # CLAIMANT IS PUPPET OR WILL BE DUE TO PEACE CONFERENCE } cost_multiplier = 0.5 # REDUCED BY 50% } GENERIC_our_puppet_core_reclaim_cost_PLAYER_easy = { category = is_core peace_action_type = take_states enable = { PLPC_is_off = yes ROOT = { is_ai = no } difficulty > 0 difficulty < 2 FROM.FROM.FROM = { is_core_of = ROOT.FROM } # F.F.F IS STATE CLAIMED, ROOT.FROM IS CLAIMANT ROOT.FROM = { pc_is_puppeted = yes } # CLAIMANT IS PUPPET OR WILL BE DUE TO PEACE CONFERENCE } cost_multiplier = 0.75 # REDUCED BY 25% } GENERIC_our_puppet_core_reclaim_cost_PLAYER_normal = { category = is_core peace_action_type = take_states enable = { PLPC_is_off = yes ROOT = { is_ai = no } difficulty > 1 difficulty < 3 FROM.FROM.FROM = { is_core_of = ROOT.FROM } # F.F.F IS STATE CLAIMED, ROOT.FROM IS CLAIMANT ROOT.FROM = { pc_is_puppeted = yes } # CLAIMANT IS PUPPET OR WILL BE DUE TO PEACE CONFERENCE } cost_multiplier = 1 # NO REDUCTION } GENERIC_our_puppet_core_reclaim_cost_PLAYER_hard = { category = is_core peace_action_type = take_states enable = { PLPC_is_off = yes ROOT = { is_ai = no } difficulty > 2 difficulty < 4 FROM.FROM.FROM = { is_core_of = ROOT.FROM } # F.F.F IS STATE CLAIMED, ROOT.FROM IS CLAIMANT ROOT.FROM = { pc_is_puppeted = yes } # CLAIMANT IS PUPPET OR WILL BE DUE TO PEACE CONFERENCE } cost_multiplier = 1.25 # INCREASED BY 25% } GENERIC_our_puppet_core_reclaim_cost_PLAYER_very_hard = { category = is_core peace_action_type = take_states enable = { PLPC_is_off = yes ROOT = { is_ai = no } difficulty > 3 difficulty < 5 FROM.FROM.FROM = { is_core_of = ROOT.FROM } # F.F.F IS STATE CLAIMED, ROOT.FROM IS CLAIMANT ROOT.FROM = { pc_is_puppeted = yes } # CLAIMANT IS PUPPET OR WILL BE DUE TO PEACE CONFERENCE } cost_multiplier = 1.5 # INCREASED BY 50% } # AI CHEATS GENERIC_AI_cheaper_puppets = { category = other peace_action_type = puppet enable = { ROOT = { is_ai = yes } } cost_multiplier = 0.8 # REDUCED BY 20% } # COUNTRY SPECIFIC # NOV - collective NOV_stick_to_the_south = { category = other peace_action_type = { puppet liberate take_states force_government } enable = { ROOT = { NOV_is_novorossiya_tag = yes pc_is_on_same_side_as = SOV # is_ai = yes } FROM.FROM = { tag = UKR } ROOT.FROM.FROM.FROM = { NOT = { NOV_is_novorossiya_state = yes } } } cost_multiplier = 2 # twice as costly to stop the AI contesting SOV and losing all their war score } NOV_southern_states = { category = other peace_action_type = take_states enable = { ROOT = { NOV_is_novorossiya_tag = yes pc_is_on_same_side_as = SOV # is_ai = yes } FROM.FROM = { tag = UKR } ROOT.FROM.FROM.FROM = { NOV_is_novorossiya_state = yes } } cost_multiplier = 0.5 # makes their backyard cheaper to take by 50% } # PER PER_free_PAL = { category = other peace_action_type = liberate enable = { ROOT = { tag = PER } PER = { OR = { check_variable = { ruling_party = 8 } check_variable = { ruling_party = 9 } } } FROM.FROM.FROM = { is_core_of = PAL } } cost_multiplier = 0.75 } # SER SER_twogoslavia = { category = other peace_action_type = take_states enable = { ROOT = { tag = SER has_completed_focus = SER_reyugoslavication } FROM.FROM = { SER_is_yugoslav_nation = yes } ROOT.FROM.FROM.FROM = { SER_is_yugoslav_state = yes } } cost_multiplier = 0.5 } # SOV SOV_puppet_UKR_time = { category = other peace_action_type = puppet enable = { ROOT = { tag = SOV } FROM.FROM = { tag = UKR } ROOT.FROM.FROM.FROM = { NOT = { NOV_is_novorossiya_state = yes } } } cost_multiplier = 0.75 } SOV_leave_southern_UKR_alone = { category = other peace_action_type = puppet enable = { ROOT = { tag = SOV } FROM.FROM = { tag = UKR } ROOT.FROM.FROM.FROM = { NOV_is_novorossiya_state = yes } } cost_multiplier = 1.25 } SOV_chechen_state_taking_PLAYER = { category = other peace_action_type = { take_states } enable = { ROOT = { tag = SOV is_ai = no } ROOT.FROM.FROM.FROM = { is_core_of = CHE } } cost_multiplier = 0.1 } # USA USA_mission_accomplished_cost = { category = other peace_action_type = puppet enable = { NOT = { has_global_flag = IRQ_defeated_in_war } ROOT = { tag = USA } FROM.FROM = { tag = IRQ } ROOT.FROM.FROM.FROM = { is_core_of = IRQ } } cost_multiplier = 0.5 } # REGION SPECIFIC # MIDDLE EAST MiEa_caliphs_gone_wild = { category = ideology peace_action_type = take_states enable = { ROOT = { is_in_the_middle_east = yes has_government = fascism } FROM.FROM = { is_in_the_middle_east = yes } } cost_multiplier = 0.75 # REDUCED BY 25% } ################## ### TEST STUFF ### ################## # TEST_cheaper_to_have_close_by = { # category = other # peace_action_type = puppet # enable = { # ROOT = { is_ai = yes } # FROM = { pc_is_puppeted_by = ROOT } # FROM.FROM.FROM = { # any_neighbor_state = { # is_core_of = FROM # } # } # } # cost_multiplier = 0.8 # STACKS WITH ABOVE IN ORDER TO CREATE CHEAPER PUPPETS WITH NEATER BORDERS # } # TEST_more_expensive_non_bordering_claims = { # category = other # peace_action_type = puppet # enable = { # ROOT = { # is_ai = yes # } # FROM.FROM.FROM = { # any_neighbor_state = { # NOT = { # pc_is_puppeted_by = ROOT # } # } # } # } # cost_multiplier = 10.0 # } # FIX LATER # State isn't Core of losing country - cheaper to take colonies # generic_is_not_losers_core = { # category = is_core # peace_action_type = take_states # enable = { # FROM.FROM.FROM = { is_core_of = ROOT.FROM } # NOT = { FROM.FROM.FROM = { is_core_of = ROOT.FROM.FROM } } # } # cost_multiplier = 0.95 # Reduced by 5% # } # Is Claimed by Taker # generic_has_claim = { # category = has_claim # peace_action_type = take_states # enable = { # FROM.FROM.FROM = { is_claimed_by = ROOT.FROM } # ROOT.FROM = { # is_subject = no # pc_is_puppeted = no # } # } # cost_multiplier = 0.9 # } # Control # generic_occupies_state = { # category = occupation # peace_action_type = { take_states puppet liberate force_government } # enable = { # FROM.FROM.FROM = { is_controlled_by = ROOT } # } # cost_multiplier = 0.95 # } ### SUB/IDEOLOGY # will need reworking to fit MD # fascism_take_state = { # category = ideology # peace_action_type = take_states # enable = { # ROOT = { has_government = fascism } # } # cost_multiplier = 0.9 # } # fascism_liberate = { # category = ideology # peace_action_type = liberate # enable = { # ROOT = { has_government = fascism } # } # cost_multiplier = 1.3 # } # fascism_puppet = { # category = ideology # peace_action_type = puppet # enable = { # ROOT = { has_government = fascism } # } # cost_multiplier = 0.95 # } # communism_take_state = { # category = ideology # peace_action_type = take_states # enable = { # ROOT = { has_government = communism } # should use negotiator or taker??? # } # cost_multiplier = 1.0 # } # communism_liberate = { # category = ideology # peace_action_type = liberate # enable = { # ROOT = { has_government = communism } # } # cost_multiplier = 1.3 # } # communism_puppet = { # category = ideology # peace_action_type = puppet # enable = { # ROOT = { has_government = communism } # } # cost_multiplier = 0.9 # } # democracy_take_state = { # category = ideology # peace_action_type = take_states # enable = { # ROOT = { has_government = democratic } # NOT = { # state is not taker's core # FROM.FROM.FROM = { is_core_of = ROOT.FROM } # } # } # cost_multiplier = 1.3 # } # democracy_liberate = { # category = ideology # peace_action_type = liberate # enable = { # ROOT = { has_government = democratic } # ROOT.FROM = { has_government = democratic } # } # cost_multiplier = 0.9 # } # democracy_force_government_on_evil_fascism = { # category = ideology # peace_action_type = force_government # enable = { # ROOT = { has_government = democratic } # ROOT.FROM = { has_government = fascism } # } # cost_multiplier = 0.9 # } # democracy_force_government_on_evil_communism = { # category = ideology # peace_action_type = force_government # enable = { # ROOT = { has_government = democratic } # ROOT.FROM = { has_government = communism } # } # cost_multiplier = 0.9 # } # democracy_puppet = { # category = ideology # peace_action_type = puppet # enable = { # ROOT = { has_government = democratic } # } # cost_multiplier = 1.2 # } ### Ally has Core Modifiers # generic_major_participant_has_core = { # category = core_of_ally # peace_action_type = { take_states puppet force_government } # enable = { # any_country = { # NOT = { tag = ROOT.FROM } # pc_is_on_same_side_as = ROOT # pc_is_liberated = no # pc_is_puppeted = no # is_major = yes # ROOT.FROM.FROM.FROM = { # is_core_of = PREV # } # } # } # cost_multiplier = 3.0 # } # Test to see if we can apply Defensive War modifiers where appropriate without adding a separate wargoal # defensive_war_liberate = { # category = defensive_war # Should possibly be a "wargoal" category. Esp if we move other wrgoals to here # peace_action_type = { liberate force_government } # enable = { # OR = { # ROOT = { has_defensive_war_with = ROOT.FROM.FROM } # Attacked by country directly # AND = { # Loser probably got pulled in by another attacker # has_offensive_war = no # has_defensive_war = yes # } # } # } # cost_multiplier = 0.95 # } # defensive_war_take_state = { # category = defensive_war # peace_action_type = take_state # enable = { # OR = { # ROOT = { has_defensive_war_with = ROOT.FROM.FROM } # Attacked by country directly # AND = { # Loser probably got pulled in by another attacker # has_offensive_war = no # has_defensive_war = yes # } # } # } # cost_multiplier = 1.1 # } ### Other # belonged_to_someone_else = { # category = belonged_to_someone_else # peace_action_type = { take_states puppet force_government } # enable = { # any_country = { # NOT = { tag = ROOT.FROM } # ROOT.FROM.FROM.FROM = { # is_core_of = PREV # NOT = { # is_owned_by = PREV # } # } # } # } # cost_multiplier = 1.05 # } # dormant_national_identity = { # peace_action_type = liberate # enable = { # FROM = {} # } # cost_multiplier = 1.25 # } # war_of_independence = { # category = other # peace_action_type = { take_states puppet force_government liberate } # enable = { # FROM.FROM.FROM = { NOT = { is_core_of = ROOT } } # ROOT = {} # } # cost_multiplier = 1.25 # } # Retake territory spawned into new country # war_of_independence_crushed = { # category = other # peace_action_type = { take_states } # enable = { # FROM.FROM = {} # } # cost_multiplier = 0.5 # } # eat_the_rich = { # category = ideology # peace_action_type = { take_states puppet force_government liberate } # enable = { # ROOT = { is_major = yes } # ROOT.FROM = { tag = ROOT } # ROOT.FROM.FROM = { # is_major = yes # } # } # cost_multiplier = 0.85 # } # democracy_major_force_gov = { # category = ideology # peace_action_type = { force_government } # enable = { # ROOT = { # has_government = democratic # is_major = yes # } # ROOT.FROM.FROM = { # is_major = yes # } # } # cost_multiplier = 0.70 # } # continuous_force_gov = { # category = continuous_political_action # peace_action_type = { force_government } # enable = { # FROM.FROM = { pc_is_forced_government_by = ROOT } # } # cost_multiplier = 0.95 # } # continuous_puppet = { # category = continuous_political_action # peace_action_type = { puppet } # enable = { # FROM.FROM = { pc_is_puppeted_by = ROOT } # } # cost_multiplier = 0.95 # } }