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 zcma)<2~&)3h~hPn($3C2CL^A)+D? zQ4tqVh`}w13C4&ZnqUMq3J3@c#2}dDq$gGqBLP|e{q94Mtfw4)yzhSBz5oAv_uhAB zh>d;PxrQ<3t!2zcSI%;R{|Llmv*$cDDmM1%Kgd1B+^_v{QZf2L2Ocwq{@=a^dHnbX z0Q)6w-&x2$|1y|;_W4j&e`~1V{uOxr#uvlcmtT!%U*DPki<G}kpd{Rzthtb<~nH@lmi#)jq~P3=vmw4pgvxbw}k zti7vyK%4vYdvd=8g>JT@_y)U<&sg1O zS_i?~{oJOwy7s1HM?+JHzW!#Y@E2wST&KDrm~E-5XA8-fKigo>)gOP#ZhZM1 zt8_a(E9-~GRJud&me)9YtLg(#UgN+ck9%X%R4vM`J5W{sLn>+mv0#x|?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