Skip to content

Commit

Permalink
fix for sat complex modifier only appearing once
Browse files Browse the repository at this point in the history
PDX changed planet modifier behaviour to be unique, so sat habs stopped working, switched it to generate a deposit instead.
  • Loading branch information
draconas1 committed Aug 11, 2022
1 parent 4f44f7b commit f8893aa
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 1 deletion.
21 changes: 21 additions & 0 deletions common/deposits/starborn-deposits.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,27 @@ d_starborn_nanites = {
}
}

drop_weight = {
weight = 0
}
}

d_starborn_habitat_complex = {
icon = "unused/d_satellite_in_orbit"
category = deposit_cat_rare
is_for_colonizable = yes

potential = {
can_have_habitable_deposits = yes
is_planet_class = pc_habitat
}

planet_modifier = {
planet_max_districts_add = 6
planet_crime_mult = 0.1
planet_amenities_mult = -0.05
}

drop_weight = {
weight = 0
}
Expand Down
4 changes: 3 additions & 1 deletion common/megastructures/starborn-habitats.txt
Original file line number Diff line number Diff line change
Expand Up @@ -282,9 +282,11 @@ starborn_habitat_expander = {
}

add_modifier = {
modifier = starborn_habitat_complex
modifier = starborn_habitat_complex_blank
days = -1
}

add_deposit = d_starborn_habitat_complex

starborn_hab_init_deposits = yes
save_event_target_as = target
Expand Down
6 changes: 6 additions & 0 deletions common/static_modifiers/starborn-planet size-modifiers.txt
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,16 @@ starborn_starting_habitat_districts_galatic_wonders = {
icon_frame = 1
}

# TODO remove me next release
starborn_habitat_complex = {
planet_max_districts_add = 6
planet_crime_mult = 0.1
planet_amenities_mult = -0.05
icon = "gfx/interface/icons/planet_modifiers/pm_land_appropriated.dds"
icon_frame = 2
}

starborn_habitat_complex_blank = {
icon = "gfx/interface/icons/planet_modifiers/pm_land_appropriated.dds"
icon_frame = 2
}
Original file line number Diff line number Diff line change
Expand Up @@ -141,3 +141,6 @@

d_starborn_refund_size_4:0 "$d_starborn_refund_size_2$"
d_starborn_refund_size_4_desc:0 "$d_starborn_refund_size_2_desc$"

d_starborn_habitat_complex:0 "$starborn_habitat_complex$"
d_starborn_habitat_complex_desc:0 "$starborn_habitat_complex_desc$"
3 changes: 3 additions & 0 deletions localisation/english/starborn_modifiers_l_english.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@
starborn_habitat_complex:0 "§Y$starborn_habitat_expander_plural$§!"
starborn_habitat_complex_desc:0 "This Habitat has §Y$starborn_habitat_expander$§! around another planet in this system, increasing the number and potentially the type of districts, but the distributed nature leaves a lot of places to hide illegal activity"

starborn_habitat_complex_blank:0 "§Y$starborn_habitat_complex$§!"
starborn_habitat_complex_blank_desc:0 "$starborn_habitat_complex_desc$"

starborn_died_of_disease:0 "Disease Deaths"
starborn_died_of_disease_desc:0 "Our peoples poor immune systems combined with insufficient investment in medical care resulted in many deaths in an epidemic"

Expand Down

0 comments on commit f8893aa

Please sign in to comment.