Skip to content

Instantly share code, notes, and snippets.

@Cranc
Last active March 29, 2018 19:09
Show Gist options
  • Save Cranc/82669a11a4293becc62256aca6fa787f to your computer and use it in GitHub Desktop.
Save Cranc/82669a11a4293becc62256aca6fa787f to your computer and use it in GitHub Desktop.
@b0time = 120
@b0cost = 30
@b0effect = 1
@b0upkeep = 0.5
@b1time = 210
@b1cost = 60
@b1effect = 2
@b1upkeep = 1
@b2time = 180
@b2cost = 90
@b2effect = 3
@b2upkeep = 1.5
@b3time = 180
@b3cost = 120
@b3effect = 4
@b3upkeep = 2
@b4time = 180
@b4cost = 150
@b4effect = 5
@b4upkeep = 2.5
@b5time = 180
@b5cost = 180
@b5effect = 8
@b5upkeep = 3
@ib0cost = 260
@ib0time = 260
@ib0upkeep = 10
@ib1cost = 360
@ib1time = 360
@ib1upkeep = 20
@science1 = 1
@science2 = 2
@science3 = 3
@science4 = 4
@science5 = 6
##################
#HYBRID
##################
next_expansion_hybrid_factory_1 = {
base_buildtime = @b1time
cost = {
minerals = @b1cost
}
potential = {
planet = {
NOT = { is_planet_class = pc_habitat }
}
}
produced_resources = {
energy = 1
minerals = 1
}
upgrades = {
next_expansion_hybrid_factory_2
}
prerequisites = {
"tech_power_plant_1"
"tech_basic_industry"
}
allow = {
custom_tooltip = {
fail_text = "next_expansion_requires_minerals_and_energy"
tile = {
AND = {
has_resource = {
type = minerals
amount > 0
}
has_resource = {
type = energy
amount > 0
}
}
}
}
}
ai_allow = {
NOR = {
has_resource = {
type = sr_betharian
amount > 0
}
has_resource = {
type = sr_alien_pets
amount > 0
}
}
}
ai_weight = {
factor = 1
modifier = {
factor = 0.25
is_slave_tile_or_planet = yes
}
}
}
next_expansion_hybrid_factory_2 = {
base_buildtime = @b2time
is_listed = no
cost = {
minerals = @b2cost
}
potential = {
planet = {
NOT = { is_planet_class = pc_habitat }
}
}
produced_resources = {
energy = 2
minerals = 2
}
upgrades = {
next_expansion_hybrid_factory_3
}
prerequisites = {
"tech_power_plant_2"
"tech_mining_network_2"
}
allow = {
if = {
limit = {
owner = {
NOT = { has_authority = auth_machine_intelligence }
}
}
custom_tooltip = {
text = "requires_building_capital_1"
planet = {
OR = {
has_building = "building_capital_1"
has_building = "building_capital_2"
has_building = "building_capital_3"
}
}
}
}
if = {
limit = {
owner = { has_authority = auth_machine_intelligence }
}
custom_tooltip = {
text = "requires_building_machine_capital_1"
planet = {
OR = {
has_building = "building_machine_capital_1"
has_building = "building_machine_capital_2"
has_building = "building_machine_capital_3"
}
}
}
}
}
}
next_expansion_hybrid_factory_3 = {
base_buildtime = @b3time
is_listed = no
cost = {
minerals = @b3cost
}
potential = {
planet = {
NOT = { is_planet_class = pc_habitat }
}
}
produced_resources = {
energy = 3
minerals = 3
}
upgrades = {
next_expansion_hybrid_factory_4
}
prerequisites = {
"tech_power_plant_3"
"tech_mining_network_3"
}
allow = {
if = {
limit = {
owner = {
NOT = { has_authority = auth_machine_intelligence }
}
}
custom_tooltip = {
text = "requires_building_capital_1"
planet = {
OR = {
has_building = "building_capital_2"
has_building = "building_capital_3"
}
}
}
}
if = {
limit = {
owner = { has_authority = auth_machine_intelligence }
}
custom_tooltip = {
text = "requires_building_machine_capital_1"
planet = {
OR = {
has_building = "building_machine_capital_2"
has_building = "building_machine_capital_3"
}
}
}
}
}
}
next_expansion_hybrid_factory_4 = {
base_buildtime = @b4time
is_listed = no
cost = {
minerals = @b4cost
}
potential = {
planet = {
NOT = { is_planet_class = pc_habitat }
}
}
produced_resources = {
energy = 4
minerals = 4
}
prerequisites = {
"tech_power_plant_4"
"tech_mining_network_4"
}
allow = {
if = {
limit = {
owner = {
NOT = { has_authority = auth_machine_intelligence }
}
}
custom_tooltip = {
text = "requires_building_capital_1"
planet = {
OR = {
has_building = "building_capital_2"
has_building = "building_capital_3"
}
}
}
}
if = {
limit = {
owner = { has_authority = auth_machine_intelligence }
}
custom_tooltip = {
text = "requires_building_machine_capital_1"
planet = {
OR = {
has_building = "building_machine_capital_2"
has_building = "building_machine_capital_3"
}
}
}
}
}
}
##################
#UNITY
##################
next_expansion_museum_1 = {
base_buildtime = @b1time
planet_unique = yes
cost = {
minerals = @b1cost
}
show_tech_unlock_if = {
NOR = {
has_ethic = ethic_spiritualist
has_ethic = ethic_fanatic_spiritualist
has_authority = auth_machine_intelligence
}
}
potential = {
owner = {
NOR = {
has_ethic = ethic_spiritualist
has_ethic = ethic_fanatic_spiritualist
has_authority = auth_machine_intelligence
}
}
}
destroy_if = {
exists = owner
owner = { has_authority = auth_machine_intelligence }
}
produced_resources = {
unity = 2
}
required_resources = {
energy = @b1upkeep
}
upgrades = {
next_expansion_museum_2
}
prerequisites = {
"tech_cultural_heritage"
}
ai_allow = {
NOR = {
has_resource = {
type = sr_betharian
amount > 0
}
has_resource = {
type = sr_alien_pets
amount > 0
}
}
}
ai_allow = {
is_slave_tile_or_planet = no
}
ai_weight = {
factor = 1
}
}
next_expansion_museum_2 = {
base_buildtime = @b2time
planet_unique = yes
is_listed = no
cost = {
minerals = @b2cost
}
show_tech_unlock_if = { NOT = { has_authority = auth_machine_intelligence } }
potential = {
owner = {
NOR = {
has_ethic = ethic_spiritualist
has_ethic = ethic_fanatic_spiritualist
has_authority = auth_machine_intelligence
}
}
}
destroy_if = {
exists = owner
owner = { has_authority = auth_machine_intelligence }
}
allow = {
custom_tooltip = {
text = "requires_building_capital_1"
planet = {
OR = {
has_building = "building_capital_1"
has_building = "building_capital_2"
has_building = "building_capital_3"
}
}
}
}
produced_resources = {
unity = 4
}
required_resources = {
energy = @b2upkeep
}
upgrades = {
next_expansion_museum_3
}
prerequisites = {
"tech_heritage_site"
}
ai_allow = {
is_slave_tile_or_planet = no
}
}
next_expansion_museum_3 = {
base_buildtime = @b3time
planet_unique = yes
is_listed = no
cost = {
minerals = @b3cost
}
show_tech_unlock_if = { NOT = { has_authority = auth_machine_intelligence } }
potential = {
owner = {
NOR = {
has_ethic = ethic_spiritualist
has_ethic = ethic_fanatic_spiritualist
has_authority = auth_machine_intelligence
}
}
}
destroy_if = {
exists = owner
owner = { has_authority = auth_machine_intelligence }
}
allow = {
custom_tooltip = {
text = "requires_building_capital_1"
planet = {
OR = {
has_building = "building_capital_1"
has_building = "building_capital_2"
has_building = "building_capital_3"
}
}
}
}
produced_resources = {
unity = 6
}
required_resources = {
energy = @b3upkeep
}
prerequisites = {
"tech_hypercomms_forum"
}
ai_allow = {
is_slave_tile_or_planet = no
}
}
next_expansion_conservation_complex = {
base_buildtime = @b1time
planet_unique = yes
cost = {
minerals = @b1cost
}
show_tech_unlock_if = { has_authority = auth_machine_intelligence }
potential = {
owner = { has_authority = auth_machine_intelligence }
}
destroy_if = {
exists = owner
owner = {
NOT = { has_authority = auth_machine_intelligence }
}
}
produced_resources = {
unity = 2
}
required_resources = {
energy = @b1upkeep
}
upgrades = {
next_expansion_empire_conservation_complex
}
prerequisites = {
"tech_cultural_heritage"
}
ai_allow = {
NOR = {
has_resource = {
type = sr_betharian
amount > 0
}
has_resource = {
type = sr_alien_pets
amount > 0
}
}
}
ai_allow = {
is_slave_tile_or_planet = no
}
ai_weight = {
factor = 1
}
}
next_expansion_empire_conservation_complex = {
base_buildtime = @b2time
planet_unique = yes
is_listed = no
cost = {
minerals = @b2cost
}
show_tech_unlock_if = { has_authority = auth_machine_intelligence }
potential = {
owner = { has_authority = auth_machine_intelligence }
}
destroy_if = {
exists = owner
owner = {
NOT = { has_authority = auth_machine_intelligence }
}
}
allow = {
custom_tooltip = {
text = "requires_building_capital_1"
planet = {
OR = {
has_building = "building_machine_capital_1"
has_building = "building_machine_capital_2"
has_building = "building_machine_capital_3"
}
}
}
}
produced_resources = {
unity = 4
}
required_resources = {
energy = @b2upkeep
}
upgrades = {
next_expansion_silent_cartographer
}
prerequisites = {
"tech_heritage_site"
}
ai_allow = {
is_slave_tile_or_planet = no
}
}
next_expansion_silent_cartographer = {
base_buildtime = @b3time
planet_unique = yes
is_listed = no
cost = {
minerals = @b3cost
}
show_tech_unlock_if = { has_authority = auth_machine_intelligence }
potential = {
owner = { has_authority = auth_machine_intelligence }
}
destroy_if = {
exists = owner
owner = {
NOT = { has_authority = auth_machine_intelligence }
}
}
allow = {
custom_tooltip = {
text = "requires_building_capital_1"
planet = {
OR = {
has_building = "building_machine_capital_2"
has_building = "building_machine_capital_3"
}
}
}
}
produced_resources = {
unity = 6
}
required_resources = {
energy = @b3upkeep
}
prerequisites = {
"tech_hypercomms_forum"
}
ai_allow = {
is_slave_tile_or_planet = no
}
}
##################
#Influence
##################
next_expansion_propaganda_tower = {
base_buildtime = @ib0time
planet_unique = yes
cost = {
minerals = @ib0cost
}
show_tech_unlock_if = {
NOR = {
has_authority = auth_machine_intelligence
}
}
potential = {
owner = {
NOR = {
has_authority = auth_machine_intelligence
}
}
}
destroy_if = {
exists = owner
owner = { has_authority = auth_machine_intelligence }
}
produced_resources = {
influence = 0.1
}
required_resources = {
energy = @ib0upkeep
}
prerequisites = {
}
ai_allow = {
NOR = {
has_resource = {
type = sr_betharian
amount > 0
}
has_resource = {
type = sr_alien_pets
amount > 0
}
}
}
ai_allow = {
is_slave_tile_or_planet = no
}
ai_weight = {
factor = 1
}
}
next_expansion_unit_integrity_tower = {
base_buildtime = @ib0time
planet_unique = yes
cost = {
minerals = @ib0cost
}
show_tech_unlock_if = {
has_authority = auth_machine_intelligence
}
potential = {
owner = {
has_authority = auth_machine_intelligence
}
}
destroy_if = {
exists = owner
owner = { NOT = { has_authority = auth_machine_intelligence } }
}
produced_resources = {
influence = 0.1
}
required_resources = {
energy = @ib0upkeep
}
prerequisites = {
}
ai_allow = {
NOR = {
has_resource = {
type = sr_betharian
amount > 0
}
has_resource = {
type = sr_alien_pets
amount > 0
}
}
}
ai_allow = {
is_slave_tile_or_planet = no
}
ai_weight = {
factor = 1
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment