Fuhrerreich / FR

This is the official bug tracker for Führerreich.
2 stars 8 forks source link

Soviet Union under Tukhachevsky has Four Year Plan that grants Five Year plan #202

Open maxice8 opened 4 years ago

maxice8 commented 4 years ago

https://www.reddit.com/r/Fuhrerreich/comments/dj98ug/literally_unplayable/

maxice8 commented 4 years ago
diff --git a/common/decisions/FR_SOV.txt b/common/decisions/FR_SOV.txt
index 0cbd2a8..51d1740 100644
--- a/common/decisions/FR_SOV.txt
+++ b/common/decisions/FR_SOV.txt
@@ -1848,6 +1848,50 @@ SOV_industry_decision = {
            factor = 200
        }
    }
+   SOV_Four_Year_mission = {
+
+       allowed = {
+           always = no
+       }
+
+       icon = GFX_ger_mefo_bills
+
+       available = {
+           custom_trigger_tooltip = {
+               tooltip = has_four_year_plan
+               has_four_year_plan = yes
+           }
+           num_of_factories > 96
+           has_country_flag = SOV_moscow_metro
+           has_country_flag = SOV_mts_created
+       }
+
+       selectable_mission = yes
+       days_mission_timeout = 1460
+       is_good = no
+       fire_only_once = yes
+
+       cancel_trigger = {
+       }
+
+       complete_effect = {
+           log = "[GetDateText]: [Root.GetName]: Decision SOV_Four_Year_mission"
+           custom_effect_tooltip = SOV_Succes_Four_Year_Plan
+           add_political_power = 80
+           add_stability = 0.08
+       }
+
+       timeout_effect = {
+           log = "[GetDateText]: [Root.GetName]: Decision timeout SOV_Four_Year_mission"
+           custom_effect_tooltip = SOV_Failure_Four_Year_Plan
+           add_political_power = -80
+           add_stability = -0.08
+       }
+
+       ai_will_do = {
+           factor = 200
+       }
+   }
    SOV_building_moscow_metro = {

        icon = GFX_decision_generic_construction
@@ -10304,4 +10348,4 @@ SOV_scorched_earth_decisions = {
        }
    }

-}
\ No newline at end of file
+}
diff --git a/common/ideas/FR_Soviet_Union_ideas.txt b/common/ideas/FR_Soviet_Union_ideas.txt
index 750d298..42a083d 100644
--- a/common/ideas/FR_Soviet_Union_ideas.txt
+++ b/common/ideas/FR_Soviet_Union_ideas.txt
@@ -821,10 +821,18 @@ ideas = {
                production_speed_buildings_factor = 0.10
            }
        }
+       SOV_four_year_plan = {
+           on_add = {log = "[GetDateText]: [Root.GetName]: add idea SOV_four_year_plan"}
+           picture = NOR_syndicalist_industry_idea
+           modifier = {    
+               industrial_capacity_factory = 0.05
+               production_speed_buildings_factor = 0.10
+           }
+       }
        SOV_supporting_trade_unions = {
            on_add = {log = "[GetDateText]: [Root.GetName]: add idea SOV_supporting_trade_unions"}
            picture = generic_syndicalism_drift_bonus
-            modifier = {   
+           modifier = {
                production_factory_max_efficiency_factor = 0.10
            }
        }
@@ -978,4 +986,4 @@ ideas = {
            }
        }
    }
-}
\ No newline at end of file
+}
diff --git a/common/national_focus/FR_Soviet_Union_Tukhachevsky.txt b/common/national_focus/FR_Soviet_Union_Tukhachevsky.txt
index 82a9c59..273ebce 100644
--- a/common/national_focus/FR_Soviet_Union_Tukhachevsky.txt
+++ b/common/national_focus/FR_Soviet_Union_Tukhachevsky.txt
@@ -213,8 +213,8 @@ focus_tree = {

        completion_reward = {
            log = "[GetDateText]: [Root.GetName]: Focus SOV_four_year_plan"
-           add_ideas = SOV_five_year_plan
-           activate_mission = SOV_Five_Year_mission
+           add_ideas = SOV_four_year_plan
+           activate_mission = SOV_Four_Year_mission
            SOV_reduce_industrilization = yes
        }
    }
@@ -267,4 +267,4 @@ focus_tree = {
            SOV_reduce_industrilization = yes
        }
    }
-}
\ No newline at end of file
+}
diff --git a/common/scripted_triggers/FR_Soviet_Union_triggers.txt b/common/scripted_triggers/FR_Soviet_Union_triggers.txt
index 98bb830..7c7043e 100644
--- a/common/scripted_triggers/FR_Soviet_Union_triggers.txt
+++ b/common/scripted_triggers/FR_Soviet_Union_triggers.txt
@@ -8,3 +8,7 @@ has_five_year_plan = {
        has_country_flag = SOV_five_year_plan
    }
 }
+
+has_four_year_plan = {
+   has_idea = SOV_four_year_plan
+}
diff --git a/localisation/FR_Soviet_Union_l_english.yml b/localisation/FR_Soviet_Union_l_english.yml
index b0793a3..c0a47dc 100644
--- a/localisation/FR_Soviet_Union_l_english.yml
+++ b/localisation/FR_Soviet_Union_l_english.yml
@@ -591,8 +591,11 @@ SOV_defense_of_moscow_forts:0 "We will construct forts in §HMoscow§!"
 2000_infantry_equipment_1_blocked:0 "£rifle_texticon §R2000§!"
 2000_infantry_equipment_1_tooltip:0 "We'll need enough guns before we can send them"
 has_five_year_plan:0 "We have started a §HFive-Year Plan§!!"
+has_four_year_plan:0 "We have started a §HFour-Year Plan§!!"
 SOV_Succes_Five_Year_Plan:0 "§GCompleting the Five-Year Plan will show the imperialists the power of Socialism§!\n"
+SOV_Succes_Four_Year_Plan:0 "§GCompleting the Four-Year Plan will show the imperialists the power of Socialism§!\n"
 SOV_Failure_Five_Year_Plan:0 "§RFailure to achieve the goals of the Five-Year Plan will be seen as weakness§!\n"
+SOV_Failure_Four_Year_Plan:0 "§RFailure to achieve the goals of the Four-Year Plan will be seen as weakness§!\n"
 SOV_moscow_metro:0 "Has constructed the Moscow Metro"
 SOV_mts_created:0 "Has created the MTS"
 SOV_collectivization_started:0 "Has started a large-scale collectivization"
@@ -727,6 +730,8 @@ SOV_industry_decision_desc:0 "Our nation still is not fully industrialized with
 SOV_breakneck_industrialization:0 "Breakneck Industrialization"
 SOV_Five_Year_mission:0 "Five-Year Plan"
 SOV_Five_Year_mission_desc:0 "There is no fortress which the Bolsheviks cannot storm!"
+SOV_Four_Year_mission:0 "Four-Year Plan"
+SOV_Four_Year_mission_desc:0 "There is no fortress which the Bolsheviks cannot storm!"
 SOV_further_industrialization:0 "Furthering Industrialization"
 SOV_building_moscow_metro:0 "Building the Moscow Metro"
 SOV_helping_collectivized_farms:0 "Helping Collectivized Farms"
maxice8 commented 4 years ago

This can probably be improved by having the custom_trigger_tooltip take has_idea = SOV_four_year_plan rather than use a scripted trigger