Skip to content

Commit

Permalink
Merge pull request #321 from rderekp/plurality-rework
Browse files Browse the repository at this point in the history
[DO NOT MERGE] Plurality rework
  • Loading branch information
joelAVS authored May 12, 2024
2 parents 6bb1046 + 8046466 commit 7a0e9c8
Show file tree
Hide file tree
Showing 1,719 changed files with 25,859 additions and 15,064 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1184,18 +1184,18 @@ BUR_fascist_dictatorship;Pyidaunzu Myama Nainngandaw;x;
BUR_colonial_company;Myanmarpyi Naalmyay;x;
BUR_dominion;Myanmarpyi Naalmyay;x;
BUR_ADJ;Bamar;x;
#### BUY ####;
BUY_absolute_monarchy;Buhaya Kingdom;x;
BUY_prussian_constitutionalism;Buhaya Kingdom;x;
BUY_hms_government;Buhaya Kingdom;x;
BUY_democracy;Free Republic of Buhaya;x;
BUY_proletarian_dictatorship;People's State of Buhaya;x;
BUY_presidential_dictatorship;State of Buhaya;x;
BUY_bourgeois_dictatorship;State of Buhaya;x;
BUY_fascist_dictatorship;Free Haya State;x;
BUY_colonial_company;Buhaya Kingdom;x;
BUY_dominion;Buhaya Kingdom;x;
BUY_ADJ;Haya;x;
#### BHY ####;
BHY_absolute_monarchy;Buhaya Kingdom;x;
BHY_prussian_constitutionalism;Buhaya Kingdom;x;
BHY_hms_government;Buhaya Kingdom;x;
BHY_democracy;Free Republic of Buhaya;x;
BHY_proletarian_dictatorship;People's State of Buhaya;x;
BHY_presidential_dictatorship;State of Buhaya;x;
BHY_bourgeois_dictatorship;State of Buhaya;x;
BHY_fascist_dictatorship;Free Haya State;x;
BHY_colonial_company;Buhaya Kingdom;x;
BHY_dominion;Buhaya Kingdom;x;
BHY_ADJ;Haya;x;
##### BYE #####;
BYE_absolute_monarchy;Karalieustva Bielarus;x;
BYE_prussian_constitutionalism;Karalieustva Bielarus;x;
Expand Down Expand Up @@ -5656,6 +5656,9 @@ RGS_fascist_dictatorship;Estado Riograndense;x;
RGS_colonial_company;Estado do Rio Grande do Sul;x;
RGS_dominion;Estado do Rio Grande do Sul;x;
RGS_ADJ;Riograndense;x;
##### CFB #####;
CFB;Confedera��o Brasilica;x;
CFB_ADJ;Brasilico;x;
##### RHI #####;
RHI_absolute_monarchy;Herzogtum Rheinland;x;
RHI_prussian_constitutionalism;Herzogtum Rheinland;x;
Expand Down
152 changes: 145 additions & 7 deletions TGC/common/cb_types.txt
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ acquire_core_state = {
war_with = THIS
any_neighbor_country = { substate_of = THIS }
}
number_of_states = 2 # annex if you want their last state
number_of_states = 2
OR = {
war_with = THIS
THIS = { NOT = { has_country_modifier = punitive_effects } }
Expand Down Expand Up @@ -486,7 +486,6 @@ acquire_core_state = {
}
}


# Acquire All Core States
acquire_all_cores = {
sprite_index = 5
Expand Down Expand Up @@ -555,7 +554,6 @@ acquire_all_cores = {

all_allowed_states = yes
po_transfer_provinces = yes

war_name = WAR_ALL_CORES_NAME

on_add = {
Expand All @@ -568,6 +566,7 @@ acquire_all_cores = {

on_po_accepted = {
country_event = 2650 # Territorial Loss event
plurality = -2
}
}

Expand Down Expand Up @@ -1531,6 +1530,7 @@ unification_humiliate_cb = {

on_po_accepted = {
prestige_factor = -0.2
plurality = -2
country_event = 99996
}
}
Expand Down Expand Up @@ -1609,6 +1609,7 @@ unification_GP_humiliate = {

on_po_accepted = {
prestige_factor = -0.2
plurality = -2
}
}

Expand Down Expand Up @@ -2193,6 +2194,7 @@ free_peoples = {

on_po_accepted = {
country_event = 2651 # Territorial Loss event
plurality = -2
}
}

Expand Down Expand Up @@ -2504,6 +2506,7 @@ liberate_country = {

on_po_accepted = {
country_event = 2651 # Territorial Loss event
plurality = -2
random_owned = {
limit = { owner = { tag = TUR has_global_flag = italy_fights_turk war_with = ITA } }
ITA = { country_event = 900009 }
Expand Down Expand Up @@ -5044,6 +5047,7 @@ establish_protectorate_casus_belli = {
}
}
on_po_accepted = { tech_school = unciv_tech_school
plurality = -5
#country_event = 426700
}
}
Expand Down Expand Up @@ -5093,6 +5097,7 @@ cut_down_to_size_boxer = {
on_po_accepted = {
THIS = { clr_country_flag = intervened_boxer_war }
country_event = 99015
plurality = -5
}
}

Expand Down Expand Up @@ -5224,6 +5229,7 @@ cut_down_to_size_ottoman = {

on_po_accepted = {
set_country_flag = lost_russo_turkish_war
plurality = -10
}
}

Expand Down Expand Up @@ -5424,6 +5430,8 @@ uninstall_communist_gov_cb = {
value = 0.25
}
}

on_po_accepted = { plurality = -3 }
}

great_war_install_democracy = {
Expand Down Expand Up @@ -5967,6 +5975,7 @@ acquire_substate_region = {
value = 0.25
}
}
on_po_accepted = { plurality = -3 }
}

# Gain control of Substate colony
Expand Down Expand Up @@ -6032,6 +6041,8 @@ acquire_substate_colony = {
value = 0.25
}
}

on_po_accepted = { plurality = -3 }
}

# Gain control of Substate Core region
Expand Down Expand Up @@ -6102,6 +6113,8 @@ acquire_substate_core_region = {
value = 0.25
}
}

on_po_accepted = { plurality = -5 }
}

# Colonial competition
Expand Down Expand Up @@ -6214,8 +6227,7 @@ dismantle_forts = {
}
}

on_po_accepted = {
}
on_po_accepted = { plurality = -5 }
}

#Placeholder for calling allies
Expand Down Expand Up @@ -6495,7 +6507,7 @@ treaty_port_casus_belli = {
any_owned_province = { port = yes }
}
}
owner = { add_country_modifier = { name = negotiating_unequal_treaty duration = -1 } }
owner = { add_country_modifier = { name = negotiating_unequal_treaty duration = -1 } plurality = -5 }
THIS = { add_country_modifier = { name = negotiating_treaty duration = -1 } }
}
}
Expand Down Expand Up @@ -6826,6 +6838,7 @@ war_reparations = {
}

on_po_accepted = {
plurality = -5
random_owned = {
limit = {
owner = {
Expand Down Expand Up @@ -7451,6 +7464,9 @@ take_capital = {
value = 0.25
}
}
on_po_accepted = {
plurality = -15
}
}

# Forced Truces
Expand Down Expand Up @@ -7873,6 +7889,7 @@ mexico_concession_rus = {

on_po_accepted = {
#California, Baja, Utah, Nevada
plurality = -2
any_owned = {
limit = {
OR = {
Expand Down Expand Up @@ -8156,10 +8173,11 @@ hungarian_game_escalation1 = {
po_remove_prestige = yes
po_disarmament = yes
po_reparations = yes
po_add_to_sphere = yes
po_add_to_sphere = yes

on_po_accepted = {
country_event = 2000000083
plurality = -3
}

on_add = {}
Expand Down Expand Up @@ -8197,6 +8215,7 @@ sonderbund_cb = {

on_po_accepted = {
SDB = { country_event = 99798 }
plurality = -3
}

on_add = {}
Expand Down Expand Up @@ -8943,6 +8962,7 @@ rhine_crisis_french = {
clr_country_flag = german_confederation_member
government = colonial_company
}
plurality = -8
}

on_add = {}
Expand Down Expand Up @@ -9604,6 +9624,66 @@ plague_cleanse = {
}
}

# Acquire All Claimed provinces
take_claimed_land = {
sprite_index = 25
is_triggered_only = yes
#always = yes
months = 1

construction_speed = 5

badboy_factor = 0.5
prestige_factor = 2
peace_cost_factor = 0.8
penalty_factor = 1

break_truce_prestige_factor = 1
break_truce_infamy_factor = 1
break_truce_militancy_factor = 1
truce_months = 48

good_relation_prestige_factor = 1
good_relation_infamy_factor = 1
good_relation_militancy_factor = 1

can_use = {
exists = yes
}

allowed_countries = {
any_owned_province = { is_core = FROM }
FROM = {
has_country_flag = is_claim_nation
THIS = { is_our_vassal = FROM }
exists = no
}
}

allowed_states = {
any_owned_province = { is_core = FROM }
}

po_transfer_provinces = yes

war_name = WAR_TAKE_CLAIM

on_add = {
move_issue_percentage = {
from = jingoism
to = pro_military
value = 0.25
}
}

on_po_accepted = {
country_event = 2651 # Territorial Loss event
any_country = { limit = { has_country_flag = is_claim_nation }
country_event = 2670
}
}
}

# Acquire Core State
conquest_of_the_wasteland = {
sprite_index = 5
Expand Down Expand Up @@ -9649,3 +9729,61 @@ conquest_of_the_wasteland = {
#country_event = 2650 # Territorial Loss event
}
}

#New World Hegemony War
new_world_hegemony = {
sprite_index = 20
is_triggered_only = yes
constructing_cb = no
months = 12
crisis = no

construction_speed = 0.25

badboy_factor = 2
prestige_factor = 10
peace_cost_factor = 35
penalty_factor = 3

break_truce_prestige_factor = 5
break_truce_infamy_factor = 3
break_truce_militancy_factor = 1
truce_months = 108

good_relation_prestige_factor = 0
good_relation_infamy_factor = 0
good_relation_militancy_factor = 0

can_use = { }

po_disarmament = yes
po_reparations = yes

war_name = NEW_WORLD_HEGEMONY

on_add = {
FROM = {
set_country_flag = dismantle_declared
}
move_issue_percentage = {
from = pro_military
to = jingoism
value = 0.10
}
country_event = 96000
}

on_po_accepted = {
set_country_flag = dismantling_treaty
random_owned = {
limit = { owner = { tag = USA } }
# Audax Validator "." Ignore_NEXT
BRZ = { country_event = { id = 8251 days = 5 } }
}
random_owned = {
limit = { owner = { tag = BRZ } }
# Audax Validator "." Ignore_NEXT
BRZ = { country_event = { id = 8252 days = 5 } }
}
}
}
Loading

0 comments on commit 7a0e9c8

Please sign in to comment.