From 48ff08f2c6e804ce4b09e7c92ead1be313b0f819 Mon Sep 17 00:00:00 2001 From: materus Date: Sat, 8 Jun 2024 15:18:11 +0200 Subject: [PATCH] bm: add "Void Machines" civic, machine version of "Void Hive" --- .../governments/civics/~01_bm_civics.txt | 20 ++++ .../common/on_actions/~bm_on_actions.txt | 5 + .../common/ship_sizes/~bm_ship_sizes.txt | 93 ++++++++++++++++++ better_mi/events/~bm_events.txt | 46 +++++++++ .../civics/civic_bm_void_machines.dds | Bin 0 -> 3492 bytes ...rus_l_english.yml => ~00_bm_l_english.yml} | 5 +- ...terus_l_polish.yml => ~00_bm_l_polish.yml} | 6 +- 7 files changed, 173 insertions(+), 2 deletions(-) create mode 100644 better_mi/common/governments/civics/~01_bm_civics.txt create mode 100644 better_mi/common/on_actions/~bm_on_actions.txt create mode 100644 better_mi/common/ship_sizes/~bm_ship_sizes.txt create mode 100644 better_mi/events/~bm_events.txt create mode 100755 better_mi/gfx/interface/icons/governments/civics/civic_bm_void_machines.dds rename better_mi/localisation/{~materus_l_english.yml => ~00_bm_l_english.yml} (83%) rename better_mi/localisation/{~materus_l_polish.yml => ~00_bm_l_polish.yml} (82%) diff --git a/better_mi/common/governments/civics/~01_bm_civics.txt b/better_mi/common/governments/civics/~01_bm_civics.txt new file mode 100644 index 0000000..bc3352d --- /dev/null +++ b/better_mi/common/governments/civics/~01_bm_civics.txt @@ -0,0 +1,20 @@ +civic_bm_void_machines = { + playable = { has_lithoids = yes } + ai_playable = { has_lithoids = yes } + description = civic_tooltip_void_hive_effects + potential = { + authority = { value = auth_machine_intelligence } + } + random_weight = { + base = @civic_default_random_weight + } + ai_weight = { + base = @ai_civic_default_base_weight + } + + modifier = { + megastructures_cost_mult = -0.05 + megastructure_build_speed_mult = 0.1 + councilor_gestalt_growth_exp_gain = @gestalt_civic_node_xp_rate + } +} \ No newline at end of file diff --git a/better_mi/common/on_actions/~bm_on_actions.txt b/better_mi/common/on_actions/~bm_on_actions.txt new file mode 100644 index 0000000..5325c2e --- /dev/null +++ b/better_mi/common/on_actions/~bm_on_actions.txt @@ -0,0 +1,5 @@ +on_monthly_pulse_country = { + events = { + bm.1 + } +} \ No newline at end of file diff --git a/better_mi/common/ship_sizes/~bm_ship_sizes.txt b/better_mi/common/ship_sizes/~bm_ship_sizes.txt new file mode 100644 index 0000000..8722f9d --- /dev/null +++ b/better_mi/common/ship_sizes/~bm_ship_sizes.txt @@ -0,0 +1,93 @@ +mining_station = { + max_speed = 0.0 + acceleration = 0.0 + rotation_speed = 0.0 + max_hitpoints = @station_civilian_hp + modifier = { + ship_armor_add = 1000 + ship_evasion_mult = -1 + } + size_multiplier = 1 + fleet_slot_size = 1 + section_slots = { "mid" = { locator = "part1" } } + num_target_locators = 0 + is_space_station = yes + build_block_radius = @build_block_radius_civilian + is_civilian = no + components_add_to_cost = no + + enable_default_design = yes #if yes, countries will have an auto-generated design at start + prerequisites = { "tech_space_construction" } + class = shipclass_mining_station + is_designable = no + valid_target_aggressive_stance = no + auto_upgrade = yes + + resources = { + category = station_gatherers + cost = { + minerals = 100 + } + cost = { + trigger = { + from = { + OR = { + has_valid_civic = civic_void_hive + has_valid_civic = civic_bm_void_machines + } + } + } + unity = 10 + } + upkeep = { + energy = 1 + } + } +} + +research_station = { + max_speed = 0.0 + acceleration = 0.0 + rotation_speed = 0.0 + max_hitpoints = @station_civilian_hp + modifier = { + ship_armor_add = 1000 + ship_evasion_mult = -1 + } + size_multiplier = 1 + fleet_slot_size = 1 + section_slots = { "mid" = { locator = "part1" } } + num_target_locators = 1 + is_space_station = yes + build_block_radius = @build_block_radius_civilian + is_civilian = no + components_add_to_cost = no + + enable_default_design = yes #if yes, countries will have an auto-generated design at start + prerequisites = { "tech_space_construction" } + class = shipclass_research_station + is_designable = no + valid_target_aggressive_stance = no + auto_upgrade = yes + + resources = { + category = station_researchers + cost = { + minerals = 100 + } + cost = { + trigger = { + from = { + OR = { + has_valid_civic = civic_void_hive + has_valid_civic = civic_bm_void_machines + } + } + } + unity = 10 + } + upkeep = { + energy = 1 + } + } +} \ No newline at end of file diff --git a/better_mi/events/~bm_events.txt b/better_mi/events/~bm_events.txt new file mode 100644 index 0000000..0bd6238 --- /dev/null +++ b/better_mi/events/~bm_events.txt @@ -0,0 +1,46 @@ +namespace = bm +event = { + id = bm.1 + hide_window = yes + is_triggered_only = yes + + trigger = { + has_lithoids = yes + any_playable_country = { + has_valid_civic = civic_bm_void_machines + } + } + + immediate = { + every_playable_country = { + limit = { + has_valid_civic = civic_bm_void_machines + NOT = { has_country_flag = void_tactical_machine_cooldown } + } + random_system_within_border = { + limit = { + any_system_planet = { + NOT = { + has_planet_flag = has_megastructure + } + OR = { + AND = { + has_deposit_for = shipclass_mining_station + has_mining_station = no + } + AND = { + has_deposit_for = shipclass_research_station + has_research_station = no + } + } + } + } + system_event = { id = action.725 } + } + set_timed_country_flag = { + flag = void_tactical_machine_cooldown + days = 95 + } + } + } +} \ No newline at end of file diff --git a/better_mi/gfx/interface/icons/governments/civics/civic_bm_void_machines.dds b/better_mi/gfx/interface/icons/governments/civics/civic_bm_void_machines.dds new file mode 100755 index 0000000000000000000000000000000000000000..b965dd1d4b16a2a79bed4d4082e71e3a96ce7a92 GIT binary patch literal 3492 zcmZ>930A0KU|`@EU|^7CfZ!4a2w-GjU~u>J4bXLQ369}ph6v&z6&M&89HH_cHUq$edMkDsbD+_ykcMIz zC=KF+#3gP#R1m%OP?_)AeFgSg549QJzK>)0{`(KuT#)%7dti2g_~E;5Fq9s=!*J#Q zU54v-li|DmK(68HefjfO@5#TucuW5C#oJ1suilgYeD%Kk7bFbg!|>~?_vJ5N zyDvZa)&nh}oALVBzo)Or|CBt>{}*m3{l9WY9s^&v0T=sw<&OM^D|h6(LFQb(rOwcO=_W(O zE=)Ts58r0E^E83s;td7ni#JuAF5b}oc`3kmHT(;ru@f?H|1R}-jHX$_As2G^3Y8be}4J-n_=7Adkm*8D>9zB zDkpIEy3X-^mzw?rhAI9(f6d|lsmqH0kDb%{@8rt+|JZri|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ename from better_mi/localisation/~materus_l_english.yml rename to better_mi/localisation/~00_bm_l_english.yml index e30e4f5..d393df5 100644 --- a/better_mi/localisation/~materus_l_english.yml +++ b/better_mi/localisation/~00_bm_l_english.yml @@ -14,4 +14,7 @@ MACHINE_CANNOT_ENSLAVE_CYBORGS: "$TRIGGER_FAIL$§YCybernetics ascended machine§! cannot enslave cyborg species." trait_pc_materus_machine_preference: "$trait_pc_machine_preference$" - trait_pc_materus_machine_preference_desc: "$trait_pc_machine_preference_desc$" \ No newline at end of file + trait_pc_materus_machine_preference_desc: "$trait_pc_machine_preference_desc$" + + civic_bm_void_machines: "Void Machines" + civic_bm_void_machines_desc: "This Machine Intelligence has made space yet another of its domains. Specially manufactured drones are capable of spending entire life cycles without ever entering a world's atmosphere." diff --git a/better_mi/localisation/~materus_l_polish.yml b/better_mi/localisation/~00_bm_l_polish.yml similarity index 82% rename from better_mi/localisation/~materus_l_polish.yml rename to better_mi/localisation/~00_bm_l_polish.yml index 3d4c354..597173f 100644 --- a/better_mi/localisation/~materus_l_polish.yml +++ b/better_mi/localisation/~00_bm_l_polish.yml @@ -14,4 +14,8 @@ MACHINE_CANNOT_ENSLAVE_CYBORGS: "$TRIGGER_FAIL$Nie można zniewolić cyborgów" trait_pc_materus_machine_preference: "$trait_pc_machine_preference$" - trait_pc_materus_machine_preference_desc: "$trait_pc_machine_preference_desc$" \ No newline at end of file + trait_pc_materus_machine_preference_desc: "$trait_pc_machine_preference_desc$" + + civic_bm_void_machines: "Maszyny pustki" + civic_bm_void_machines_desc: "Ta mechaniczna inteligencja uczyniła próżnię jednym ze swoich królestw. Specjalnie zaprojektowane drony potrafią spędzić cały cykl życiowy bez wlatywania w jakąkolwiek atmosferę." + \ No newline at end of file