# Author(s): BirdyBoi, BlackSyX # Mentor: BirdyBoi & Luigi IV (aka MD's Fijian Nationalist) # -------------------- # # This is a part of Singapore scripted effect place. # # Happy Coding! # # © Millenium Dawn 2016-2026 SIN_calculate_singaporean_trade_agreements = { set_variable = { SIN_foreign_influence_strength = signed_trade_agreements } set_variable = { SIN_bureaucracy_cost_multiplier_modifier_strength = signed_trade_agreements } # Tariff Income Generates in the Money System multiply_variable = { SIN_foreign_influence_strength = 0.02 } multiply_variable = { SIN_bureaucracy_cost_multiplier_modifier_strength = 0.02 } clamp_variable = { var = SIN_foreign_influence_strength min = 0 max = 0.30 } clamp_variable = { var = SIN_bureaucracy_cost_multiplier_modifier_strength min = 0 max = 0.30 } } SIN_censorship_law_increase = { if = { limit = { has_idea = SIN_loose_censorship_idea } swap_ideas = { remove_idea = SIN_loose_censorship_idea add_idea = SIN_medium_censorship_idea } } else_if = { limit = { has_idea = SIN_medium_censorship_idea } swap_ideas = { remove_idea = SIN_medium_censorship_idea add_idea = SIN_harsh_censorship_idea } } else_if = { limit = { has_idea = SIN_harsh_censorship_idea } swap_ideas = { remove_idea = SIN_harsh_censorship_idea add_idea = SIN_extreme_censorship_idea } } } SIN_censorship_law_decrease = { if = { limit = { has_idea = SIN_extreme_censorship_idea } swap_ideas = { remove_idea = SIN_extreme_censorship_idea add_idea = SIN_harsh_censorship_idea } } else_if = { limit = { has_idea = SIN_harsh_censorship_idea } swap_ideas = { remove_idea = SIN_harsh_censorship_idea add_idea = SIN_medium_censorship_idea } } else_if = { limit = { has_idea = SIN_medium_censorship_idea } swap_ideas = { remove_idea = SIN_medium_censorship_idea add_idea = SIN_loose_censorship_idea } } } ## Clique pressure roll — caller sets party_index before invoking SIN_apply_clique_pressure = { random_list = { 80 = { set_temp_variable = { party_popularity_increase = 0.02 } set_temp_variable = { temp_outlook_increase = 0.02 } change_relative_party_popularity = yes } 5 = { set_temp_variable = { party_popularity_increase = 0.05 } set_temp_variable = { temp_outlook_increase = 0.05 } change_relative_party_popularity = yes } 15 = { set_temp_variable = { party_popularity_increase = -0.03 } set_temp_variable = { temp_outlook_increase = -0.03 } change_relative_party_popularity = yes } } } ##Build Offmap Renewable Energy Infrastructure SIN_offmap_renewable_energy_infrastructure = { add_offsite_building = { type = renewable_energy_infra level = 1 } set_temp_variable = { treasury_change = -8.5 } modify_treasury_effect = yes } ## Singaporean alignment GUI dirty counter — bumps only when a gating condition flips SIN_update_alignment_gui_dirty = { set_temp_variable = { SIN_temp_alignment_gui_state = 0 } if = { limit = { has_political_power > 75 } add_to_temp_variable = { SIN_temp_alignment_gui_state = 1 } } if = { limit = { has_country_flag = SIN_applied_support_clique } add_to_temp_variable = { SIN_temp_alignment_gui_state = 2 } } if = { limit = { has_country_flag = SIN_funded_a_clique_flag } add_to_temp_variable = { SIN_temp_alignment_gui_state = 4 } } set_variable = { SIN_alignment_gui_dirty = SIN_temp_alignment_gui_state } }