暂存空间站巨构

This commit is contained in:
2024-09-21 12:56:55 +08:00
parent 7a545c4c88
commit 01200b9020
8 changed files with 392 additions and 42 deletions

View File

@@ -5,10 +5,7 @@ rg_ap_nantiematter = {
}
possible = {
OR = {
has_country_flag = origin_rg_gray
has_country_flag = gray_owner
has_technology = tech_lgate_activation
can_research_technology = tech_lgate_activation
has_tradition = tr_rg_nanotech_4
}
NOT = {
has_ascension_perk = rg_ap_nantiematter

View File

@@ -10,13 +10,15 @@ building_rg_nanolab_1 = {
potential = {
exists = owner
uses_district_set = rg_station
OR = {
uses_district_set = rg_station
owner = { has_tradition = tr_rg_nanotech_1 }
}
#owner = { has_tradition = tr_nanotech_adopt }
}
allow = {
exists = owner
uses_district_set = rg_station
always = yes
#owner = { has_tradition = tr_nanotech_adopt }
}
@@ -82,7 +84,7 @@ building_rg_nanolab_1 = {
}
upgrades = {
"building_nanolab_2"
"building_rg_nanolab_2"
}
}
@@ -96,7 +98,10 @@ building_rg_nanolab_2 = {
potential = {
exists = owner
uses_district_set = rg_station
OR = {
uses_district_set = rg_station
owner = { has_tradition = tr_rg_nanotech_1 }
}
# owner = { has_tradition = tr_nanotech_1 }
}
@@ -175,8 +180,10 @@ building_rg_nanotech_cauldron = {
potential = {
exists = owner
uses_district_set = rg_station
# owner = { has_tradition = tr_nanotech_2 }
OR = {
uses_district_set = rg_station
owner = { has_tradition = tr_rg_nanotech_1 }
}
# NOT = { has_modifier = resort_colony }
# NOT = { has_modifier = slave_colony }
}
@@ -208,3 +215,57 @@ building_rg_nanotech_cauldron = {
}
}
}
building_rg_nanite_transmuter = {
base_buildtime = @b3_time
icon = building_nanite_transmuter
category = manufacturing
potential = {
exists = owner
OR = {
uses_district_set = rg_station
owner = { has_tradition = tr_rg_nanotech_1 }
}
# owner = { has_tradition = tr_nanotech_2 }
# NOT = { has_modifier = resort_colony }
# NOT = { has_modifier = slave_colony }
}
allow = {
has_upgraded_capital = yes
}
resources = {
category = planet_buildings
cost = {
minerals = 1000
}
produces = {
trigger = {
owner = {
NOT = {
has_deficit = nanites
}
}
}
rare_crystals = 2
volatile_motes = 2
exotic_gases = 2
}
upkeep = {
nanites = 1
energy = 5
}
}
ai_resource_production = {
rare_crystals = @b3_rare_upkeep
volatile_motes = @b3_rare_upkeep
exotic_gases = @b3_rare_upkeep
trigger = {
always = yes
}
}
}

View File

@@ -0,0 +1,182 @@
# see README.txt for example
@central_orbital_build_time = 1800
@central_orbital_alloy_cost = 1500
@central_orbital_influence_cost = 200
@major_orbital_build_time = 720
@major_orbital_alloy_cost = 200
@minor_orbital_build_time = 180
@minor_orbital_alloy_cost = 50
# Habitat Central Complex
RG_habitat_central_complex = {
entity = "gatebuilder_01_space_station_entity"
construction_entity = "habitat_phase_03_entity"
portrait = "GFX_megastructure_habitat_background"
place_entity_on_planet_plane = no
show_galactic_map_icon = no
hide_name = yes
show_in_outliner = no
entity_offset = { x = 7 y = -7 }
build_time = 360
resources = {
category = megastructures_habitat
cost = {
nanites = 4500
influence = 200
}
}
construction_blocks_and_blocked_by = self_type
potential = {
has_tradition = tr_rg_nanotech_2
# OR = {
# has_technology = tech_habitat_1
# has_civic = civic_diadochi
# has_civic = civic_great_khans_legacy
# has_country_flag = democratic_khanate_flag
# }
}
possible = {
exists = starbase
custom_tooltip = {
fail_text = "requires_inside_border"
is_inside_border = from
}
custom_tooltip = {
fail_text = "requires_not_habitat_central_complex"
NOT = {
OR = {
any_system_planet = {
has_planet_flag = habitat
}
has_megastructure = habitat_central_complex_ruined
}
}
}
custom_tooltip = {
fail_text = "requires_no_orbital_debris"
NOT = {
any_system_planet = {
has_planet_flag = has_orbital_debris
}
}
}
}
placement_rules = {
planet_possible = {
custom_tooltip = {
fail_text = "requires_surveyed_planet"
is_surveyed = { # prevent leaking habitability information
who = prev.from
status = yes
}
}
custom_tooltip = {
fail_text = "requires_no_anomaly"
NOT = { has_anomaly = yes }
}
custom_tooltip = {
fail_text = "requires_no_existing_megastructure"
#can_build_megastructure_on_planet = yes
NOR = {
solar_system = {
OR = {
has_star_flag = ithomes_gate
}
}
is_planet_class = pc_habitat
}
}
# balance for habitats
custom_tooltip = {
fail_text = "requires_not_minor_planetary_body"
NOR = {
is_asteroid = yes
is_moon = yes
}
}
custom_tooltip = {
fail_text = "requires_not_solarpunk"
NOT = {
solar_system = {
has_star_flag = solarpunk_system_02
}
}
}
if = {
limit = {
from = { is_ai = yes }
}
or = {
has_deposit_for = shipclass_mining_station
has_deposit_for = shipclass_research_station
}
}
} # use these for all non-star megastructures
}
# root = system
# from = country
ai_weight = {
factor = 0
}
on_build_complete = {
fromfrom.planet = {
save_event_target_as = target_planet
}
if = {
limit = {
fromfrom.planet = {
is_star = yes
}
}
spawn_rg_habitat_effect = {
DISTANCE = 19.798
}
}
else = {
spawn_rg_habitat_effect = {
DISTANCE = 9.899
}
}
fromfrom.solar_system = {
set_star_flag = has_habitat
}
if = {
limit = {
event_target:target_planet = {
OR = {
has_deposit_for = shipclass_research_station
has_deposit_for = shipclass_mining_station
}
}
}
on_orbital_complete_effect = {
BODY = major
TYPE = resource
}
}
else = {
on_orbital_complete_effect = {
BODY = major
TYPE = generic
}
}
remove_megastructure = fromfrom
from = { country_event = { id = megastructures.10 } }
}
}

View File

@@ -0,0 +1,48 @@
spawn_rg_habitat_effect = {
spawn_planet = {
class = "pc_rg_grayhabitat"
location = event_target:target_planet
orbit_location = yes
orbit_angle_offset = 135
orbit_distance_offset = $DISTANCE$
size = 15
has_ring = no
init_effect = {
set_name = {
key = HABITAT_PLANET_NAME
variable_string = "\\[FROM.from.solar_system.GetName]"
}
set_planet_entity = {
entity = "grey_tempesttw_orbital_habitat_entity"
}
set_surveyed = {
surveyed = yes
surveyor = FROM
}
set_all_comms_surveyed = yes
clear_blockers = yes
set_planet_flag = megastructure
set_planet_flag = habitat
set_planet_flag = rg_gray_habitat
set_planet_flag = habitat_level_1
save_event_target_as = target_habitat
add_deposit_if_missing = {
DEPOSIT = d_system_resources
}
add_deposit_if_missing = {
DEPOSIT = d_orbital_research
}
add_deposit_if_missing = {
DEPOSIT = d_orbital_energy
}
add_deposit_if_missing = {
DEPOSIT = d_orbital_mining
}
event_target:target_planet = {
set_planet_flag = habitat@PREV
}
}
}
}

View File

@@ -125,8 +125,52 @@ RG_graygoo_capitalship = {
combat_disengage_chance = 1.25
class = shipclass_military
construction_type = starbase_shipyard
potential_construction = {
OR = {
is_scope_type = starbase
AND = {
is_scope_type = megastructure
OR = {
is_megastructure_type = mega_shipyard_3
is_megastructure_type = mega_shipyard_restored
}
}
}
}
possible_construction = {
always = no
custom_tooltip = {
fail_text = starbase_citadel_trigger
OR = {
AND = {
is_scope_type = megastructure
OR = {
is_megastructure_type = mega_shipyard_3
is_megastructure_type = mega_shipyard_restored
}
}
AND = {
is_scope_type = starbase
has_starbase_size >= starbase_citadel
}
}
}
custom_tooltip = {
fail_text = starbase_colossal_yards_trigger
OR = {
AND = {
is_scope_type = megastructure
OR = {
is_megastructure_type = mega_shipyard_3
is_megastructure_type = mega_shipyard_restored
}
}
AND = {
is_scope_type = starbase
has_starbase_building = colossus_yards
}
}
}
}
combat_size_multiplier = 4
prerequisites = {
@@ -463,8 +507,8 @@ RG_graygoo_destroyer = {
enable_3dview_in_ship_browser = yes #if yes, ship design will have a 3d view in the ship browser
is_designable = yes
default_behavior = line
prerequisites = {
"tech_gray_interdictor_4"
potential_country = {
has_tradition = tr_rg_nanotech_4
}
ship_roles = { screen gunship artillery brawler }
triggered_ship_roles = {

View File

@@ -2,8 +2,15 @@
tr_rg_nanotech_adopt = {
possible = {
custom_tooltip = {
fail_text = REQUIRES_FINISHED_TRANSFORMATION
has_country_flag = nanotech_traditions_unlocked
fail_text = REQUIRES_lgate_or_gray
OR = {
has_country_flag = origin_rg_gray
has_country_flag = gray_owner
AND = {
has_event_chain = l_cluster_chain
has_technology = tech_lgate_activation
}
}
}
}
custom_tooltip = tr_rg_nanotech_adopt_modifier_desc
@@ -13,6 +20,12 @@ tr_rg_nanotech_adopt = {
tr_rg_nanotech_finish = {
custom_tooltip_with_modifiers = tr_rg_nanotech_finish_modifier_desc
on_enabled = {
give_technology = {
tech = tech_object_gray_5
message = no
}
}
modifier = {
empire_size_colonies_mult = -0.5
@@ -80,21 +93,7 @@ tr_rg_nanotech_4 = {
custom_tooltip = tr_rg_nanotech_4_modifier_desc
#Unlocks Nanite Swarmer ship and nanite ship component research options
on_enabled = {
add_research_option = tech_nanite_repair_system
add_research_option = tech_nanite_autocannon
add_research_option = tech_nanite_flak_batteries
add_tech_progress = {
tech = tech_nanite_repair_system
progress = 0.25
}
add_tech_progress = {
tech = tech_nanite_autocannon
progress = 0.25
}
add_tech_progress = {
tech = tech_nanite_flak_batteries
progress = 0.25
}
}
ai_weight = {
factor = 1000