Skip to content

Commit

Permalink
添加一个太阳系预设,当开启危机联合但没有危机联合国家时,创建一个坍塌地球的太阳系
Browse files Browse the repository at this point in the history
  • Loading branch information
Elivicti committed Mar 19, 2023
1 parent 13cca93 commit 5200743
Show file tree
Hide file tree
Showing 4 changed files with 361 additions and 1 deletion.
69 changes: 69 additions & 0 deletions common/anomalies/GFEXT_anomaly_categories.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
#an_anomaly_category = { # Anomaly category ID key
#
# should_ai_use = yes/no # Allows AI empires to generate the category. Default: no
# should_ai_and_humans_use = yes/no # If yes, both AI and human empires can use this anomaly (overrides should_ai_use)
#
# desc = "key" # Optional, if no desc is given "<category key>_desc" is assumed
#
# desc = { # Can also use triggered descs. First valid entry will be used.
# trigger = { ... } # Scope: planet, from = ship
# text = "key" # Localization key for description
# }
# picture = GFX_picture # Picture displayed in category window
# level = int # Anomaly level, 1 to 10
#
# null_spawn_chance = 0.5 # Default 0. 0.0 - 1.0 (0 to 100%) chance category will NOT spawn
# # even if it is picked by the anomaly die roll. Used to make
# # categories for unusual objects (e.g. black holes) actually rare.
#
# max_once = yes/no # default NO, if true will spawn category only once per empire
# max_once_global = yes/no # default NO, if true will spawn category only once per game
#
# spawn_chance = { # Chance for this anomaly category to spawn,
# base = <num> # relative to other valid categories. Default: base = 0
# modifier = { # Spawn chance modifier
# add/factor = <num>
# <triggers> # Scope: planet, from = ship
# }
# }
#
# on_spawn = { <effects> } # Executes immediately when anomaly category is spawned.
# # Scopes are this/root: planet, from: ship
# # NOTE: on_spawn effects will not run if category is spawned through console
#
# on_success = { # Picks anomaly event to fire; similar to random_list
# 1 = { # Base chance
# max_once = yes # Individual outcomes default to max_once = yes,
# max_once_global = no # and max_once_global = no
# modifier = { # Optional modifiers
# add/factor = <num>
# <triggers> # Scope: ship, from: planet
# }
# anomaly_event = <id> # New effect anomaly_event fires specified event ID. Scope: ship, from: planet
# } # Can also use ship_event, though it gets different scopes:
# # ship, from: ship, fromfrom: planet
#
# 1 = <event id> # shorthand for 1 = { anomaly_event = <event id> }
# }
#
# on_success = <event id> # Shorthand for on_success = { 1 = { anomaly_event = <event id> } }
#} # Only use if there is only one outcome in the category

@distar_weight = 1

GFEXT_collapsed_sol_category = {
desc = {
text = GFEXT_collapsed_sol_category_human_desc
trigger = {
from.owner = { is_human_species = yes }
}
}
desc = GFEXT_collapsed_sol_category_desc

picture = GFX_evt_GF_black_zone
level = 10

#Spawn set via initialisers

on_success = GFEXT_anomaly.100
}
253 changes: 253 additions & 0 deletions common/solar_system_initializers/GFEXT_collapsed_sol.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,253 @@
# Sol System (Nuclear Wasteland)
special_init_04 = {
name = "NAME_Sol"
class = "sc_g"
asteroid_belt = {
type = rocky_asteroid_belt
radius = 145
}
asteroid_belt = {
type = icy_asteroid_belt
radius = 290
}

usage = misc_system_init

usage_odds = {
base = 0
modifier = {
# has_global_flag = GF_Stellairs_Crisis_Coalition_Installed
NOR = {
has_star_flag = empire_cluster
any_country = {
OR = {
has_country_flag = human_1
has_authority = GF_auth_commonwealth
}
}
any_system = { has_star_flag = sol }
}
add = 999999
}
}

max_instances = 1

flags = { collapsed_sol sol }

planet = {
name = "NAME_Sol"
class = "pc_g_star"
orbit_distance = 0
orbit_angle = 1
size = 30
has_ring = no
}

planet = {
class = "pc_molten"
orbit_distance = 40
orbit_angle = 15
size = 10
has_ring = no
}

planet = {
class = "pc_toxic"
orbit_distance = 25
orbit_angle = 125
size = 20
has_ring = no
}

planet = {
class = "pc_GF_collapsed"
orbit_distance = 25
orbit_angle = 120
size = 18
has_ring = no
anomaly = "GFEXT_collapsed_sol_category"
flags = { collapsed_earth }

init_effect = {
save_global_event_target_as = sol_system_earth

if = {
limit = { any_country = { is_human_species = yes } }
set_name = "NAME_Earth"
}
}

moon = {
class = "pc_barren_cold"
size = 5
orbit_distance = 12
orbit_angle = 40
has_ring = no
entity = "cold_barren_planet_luna_entity"
}
}

planet = {
class = "pc_barren"
orbit_distance = 25
orbit_angle = 60
size = 13
has_ring = no
entity = "barren_planet_mars_entity"
init_effect = {
add_modifier = {
modifier = "terraforming_candidate"
days = -1
}
}
}

planet = {
class = "pc_asteroid"
orbit_distance = 30
orbit_angle = -210
size = 5
has_ring = no
}

planet = {
class = "pc_asteroid"
orbit_distance = 0
orbit_angle = -95
size = 5
has_ring = no
}

planet = {
class = "pc_asteroid"
orbit_distance = 0
orbit_angle = 285
size = 5
has_ring = no
}

planet = {
class = "pc_asteroid"
orbit_distance = 0
orbit_angle = -80
size = 5
has_ring = no
}

planet = {
class = "pc_gas_giant"
orbit_distance = 40
orbit_angle = -160
size = 35
has_ring = no
entity = "gas_giant_jupiter_entity"
change_orbit = 6

moon = {
class = "pc_molten"
size = 6
orbit_distance = 10
orbit_angle = 110
has_ring = no
}
moon = {
class = "pc_frozen"
size = 6
orbit_distance = 2.5
orbit_angle = 10
has_ring = no
}
moon = {
class = "pc_frozen"
size = 9
orbit_distance = 2.5
orbit_angle = 80
has_ring = no
}
moon = {
class = "pc_frozen"
size = 7
orbit_distance = 2.5
orbit_angle = -155
has_ring = no
}
}

planet = {
class = "pc_gas_giant"
orbit_distance = 25
orbit_angle = 170
size = 30
has_ring = yes
entity = "gas_giant_05_entity"
change_orbit = 7

moon = {
class = "pc_frozen"
size = 8
orbit_distance = 12
orbit_angle = 320
has_ring = no
}
}

planet = {
class = "pc_gas_giant"
orbit_distance = 25
orbit_angle = 125
size = 20
has_ring = no
entity = "gas_giant_03_entity"
}

planet = {
class = "pc_gas_giant"
orbit_distance = 25
orbit_angle = -195
size = 20
has_ring = no
entity = "gas_giant_02_entity"
change_orbit = 4

moon = {
class = "pc_frozen"
size = 6
orbit_distance = 7
orbit_angle = 115
has_ring = no
}
}

planet = {
class = "pc_asteroid"
orbit_distance = 30
orbit_angle = -210
size = 5
has_ring = no
}

planet = {
class = "pc_ice_asteroid"
orbit_distance = 0
orbit_angle = -95
size = 5
has_ring = no
}

planet = {
class = "pc_ice_asteroid"
orbit_distance = 0
orbit_angle = 285
size = 5
has_ring = no
}

planet = {
class = "pc_ice_asteroid"
orbit_distance = 0
orbit_angle = -80
size = 5
has_ring = no
}
}
25 changes: 25 additions & 0 deletions events/GFEXT_anomaly.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
namespace = GFEXT_anomaly

# Nuclear Wasteland
ship_event = {
id = GFEXT_anomaly.100
title = GFEXT_anomaly.100.name
desc = GFEXT_anomaly.100.desc
picture = GFX_evt_GF_black_zone
location = FROM

is_triggered_only = yes

option = {
name = GFEXT_anomaly.100.a
from = { add_deposit = d_society_10 }
owner = {
add_monthly_resource_mult = {
resource = physics_research
value = @tier5researchreward
min = @tier5researchmin
max = @tier5researchmax
}
}
}
}
15 changes: 14 additions & 1 deletion localisation/simp_chinese/GFEXT_l_simp_chinese.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,17 @@
GFEXT_doll_leader.9980.name:0 "人形领袖立绘"
GFEXT_doll_leader.9980.desc:0 "检测到你刚刚安装了§Y少女前线群星故事集:危机联合扩展§!,并且在此之前你已经招募了§Y人形领袖§!,由于人形领袖立绘与名称对应机制的实现原理,你可以选择将§Y之前§!招募的人形领袖的立绘进行一次修正,但这样会导致她们的立绘与名称被改变。\n\n你也可以选择不对§Y之前§!招募的人形领袖的立绘进行修正,此后的立绘修正也不会影响她们。"
GFEXT_doll_leader.9980.OK.tooltip:0 "以下领袖的§Y名称§!与§Y立绘§!将会被改变:§H"
GFEXT_doll_leader.9980.OK.tooltip_color_end:0 "§!\n§H注意:§!人形特使未列出,但同样会受到影响"
GFEXT_doll_leader.9980.OK.tooltip_color_end:0 "§!\n§H注意:§!人形特使未列出,但同样会受到影响"


GFEXT_collapsed_sol_category:0 "地狱之门"
GFEXT_collapsed_sol_category_human_desc:0 "这是曾经熟悉的家园,如今已成为地狱。"
GFEXT_collapsed_sol_category_desc:0 "这颗星球的地表就像是地狱图景的真实写照,荒凉、死寂而且致命。"
GFEXT_anomaly.100.name:0 "地狱之门"
GFEXT_anomaly.100.desc:0 "[From.From.From.GetName]的地表覆盖着绵延无尽的坍塌物质,这是由普通物质被一种超乎想象的核力操作技术暴力打碎后产生的混沌物质,整颗星球充斥着这些物质散发出来的致命辐射,对任何生物来说,这颗星球都是名副其实的地狱。\n\n从星球地表遗留的痕迹来看,[From.From.From.GetName]曾是一个发达的工业文明的母星,直到一场大规模使用那种核力操作技术武器的战争摧毁了一切,而本应荒凉死寂的星球上却存在着由一些硅含量极高的生物构成的奇特生物圈,它们极具研究价值。"
GFEXT_anomaly.100.a:0 "哈人。"

GFEXT_tech_reverse_collapse_gateway:0 "逆向坍塌亚空间隧道"
GFEXT_tech_reverse_collapse_gateway_desc:0 "利用逆向坍塌原理重构星门的亚空间隧道,能够为我们创建一种专有且独享的星际通行方式。"
GFEXT_tech_reverse_collapse_gateway_feature_title:0 "§H解锁特性:§!星门升级"
GFEXT_tech_reverse_collapse_gateway_feature_desc:0 "允许将建设完成的§Y星门§!改造为使用§Y逆向坍塌§!原理进行亚空间移动,任何不掌握§Y$GF_tech_collapse_jump_drive$§!技术的帝国将§R无法穿过§!改造后的星门。"

0 comments on commit 5200743

Please sign in to comment.