Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add sugar/fruits to wheat farms #651

Merged
merged 2 commits into from
Feb 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions common/buildings/02_agro.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ building_wheat_farm = {
production_method_groups = {
pmg_base_building_wheat_farm
pmg_harvesting_process_wheat_farm
pmg_secondary_building_wheat_farm
}

required_construction = construction_cost_low
Expand Down
17 changes: 3 additions & 14 deletions common/history/buildings/02_east_europe.txt
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,7 @@
add_ownership={
country={
country="c:RUS"
levels=10
levels=20
}
}
subsidized=yes
Expand Down Expand Up @@ -955,7 +955,7 @@
add_ownership={
country={
country="c:RUS"
levels=20
levels=25
}
}
subsidized=yes
Expand Down Expand Up @@ -5301,17 +5301,6 @@
}
s:STATE_PODOLIA={
region_state:RUS={
create_building={
building="building_sugar_plantation"
add_ownership={
country={
country="c:RUS"
levels=40
}
}
reserves=1
activate_production_methods={ "pm_default_building_sugar_plantation" "pm_manual_harvesting_plantation" "pm_no_transport_plantation" }
}
create_building={
building="building_food_industry"
add_ownership={
Expand Down Expand Up @@ -5341,7 +5330,7 @@
add_ownership={
country={
country="c:RUS"
levels=15
levels=30
}
}
subsidized=yes
Expand Down
11 changes: 10 additions & 1 deletion common/production_method_groups/02_agro.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,16 @@ pmg_base_building_wheat_farm = {
}
}


pmg_secondary_building_wheat_farm = {
texture = "gfx/interface/icons/generic_icons/mixed_icon_refining.dds"
production_methods = {
pm_no_secondary
pm_citrus_orchards
}
}


pmg_harvesting_process_wheat_farm = {
texture = "gfx/interface/icons/generic_icons/mixed_icon_base.dds"
production_methods = {
Expand Down Expand Up @@ -105,7 +115,6 @@ pmg_harvesting_process_maize_farm = {
}
}


# Millet Farms
pmg_base_building_millet_farm = {
texture = "gfx/interface/icons/generic_icons/mixed_icon_base.dds"
Expand Down
16 changes: 16 additions & 0 deletions common/production_methods/02_agro.txt
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,22 @@ pm_seeds = {
}
}

pm_no_secondary = {
texture = "gfx/interface/icons/production_method_icons/no_orchards.dds"
}

pm_citrus_orchards = {
texture = "gfx/interface/icons/production_method_icons/orchards.dds"

building_modifiers = {
workforce_scaled = {
goods_output_grain_add = -20
goods_output_fruit_add = 4
goods_output_sugar_add = 6
}
}
}

# Rice PMs
pm_simple_farming_building_rice_farm = {
texture = "gfx/interface/icons/production_method_icons/agriculture/simple_farming_base.dds"
Expand Down
2 changes: 1 addition & 1 deletion common/scripted_effects/cwp_onaction_effects.txt
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ onaction_urbanization_modifier = {
}
add = -0.75 # Shifts the value to be between -0.75 and 0.25
multiply = 150 # Scales up value to be between -112.5 and 37.5
min = -75
min = 0
max = 25
round = yes # Modifier ends up being between 75% and -25% birth rate
}
Expand Down
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion localization/english/CWP/CWP_inventions_l_english.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1010,7 +1010,7 @@
intravenous_anesthetic_desc: "An anesthetic that is administered through a vein, inducing a state of unconsciousness or sedation for medical procedures and surgeries."

invitro_fertilization: "Invitro Fertilization"
invitro_fertilization_desc: "A medical procedure that involves fertilizing an egg with sperm outside the body, commonly used to treat infertility and assist with pregnancy in cases of reproductive disorders."
invitro_fertilization_desc: "A medical procedure that involves fertilizing an egg with sperm outside the body, commonly used to treat in fertility and assist with pregnancy in cases of reproductive disorders."

iot_sensors: "Iot Sensors"
iot_sensors_desc: "Sensors that are embedded in objects and connected to the internet, allowing for remote monitoring and control of devices and systems, with applications in smart homes, healthcare, and industrial automation."
Expand Down