# Scripted cost modifiers for peace actions.
# See documentation.info file for more detailed scripting information.

peace_action_modifiers = {

    GER_sphere_of_influencee = {
        category = events_or_focuses
        peace_action_type = { take_states }
        enable = {
            ROOT = {
                original_tag = SOV #yes, this is to increase the cost for sov taking stuff in GER soi
            }
            GER = { has_completed_focus = GER_spheres_of_influence }
            FROM.FROM.FROM = {
                is_in_array = {
                    array = GER.GER_sphere_of_influence_array                    
                    value = THIS
                }
            }
        }
        cost_multiplier = 1.15 #15% cost increase for SOV on German sphere
    }

    GER_SOV_sphere_of_influence = {
        category = events_or_focuses
        peace_action_type = { take_states }
        enable = {
            ROOT = {
                original_tag = GER #yes, this is to increase the cost for ger taking stuff in sov soi
                has_completed_focus = GER_spheres_of_influence
            }
            
            FROM.FROM.FROM = {
                is_in_array = {
                    array = GER.SOV_sphere_of_influence_array                    
                    value = THIS
                }
            }
        }
        cost_multiplier = 1.15 #15% cost increase for GER on Soviet sphere
    }

    GER_asian_sphere_of_influencee = {
        category = events_or_focuses
        peace_action_type = { take_states }
        enable = {
            ROOT = {
                OR = {
                    is_literally_china = yes
                    original_tag = CHI
                }
            }
            GER = { has_completed_focus = GER_divide_and_conquer }
            FROM.FROM.FROM = {
                is_in_array = {
                    array = GER.GER_asia_sphere_of_influence_array                    
                    value = THIS
                }
            }
        }
        cost_multiplier = 1.15 #15% cost increase for SOV on German sphere
    }

    GER_CHI_sphere_of_influence = {
        category = events_or_focuses
        peace_action_type = { take_states }
        enable = {
            ROOT = {
                original_tag = GER #yes, this is to increase the cost for ger taking stuff in sov soi
                has_completed_focus = GER_divide_and_conquer
            }
            
            FROM.FROM.FROM = {
                is_in_array = {
                    array = GER.CHI_sphere_of_influence_array                    
                    value = THIS
                }
            }
        }
        cost_multiplier = 1.15 #15% cost increase for GER on Soviet sphere
    }

    GER_liberate_oppressed_peoples = {
        category = events_or_focuses
        peace_action_type = { liberate }
        enable = {
            ROOT = {
                original_tag = GER
                has_completed_focus = GER_liberate_oppressed_people  
            }
            FROM = { 
                OR = {
                    # What nations are cheaper to liberate
                    tag = CRI
                    tag = MOL
                    tag = UKR
                    tag = BLR
                    tag = KAR
                    tag = ABK
                    tag = GEO
                    tag = AZR
                    tag = ARM
                    tag = CIN
                    tag = DAG
                    tag = NOA
                    tag = KBK
                    tag = KAL
                    tag = KHI
                    tag = KKP
                    tag = TAJ
                    tag = BUK
                    tag = UZB
                    tag = KYR
                    tag = TMS
                    tag = KAZ
                    tag = ALT
                    tag = KAZ
                    tag = VGE
                    tag = TAT
                    tag = BSK
                    tag = NEN
                    tag = KOM
                    tag = YAM
                    tag = OVO
                    tag = TAY
                    tag = BYA
                    tag = YAK
                    tag = CKK
                    tag = VLA
                    tag = FER
                    tag = UDM
                    tag = MEL
                    tag = CHU
                    tag = KHA
                    tag = EVE
                    tag = SMI
                    tag = FIN
                    tag = EST
                    tag = LAT
                    tag = LIT
                    tag = POL
                    tag = ROM
                    tag = TAN
                    tag = MON
                    tag = AFG
                    tag = KUB
                    tag = DON
                }
            }
        }
        cost_multiplier = 0.6 #40% cost reduction
    }

    GER_air_quotations_liberate_oppressed_peoples = {
        category = events_or_focuses
        peace_action_type = { puppet }
        enable = {
            ROOT = {
                original_tag = GER
                has_completed_focus = GER_liberate_oppressed_people  
            }
            FROM = { 
                OR = {
                    # What nations are cheaper to "liberate"
                    tag = CRI
                    tag = MOL
                    tag = UKR
                    tag = BLR
                    tag = KAR
                    tag = ABK
                    tag = GEO
                    tag = AZR
                    tag = ARM
                    tag = CIN
                    tag = DAG
                    tag = NOA
                    tag = KBK
                    tag = KAL
                    tag = KHI
                    tag = KKP
                    tag = TAJ
                    tag = BUK
                    tag = UZB
                    tag = KYR
                    tag = TMS
                    tag = KAZ
                    tag = ALT
                    tag = KAZ
                    tag = VGE
                    tag = TAT
                    tag = BSK
                    tag = NEN
                    tag = KOM
                    tag = YAM
                    tag = OVO
                    tag = TAY
                    tag = BYA
                    tag = YAK
                    tag = CKK
                    tag = VLA
                    tag = FER
                    tag = UDM
                    tag = MEL
                    tag = CHU
                    tag = KHA
                    tag = EVE
                    tag = SMI
                    tag = FIN
                    tag = EST
                    tag = LAT
                    tag = LIT
                    tag = POL
                    tag = ROM
                    tag = TAN
                    tag = MON
                    tag = AFG
                    tag = KUB
                    tag = DON
                }
            }
        }
        cost_multiplier = 0.8 #20% cost reduction
    }

    # Germany will alwys lay claim to silesia 
    GER_silesia_is_ours_i_tell_ypu = {
        category = events_or_focuses
        peace_action_type = { take_states }
        enable = {
            ROOT = {
                original_tag = GER 
            }
            
            FROM.FROM.FROM = {
                OR = {
                    state = 66 # Niederschlesien 
                    state = 67 # Oberschlesien
                    state = 762 # Katowice
                }
            }
        }
        cost_multiplier = 0.25 #75% cost reduction
    }

}
