diff --git a/common/leader_classes/RG_leader_classes.txt b/common/leader_classes/RG_leader_classes.txt new file mode 100644 index 0000000..66af17a --- /dev/null +++ b/common/leader_classes/RG_leader_classes.txt @@ -0,0 +1,103 @@ +# example_class = { +# name = +# name_plural = +# description = +# +# #all the following default to no +# can_lead_army = yes/no # Applies skill__army scaled by level to armies +# can_lead_navy = yes/no # Applies skill__navy scaled by level to fleets +# can_govern_planet = yes/no # Applies skill__planet_governor scaled by level to governed planet + # Applies skill__sector_governor scaled by level to governed sector, if governing the sector capital + # Applies skill__background_planet_governor scaled by level togoverned planet, if governing their homeworld +# can_be_envoy = yes/no +# can_research_tech = yes/no +# can_research_special_projects = yes/no +# can_crew_science_ship = yes/no +# can_research_anomalies = yes/no +# can_research_archaeology_site = yes/no +# can_survey = yes/no +# can_boost_cloaking_detection = yes/no +# can_explore_rifts = yes/no +# can_conduct_active_reconnaissance = yes/no +# can_govern_planet = yes/no +# can_have_traits = yes/no # defaults to yes, if no this class will not gain LEADER_ASSIGNED_MONTHLY_EXPERIENCE when assigned +# can_rule_empire = yes/no # defaults to yes +# recruitable = yes/no # defaults to yes +# max_trait_points = +# leader_capacity = # maximum number of leader of this type before you get maluses, 0 means no cap +# replaces_old_class = "old_class" # used for backwards compatibility. When "old_class" appears in an old save, it is converted to this class at loading +# # can appear multiple times +# +# resources = { #upkeep +# category = leader_scientists/etc +# cost = { +# ... +# } +# } +# +# ai_weight = { # used to determine which type of leader the AI prefers (frex: commanders for warlike leaders, and governor for pacifists) +# base = +# modifier = {} +# } +# +# ai_location_weight = { # used to evaluate a specific leader for an assignment to a specific location (right now only used for fleet), +# # scope is the leader, from is the leader location (can be a planet, a fleet, an army etc) +# # if the score is 0 or less, the leader will not be assigned to that location +# base = +# modifier = {} +# } +# +# minimum_ai_target = +# +# leader_background_job_weight = { +# job_name = +# # etc +# } +# } +# +# icon = 1 # 1-based index in the icon file. might be replaced by an icon name later +# +# paragon_background_selector = , used to display a background behind paragon portraits +# +# +# How the AI assigns leaders now: +# +# Step 1: Sort all possible location using the NDefines::NAI::LOCATION_WEIGHT_* values (all of them are multipliers except the galactic community which is a flat value) +# Step 2: Sort all available leaders by skill +# Step 3: for each leader in order, calculate a location weight based on the ai_location_weight of their class +# Step 4: Assign the highest leader/location pair based on the weight +# Step 5: if no leader was assigned, see if hiring a leader is possible repeating the same steps + +rg_nanite_leader = { + name = rg_nanite_leader + name_plural = rg_nanite_leader_plural + description = rg_nanite_leader_description + + can_lead_army = yes + can_lead_navy = yes + can_govern_planet = yes + can_be_envoy = yes + can_research_tech = yes + can_research_special_projects = yes + can_crew_science_ship = yes + can_research_anomalies = yes + can_research_archaeology_site = yes + can_survey = yes + can_boost_cloaking_detection = yes + can_explore_rifts = yes + can_conduct_active_reconnaissance = yes + can_govern_planet = yes + can_have_traits = yes + can_rule_empire = yes + recruitable = no + max_trait_points = 3 + leader_capacity = 3 + + ai_weight = { + modifier = { + factor = 0 + } + } + icon = 4 + paragon_background_selector = "paragon_background_selector" +} \ No newline at end of file diff --git a/common/static_modifiers/RG_static_modifiers.txt b/common/static_modifiers/RG_static_modifiers.txt index 3897501..9f89a6a 100644 --- a/common/static_modifiers/RG_static_modifiers.txt +++ b/common/static_modifiers/RG_static_modifiers.txt @@ -47,3 +47,77 @@ gray_affection_warship_lv5 = { ship_ftl_jumpdrive_range_mult = 0.5 force_disparity_fire_rate_mult = 3 } + +skill_rg_nanite_leader_navy = { + ship_weapon_range_mult = 0.05 + ship_hull_mult = 0.05 + ship_fire_rate_mult = 0.1 +} + +skill_rg_nanite_leader_army = { + army_damage_mult = 0.1 + army_morale_damage_mult = 0.1 + army_health = 0.1 + army_morale = 0.1 +} + +skill_rg_nanite_leader = { + custom_tooltip = skill_official_delegate_tt + science_ship_survey_speed = 0.10 + ship_archaeological_site_clues_add = 1 + ship_astral_rift_clues_add = 1 +} + +skill_rg_nanite_leader_planet_governor = { + custom_tooltip = skill_official_planet_governor_tt + planet_jobs_energy_produces_mult = @planet_job_mult + planet_jobs_minerals_produces_mult = @planet_job_mult + planet_jobs_food_produces_mult = @planet_job_mult + planet_jobs_alloys_produces_mult = @planet_job_mult + planet_jobs_consumer_goods_produces_mult = @planet_job_mult + planet_jobs_exotic_gases_produces_mult = @planet_job_mult + planet_jobs_rare_crystals_produces_mult = @planet_job_mult + planet_jobs_volatile_motes_produces_mult = @planet_job_mult + + # planet_jobs_ruler_produces_mult = @negative_planet_job_mult + # planet_jobs_specialist_produces_mult = @negative_planet_job_mult + planet_jobs_worker_produces_mult = @planet_job_mult + planet_jobs_slave_produces_mult = @planet_job_mult + job_soldier_or_warrior_add = 1 + planet_crime_add = -1 + + planet_jobs_physics_research_produces_mult = @planet_job_mult + planet_jobs_society_research_produces_mult = @planet_job_mult + planet_jobs_engineering_research_produces_mult = @planet_job_mult + species_empire_size_mult = @planet_empire_size +} + +skill_rg_nanite_leader_sector_governor = { + custom_tooltip = skill_official_sector_governor_tt + planet_jobs_energy_produces_mult = @sector_job_mult + planet_jobs_minerals_produces_mult = @sector_job_mult + planet_jobs_food_produces_mult = @sector_job_mult + planet_jobs_alloys_produces_mult = @sector_job_mult + planet_jobs_consumer_goods_produces_mult = @sector_job_mult + planet_jobs_exotic_gases_produces_mult = @sector_job_mult + planet_jobs_rare_crystals_produces_mult = @sector_job_mult + planet_jobs_volatile_motes_produces_mult = @sector_job_mult + + # planet_jobs_ruler_produces_mult = @negative_sector_job_mult + # planet_jobs_specialist_produces_mult = @negative_sector_job_mult + planet_jobs_worker_produces_mult = @sector_job_mult + planet_jobs_slave_produces_mult = @sector_job_mult + job_soldier_or_warrior_add = 0.5 + planet_crime_add = -0.5 + + planet_jobs_physics_research_produces_mult = @sector_job_mult + planet_jobs_society_research_produces_mult = @sector_job_mult + planet_jobs_engineering_research_produces_mult = @sector_job_mult + species_empire_size_mult = @sector_empire_size +} + +skill_rg_nanite_leader_background_planet_governor = { + planet_amenities_add = 2 + planet_stability_add = 0.5 + planet_jobs_upkeep_mult = -0.01 +} \ No newline at end of file diff --git a/common/traits/!_RG_gray_goo_traits.txt b/common/traits/!_RG_gray_goo_traits.txt index 437d17d..0491701 100644 --- a/common/traits/!_RG_gray_goo_traits.txt +++ b/common/traits/!_RG_gray_goo_traits.txt @@ -33,65 +33,78 @@ # randomized = no # } -# RG_leader_trait_offical_gray = { -# #唯一特质 -# cost = 0 -# inline_script = { -# script = trait/icon_psionic -# CLASS = leader -# ICON = "GFX_leader_trait_psionic_chosen_one" -# RARITY = paragon -# COUNCIL = no -# TIER = none -# } -# immortal_leaders = yes -# triggered_self_modifier = { -# potential = { -# always = yes -# } -# leader_skill_levels = 1 -# mult = trigger:has_skill -# } -# self_modifier = { -# species_leader_exp_gain = 1 -# } -# councilor_modifier = { -# all_technology_research_speed = 0.5 -# } -# planet_modifier = { -# planet_buildings_cost_mult = -0.4 -# planet_building_build_speed_mult = 0.6 -# planet_jobs_alloys_produces_mult = 0.25 -# planet_jobs_engineering_research_produces_mult = 0.25 -# deposit_blockers_cost_mult = -0.4 -# planet_clear_blocker_time_mult = -0.6 -# } -# sector_modifier = { -# planet_buildings_cost_mult = -0.2 -# planet_building_build_speed_mult = 0.2 -# planet_jobs_alloys_produces_mult = 0.1 -# planet_jobs_engineering_research_produces_mult = 0.1 -# deposit_blockers_cost_mult = -0.2 -# planet_clear_blocker_time_mult = -0.2 -# starbase_shipyard_build_cost_mult = -0.25 -# starbase_shipyard_build_speed_mult = -0.3 -# } -# fleet_modifier = { -# ship_armor_mult = 3.5 -# ship_hull_mult = 3.5 -# ships_upkeep_mult = -0.4 -# ship_hull_regen_add_perc = 5 -# ship_armor_regen_add_perc = 5 -# } -# army_modifier = { -# army_collateral_damage_mult = 0.15 -# army_disengage_chance_mult = 0.5 -# army_health = 0.35 -# } -# leader_class = all -# initial = no -# randomized = no -# } +RG_leader_trait_offical_gray = { + #唯一特质 + cost = 0 + inline_script = { + script = trait/icon_psionic + CLASS = leader + ICON = "GFX_leader_trait_psionic_chosen_one" + RARITY = paragon + COUNCIL = no + TIER = none + } + immortal_leaders = yes + triggered_self_modifier = { + potential = { + always = yes + } + leader_skill_levels = 1 + mult = trigger:has_skill + } + self_modifier = { + species_leader_exp_gain = 1 + } + councilor_modifier = { + all_technology_research_speed = 0.5 + } + planet_modifier = { + planet_buildings_cost_mult = -0.4 + planet_building_build_speed_mult = 0.6 + planet_jobs_alloys_produces_mult = 0.25 + planet_jobs_engineering_research_produces_mult = 0.25 + deposit_blockers_cost_mult = -0.4 + planet_clear_blocker_time_mult = -0.6 + } + sector_modifier = { + planet_buildings_cost_mult = -0.2 + planet_building_build_speed_mult = 0.2 + planet_jobs_alloys_produces_mult = 0.1 + planet_jobs_engineering_research_produces_mult = 0.1 + deposit_blockers_cost_mult = -0.2 + planet_clear_blocker_time_mult = -0.2 + starbase_shipyard_build_cost_mult = -0.25 + starbase_shipyard_build_speed_mult = -0.3 + } + fleet_modifier = { + ship_armor_mult = 3.5 + ship_hull_mult = 3.5 + ships_upkeep_mult = -0.4 + ship_hull_regen_add_perc = 5 + ship_armor_regen_add_perc = 5 + } + army_modifier = { + army_collateral_damage_mult = 0.15 + army_disengage_chance_mult = 0.5 + army_health = 0.35 + } + modifier = { + ship_archaeological_site_excavation_speed_mult = 0.5 + science_ship_survey_speed = 1 + # ship_windup_mult = -1 + # ship_speed_mult = 0.5 + ship_anomaly_generation_chance_mult = -1 + } + triggered_modifier = { + potential = { + has_astral_planes_dlc = yes + } + country_astral_rift_speed_mult = 0.5 + } + leader_class = { rg_nanite_leader } + initial = no + randomized = no +} RG_leader_trait_governor_gray = { #总督特质 @@ -143,7 +156,7 @@ RG_leader_trait_ruler_gray = { cost = 0 inline_script = { script = trait/icon_psionic - CLASS = official + CLASS = leader ICON = "GFX_leader_trait_legendary_spiritualist_two" RARITY = paragon COUNCIL = yes @@ -257,7 +270,7 @@ RG_leader_trait_ruler_gray = { country_base_influence_produces_add = 1 mult = trigger:has_skill } - leader_class = { official } + leader_class = { official rg_nanite_leader } initial = no randomized = no } @@ -383,7 +396,7 @@ RG_leader_trait_admiral_nanorebuild_gray = { cost = 0 inline_script = { script = trait/icon_psionic - CLASS = commander + CLASS = leader ICON = "GFX_leader_trait_nanorebuild" RARITY = paragon COUNCIL = no @@ -405,7 +418,7 @@ RG_leader_trait_admiral_nanorebuild_gray = { army_health = 0.05 mult = owner.rg_general_skill_combat_daypassed_variable } - leader_class = { commander } + leader_class = { commander rg_nanite_leader } initial = no randomized = no } diff --git a/localisation/simp_chinese/RG_l_simp_chinese.yml b/localisation/simp_chinese/RG_l_simp_chinese.yml index bb9bd48..c500032 100644 --- a/localisation/simp_chinese/RG_l_simp_chinese.yml +++ b/localisation/simp_chinese/RG_l_simp_chinese.yml @@ -28,9 +28,14 @@ RG_leader_trait_admiral_nanorebuild_gray_desc:0 "灰色风暴在L星团中席卷无数纪元。\n创造与解构,纳米机器席卷之处我们无所不能。" RG_leader_trait_admiral_nanorebuild_effect:0 "$FLEET_EFFECTS_TXT$:\n$t$每摧毁一艘敌军舰船:\n$tt$§Y重塑计数器层数§!: §G+1§!\n$t$这位领袖所在舰队损失舰船时:\n$tt$消耗§Y重塑计数器层数§!立即重建舰船。\n$t$当前§Y重塑计数器层数§!: §Y[owner.rg_nanorebuild_counter]§!\n$t$§Y$NAME_Gray$§!无法被该技能重建。\n\n$RG_leader_trait_tempest_incoming_effect$" - preset_rg_scion: "誓约计划国" + preset_rg_scion: "§Y誓约计划国§!" preset_rg_scion_desc: "出于某种不可告人的目的,远古堕落帝国将其视若己出。他们的远古宗主不会允许其誓约国受到任何外部干扰。" + rg_nanite_leader:0"§Y纳米机器个体§!" + rg_nanite_leader_plural:0"§Y纳米机器个体§!" + rg_nanite_leader_description:0"§Y本质上是由千千万万纳米机械所组成的个体。因为能做到,所以将无所不能。§!" + rg_nanite_leader_plural_with_icon:0"£offical£ $rg_nanite_leader_plural$" + concept_rg_scion: "$preset_rg_scion$" concept_rg_scion_desc: "$preset_rg_scion_desc$"