From 6655907ec31761cdc71d0f3ef1b7e10f1b138681 Mon Sep 17 00:00:00 2001 From: Fishedotjpg Date: Sun, 1 Mar 2026 15:47:00 +0000 Subject: [PATCH] potatoes --- .../N3OW_standard_economy_buildings.txt | 775 +++++++++++++++++- .../icons/building_types/building_potato.dds | 3 + 2 files changed, 777 insertions(+), 1 deletion(-) create mode 100644 gfx/interface/icons/building_types/building_potato.dds diff --git a/common/buildings/N3OW_standard_economy_buildings.txt b/common/buildings/N3OW_standard_economy_buildings.txt index 9e7e5754..9875398a 100644 --- a/common/buildings/N3OW_standard_economy_buildings.txt +++ b/common/buildings/N3OW_standard_economy_buildings.txt @@ -597,4 +597,777 @@ leclerc_dyeworks_03 = { ai_general_building_modifier = yes directive_to_build_economy_modifier = yes } -} \ No newline at end of file +} + +potato_fields_01 = { + construction_time = standard_construction_time + effect_desc = potato_fields_effect_desc + + can_construct_potential = { + building_potato_fields_requirement_terrain = yes + } + + can_construct = { + building_requirement_castle_city_church = { LEVEL = 01 } + } + + can_construct_showing_failures_only = { + building_requirement_tribal = no + } + + cost_gold = normal_building_tier_1_cost + + province_modifier = { + monthly_income = good_building_tax_tier_1 + } + province_terrain_modifier = { + terrain = steppe + development_growth_factor = 0.04 + tax_mult = innovation_champa_rice_tax_mult_value_1 + levy_size = innovation_champa_rice_levy_size_value_1 + development_growth_factor = innovation_champa_rice_development_growth_factor_value_1 + } + + province_terrain_modifier = { + terrain = plains + development_growth_factor = 0.04 + tax_mult = innovation_champa_rice_tax_mult_value_1 + levy_size = innovation_champa_rice_levy_size_value_1 + development_growth_factor = innovation_champa_rice_development_growth_factor_value_1 + } + + province_terrain_modifier = { + terrain = farmlands + development_growth_factor = 0.04 + tax_mult = innovation_champa_rice_tax_mult_value_1 + levy_size = innovation_champa_rice_levy_size_value_1 + development_growth_factor = innovation_champa_rice_development_growth_factor_value_1 + } + + province_culture_modifier = { + parameter = collective_lands_farms_bonuses + stationed_maa_damage_mult = normal_maa_damage_tier_1 + stationed_maa_toughness_mult = normal_maa_toughness_tier_1 + } + province_culture_modifier = { + parameter = brewery_farming_bonus + county_opinion_add = 2 + } + + on_complete = { + #Mandala Creator Aspect + creator_mandala_built_regular_building_piety_effect = yes + } + + next_building = potato_fields_02 + + type_icon = "building_potato.dds" + + ai_value = { + base = 15 # potato fields should take priority when possible + ai_tier_1_building_modifier = yes + ai_tier_1_economical_building_preference_modifier = yes + ai_potato_fields_improvement_from_culture_modifier = yes # Only on the level 1 to secure having pasture when the AI is from an appropriate culture + ai_general_building_modifier = yes + directive_to_build_economy_modifier = yes + modifier = { + factor = 2 + scope:holder.capital_province = this + } + modifier = { + factor = 2 + scope:holder.culture = { has_innovation = innovation_champa_rice } + } + modifier = { + factor = 0 + scope:holder.culture = { has_innovation = innovation_champa_rice } # this also allows farm estates to be built in rice fields + NOT = { + has_building_or_higher = farm_estates_01 + } + } + modifier = { + factor = 0 + building_orchards_requirement_terrain = yes + NOT = { + has_building_or_higher = orchards_01 + } + } + } +} + +potato_fields_02 = { + construction_time = standard_construction_time + effect_desc = potato_fields_effect_desc + + can_construct_potential = { + building_potato_fields_requirement_terrain = yes + } + + can_construct = { + building_requirement_castle_city_church = { LEVEL = 01 } + } + + can_construct_showing_failures_only = { + building_requirement_tribal = no + } + + cost_gold = normal_building_tier_2_cost + + province_modifier = { + monthly_income = good_building_tax_tier_2 + } + + province_terrain_modifier = { + terrain = mountains + development_growth_factor = 0.04 + tax_mult = innovation_champa_rice_tax_mult_value_1 + levy_size = innovation_champa_rice_levy_size_value_1 + development_growth_factor = innovation_champa_rice_development_growth_factor_value_1 + } + province_terrain_modifier = { + terrain = tells + development_growth_factor = 0.04 + tax_mult = innovation_champa_rice_tax_mult_value_1 + levy_size = innovation_champa_rice_levy_size_value_1 + development_growth_factor = innovation_champa_rice_development_growth_factor_value_1 + } + province_terrain_modifier = { + terrain = hills + development_growth_factor = 0.04 + tax_mult = innovation_champa_rice_tax_mult_value_1 + levy_size = innovation_champa_rice_levy_size_value_1 + development_growth_factor = innovation_champa_rice_development_growth_factor_value_1 + } + province_terrain_modifier = { + terrain = steppe + development_growth_factor = 0.08 + tax_mult = innovation_champa_rice_tax_mult_value_2 + levy_size = innovation_champa_rice_levy_size_value_2 + development_growth_factor = innovation_champa_rice_development_growth_factor_value_2 + } + + province_terrain_modifier = { + terrain = plains + development_growth_factor = 0.08 + tax_mult = innovation_champa_rice_tax_mult_value_2 + levy_size = innovation_champa_rice_levy_size_value_2 + development_growth_factor = innovation_champa_rice_development_growth_factor_value_2 + } + + province_terrain_modifier = { + terrain = farmlands + development_growth_factor = 0.08 + tax_mult = innovation_champa_rice_tax_mult_value_2 + levy_size = innovation_champa_rice_levy_size_value_2 + development_growth_factor = innovation_champa_rice_development_growth_factor_value_2 + } + + province_culture_modifier = { + parameter = collective_lands_farms_bonuses + stationed_maa_damage_mult = normal_maa_damage_tier_2 + stationed_maa_toughness_mult = normal_maa_toughness_tier_2 + } + on_complete = { + #Mandala Creator Aspect + creator_mandala_built_regular_building_piety_effect = yes + } + + next_building = potato_fields_03 + type_icon = "building_potato.dds" + + ai_value = { + base = 9 + ai_general_building_modifier = yes + directive_to_build_economy_modifier = yes + ai_economical_building_preference_modifier = yes + modifier = { # Fill all building slots before going for upgrades + factor = 0 + free_building_slots > 0 + } + } +} + +potato_fields_03 = { + construction_time = standard_construction_time + effect_desc = potato_fields_effect_desc + + can_construct_potential = { + building_potato_fields_requirement_terrain = yes + } + + can_construct = { + building_requirement_castle_city_church = { LEVEL = 02 } + scope:holder.culture = { + has_innovation = innovation_manorialism + } + } + + can_construct_showing_failures_only = { + building_requirement_tribal = no + } + + cost_gold = normal_building_tier_3_cost + + province_modifier = { + monthly_income = good_building_tax_tier_3 + } + + county_modifier = { + supply_limit = 400 + } + + province_terrain_modifier = { + terrain = mountains + development_growth_factor = 0.08 + tax_mult = innovation_champa_rice_tax_mult_value_1 + levy_size = innovation_champa_rice_levy_size_value_1 + development_growth_factor = innovation_champa_rice_development_growth_factor_value_1 + } + province_terrain_modifier = { + terrain = tells + development_growth_factor = 0.08 + tax_mult = innovation_champa_rice_tax_mult_value_1 + levy_size = innovation_champa_rice_levy_size_value_1 + development_growth_factor = innovation_champa_rice_development_growth_factor_value_1 + } + province_terrain_modifier = { + terrain = hills + development_growth_factor = 0.08 + tax_mult = innovation_champa_rice_tax_mult_value_1 + levy_size = innovation_champa_rice_levy_size_value_1 + development_growth_factor = innovation_champa_rice_development_growth_factor_value_1 + } + province_terrain_modifier = { + terrain = steppe + development_growth_factor = 0.10 + tax_mult = innovation_champa_rice_tax_mult_value_2 + levy_size = innovation_champa_rice_levy_size_value_2 + development_growth_factor = innovation_champa_rice_development_growth_factor_value_2 + } + + province_terrain_modifier = { + terrain = plains + development_growth_factor = 0.10 + tax_mult = innovation_champa_rice_tax_mult_value_2 + levy_size = innovation_champa_rice_levy_size_value_2 + development_growth_factor = innovation_champa_rice_development_growth_factor_value_2 + } + + province_terrain_modifier = { + terrain = farmlands + development_growth_factor = 0.10 + tax_mult = innovation_champa_rice_tax_mult_value_2 + levy_size = innovation_champa_rice_levy_size_value_2 + development_growth_factor = innovation_champa_rice_development_growth_factor_value_2 + } + + province_culture_modifier = { + parameter = collective_lands_farms_bonuses + stationed_maa_damage_mult = normal_maa_damage_tier_3 + stationed_maa_toughness_mult = normal_maa_toughness_tier_3 + } + on_complete = { + #Mandala Creator Aspect + creator_mandala_built_regular_building_piety_effect = yes + } + + next_building = potato_fields_04 + type_icon = "building_potato.dds" + + ai_value = { + base = 8 + ai_general_building_modifier = yes + directive_to_build_economy_modifier = yes + ai_economical_building_preference_modifier = yes + } +} + +potato_fields_04 = { + construction_time = standard_construction_time + effect_desc = potato_fields_effect_desc + + can_construct_potential = { + building_potato_fields_requirement_terrain = yes + } + + can_construct = { + building_requirement_castle_city_church = { LEVEL = 02 } + scope:holder.culture = { + has_innovation = innovation_manorialism + } + } + + can_construct_showing_failures_only = { + building_requirement_tribal = no + } + + cost_gold = normal_building_tier_4_cost + + province_modifier = { + monthly_income = good_building_tax_tier_4 + } + + county_modifier = { + supply_limit = 400 + development_growth_factor = 0.05 + } + + province_terrain_modifier = { + terrain = mountains + development_growth_factor = 0.10 + tax_mult = innovation_champa_rice_tax_mult_value_1 + levy_size = innovation_champa_rice_levy_size_value_1 + development_growth_factor = innovation_champa_rice_development_growth_factor_value_1 + } + province_terrain_modifier = { + terrain = tells + development_growth_factor = 0.10 + tax_mult = innovation_champa_rice_tax_mult_value_1 + levy_size = innovation_champa_rice_levy_size_value_1 + development_growth_factor = innovation_champa_rice_development_growth_factor_value_1 + } + province_terrain_modifier = { + terrain = hills + development_growth_factor = 0.10 + tax_mult = innovation_champa_rice_tax_mult_value_1 + levy_size = innovation_champa_rice_levy_size_value_1 + development_growth_factor = innovation_champa_rice_development_growth_factor_value_1 + } + province_terrain_modifier = { + terrain = steppe + development_growth_factor = 0.12 + tax_mult = innovation_champa_rice_tax_mult_value_2 + levy_size = innovation_champa_rice_levy_size_value_2 + development_growth_factor = innovation_champa_rice_development_growth_factor_value_2 + } + + province_terrain_modifier = { + terrain = plains + development_growth_factor = 0.12 + tax_mult = innovation_champa_rice_tax_mult_value_2 + levy_size = innovation_champa_rice_levy_size_value_2 + development_growth_factor = innovation_champa_rice_development_growth_factor_value_2 + } + + province_terrain_modifier = { + terrain = farmlands + development_growth_factor = 0.12 + tax_mult = innovation_champa_rice_tax_mult_value_2 + levy_size = innovation_champa_rice_levy_size_value_2 + development_growth_factor = innovation_champa_rice_development_growth_factor_value_2 + } + + province_culture_modifier = { + parameter = collective_lands_farms_bonuses + stationed_maa_damage_mult = normal_maa_damage_tier_4 + stationed_maa_toughness_mult = normal_maa_toughness_tier_4 + } + + on_complete = { + #Mandala Creator Aspect + creator_mandala_built_regular_building_piety_effect = yes + } + + next_building = potato_fields_05 + type_icon = "building_potato.dds" + + ai_value = { + base = 7 + ai_general_building_modifier = yes + directive_to_build_economy_modifier = yes + ai_economical_building_preference_modifier = yes + } +} + +potato_fields_05 = { + construction_time = standard_construction_time + effect_desc = potato_fields_effect_desc + + can_construct_potential = { + building_potato_fields_requirement_terrain = yes + } + + can_construct = { + building_requirement_castle_city_church = { LEVEL = 03 } + scope:holder.culture = { + has_innovation = innovation_guilds + } + } + + can_construct_showing_failures_only = { + building_requirement_tribal = no + } + + cost_gold = normal_building_tier_5_cost + + province_modifier = { + monthly_income = good_building_tax_tier_5 + } + + county_modifier = { + supply_limit = 400 + development_growth_factor = 0.05 + supply_limit_mult = 0.05 + } + + province_terrain_modifier = { + terrain = mountains + development_growth_factor = 0.12 + tax_mult = innovation_champa_rice_tax_mult_value_2 + levy_size = innovation_champa_rice_levy_size_value_2 + development_growth_factor = innovation_champa_rice_development_growth_factor_value_2 + } + province_terrain_modifier = { + terrain = tells + development_growth_factor = 0.12 + tax_mult = innovation_champa_rice_tax_mult_value_2 + levy_size = innovation_champa_rice_levy_size_value_2 + development_growth_factor = innovation_champa_rice_development_growth_factor_value_2 + } + province_terrain_modifier = { + terrain = hills + development_growth_factor = 0.12 + tax_mult = innovation_champa_rice_tax_mult_value_2 + levy_size = innovation_champa_rice_levy_size_value_2 + development_growth_factor = innovation_champa_rice_development_growth_factor_value_2 + } + province_terrain_modifier = { + terrain = steppe + development_growth_factor = 0.14 + tax_mult = innovation_champa_rice_tax_mult_value_3 + levy_size = innovation_champa_rice_levy_size_value_3 + development_growth_factor = innovation_champa_rice_development_growth_factor_value_3 + } + + province_terrain_modifier = { + terrain = plains + development_growth_factor = 0.14 + tax_mult = innovation_champa_rice_tax_mult_value_3 + levy_size = innovation_champa_rice_levy_size_value_3 + development_growth_factor = innovation_champa_rice_development_growth_factor_value_3 + } + + province_terrain_modifier = { + terrain = farmlands + development_growth_factor = 0.14 + tax_mult = innovation_champa_rice_tax_mult_value_3 + levy_size = innovation_champa_rice_levy_size_value_3 + development_growth_factor = innovation_champa_rice_development_growth_factor_value_3 + } + + province_culture_modifier = { + parameter = collective_lands_farms_bonuses + stationed_maa_damage_mult = normal_maa_damage_tier_5 + stationed_maa_toughness_mult = normal_maa_toughness_tier_5 + } + + on_complete = { + #Mandala Creator Aspect + creator_mandala_built_regular_building_piety_effect = yes + } + + next_building = potato_fields_06 + type_icon = "building_potato.dds" + + ai_value = { + base = 6 + ai_general_building_modifier = yes + directive_to_build_economy_modifier = yes + ai_economical_building_preference_modifier = yes + } +} + +potato_fields_06 = { + construction_time = standard_construction_time + effect_desc = potato_fields_effect_desc + + can_construct_potential = { + building_potato_fields_requirement_terrain = yes + } + + can_construct = { + building_requirement_castle_city_church = { LEVEL = 03 } + scope:holder.culture = { + has_innovation = innovation_guilds + } + } + + can_construct_showing_failures_only = { + building_requirement_tribal = no + } + + cost_gold = normal_building_tier_6_cost + + province_modifier = { + monthly_income = good_building_tax_tier_6 + } + + county_modifier = { + supply_limit = 400 + development_growth_factor = 0.05 + supply_limit_mult = 0.05 + church_holding_build_gold_cost = -0.05 + } + province_terrain_modifier = { + terrain = mountains + development_growth_factor = 0.14 + tax_mult = innovation_champa_rice_tax_mult_value_2 + levy_size = innovation_champa_rice_levy_size_value_2 + development_growth_factor = innovation_champa_rice_development_growth_factor_value_2 + } + province_terrain_modifier = { + terrain = tells + development_growth_factor = 0.14 + tax_mult = innovation_champa_rice_tax_mult_value_2 + levy_size = innovation_champa_rice_levy_size_value_2 + development_growth_factor = innovation_champa_rice_development_growth_factor_value_2 + } + province_terrain_modifier = { + terrain = hills + development_growth_factor = 0.14 + tax_mult = innovation_champa_rice_tax_mult_value_2 + levy_size = innovation_champa_rice_levy_size_value_2 + development_growth_factor = innovation_champa_rice_development_growth_factor_value_2 + } + province_terrain_modifier = { + terrain = steppe + development_growth_factor = 0.16 + tax_mult = innovation_champa_rice_tax_mult_value_3 + levy_size = innovation_champa_rice_levy_size_value_3 + development_growth_factor = innovation_champa_rice_development_growth_factor_value_3 + } + + province_terrain_modifier = { + terrain = plains + development_growth_factor = 0.16 + tax_mult = innovation_champa_rice_tax_mult_value_3 + levy_size = innovation_champa_rice_levy_size_value_3 + development_growth_factor = innovation_champa_rice_development_growth_factor_value_3 + } + + province_terrain_modifier = { + terrain = farmlands + development_growth_factor = 0.16 + tax_mult = innovation_champa_rice_tax_mult_value_3 + levy_size = innovation_champa_rice_levy_size_value_3 + development_growth_factor = innovation_champa_rice_development_growth_factor_value_3 + } + + province_culture_modifier = { + parameter = collective_lands_farms_bonuses + stationed_maa_damage_mult = normal_maa_damage_tier_6 + stationed_maa_toughness_mult = normal_maa_toughness_tier_6 + } + + on_complete = { + #Mandala Creator Aspect + creator_mandala_built_regular_building_piety_effect = yes + } + + next_building = potato_fields_07 + type_icon = "building_potato.dds" + + ai_value = { + base = 5 + ai_general_building_modifier = yes + directive_to_build_economy_modifier = yes + ai_economical_building_preference_modifier = yes + } +} + +potato_fields_07 = { + construction_time = standard_construction_time + effect_desc = potato_fields_effect_desc + + can_construct_potential = { + building_potato_fields_requirement_terrain = yes + } + + can_construct = { + building_requirement_castle_city_church = { LEVEL = 04 } + scope:holder.culture = { + has_innovation = innovation_cranes + } + } + + can_construct_showing_failures_only = { + building_requirement_tribal = no + } + + cost_gold = normal_building_tier_7_cost + + province_modifier = { + monthly_income = good_building_tax_tier_7 + } + + county_modifier = { + levy_reinforcement_rate = 0.05 + supply_limit = 400 + development_growth_factor = 0.05 + supply_limit_mult = 0.05 + city_holding_build_gold_cost = -0.05 + } + + province_terrain_modifier = { + terrain = mountains + development_growth_factor = 0.16 + tax_mult = innovation_champa_rice_tax_mult_value_3 + levy_size = innovation_champa_rice_levy_size_value_3 + development_growth_factor = innovation_champa_rice_development_growth_factor_value_3 + } + province_terrain_modifier = { + terrain = tells + development_growth_factor = 0.16 + tax_mult = innovation_champa_rice_tax_mult_value_3 + levy_size = innovation_champa_rice_levy_size_value_3 + development_growth_factor = innovation_champa_rice_development_growth_factor_value_3 + } + province_terrain_modifier = { + terrain = hills + development_growth_factor = 0.16 + tax_mult = innovation_champa_rice_tax_mult_value_3 + levy_size = innovation_champa_rice_levy_size_value_3 + development_growth_factor = innovation_champa_rice_development_growth_factor_value_3 + } + province_terrain_modifier = { + terrain = steppe + development_growth_factor = 0.18 + tax_mult = innovation_champa_rice_tax_mult_value_4 + levy_size = innovation_champa_rice_levy_size_value_4 + development_growth_factor = innovation_champa_rice_development_growth_factor_value_4 + } + + province_terrain_modifier = { + terrain = plains + development_growth_factor = 0.18 + tax_mult = innovation_champa_rice_tax_mult_value_4 + levy_size = innovation_champa_rice_levy_size_value_4 + development_growth_factor = innovation_champa_rice_development_growth_factor_value_4 + } + + province_terrain_modifier = { + terrain = farmlands + development_growth_factor = 0.18 + tax_mult = innovation_champa_rice_tax_mult_value_4 + levy_size = innovation_champa_rice_levy_size_value_4 + development_growth_factor = innovation_champa_rice_development_growth_factor_value_4 + } + + province_culture_modifier = { + parameter = collective_lands_farms_bonuses + stationed_maa_damage_mult = normal_maa_damage_tier_7 + stationed_maa_toughness_mult = normal_maa_toughness_tier_7 + } + + on_complete = { + #Mandala Creator Aspect + creator_mandala_built_regular_building_piety_effect = yes + } + + next_building = potato_fields_08 + type_icon = "building_potato.dds" + + ai_value = { + base = 4 + ai_general_building_modifier = yes + directive_to_build_economy_modifier = yes + ai_economical_building_preference_modifier = yes + } +} + +potato_fields_08 = { + construction_time = standard_construction_time + effect_desc = potato_fields_effect_desc + + can_construct_potential = { + building_potato_fields_requirement_terrain = yes + } + + can_construct = { + building_requirement_castle_city_church = { LEVEL = 04 } + scope:holder.culture = { + has_innovation = innovation_cranes + } + } + + can_construct_showing_failures_only = { + building_requirement_tribal = no + } + + cost_gold = normal_building_tier_8_cost + + province_modifier = { + monthly_income = good_building_tax_tier_8 + } + + province_terrain_modifier = { + terrain = mountains + development_growth_factor = 0.18 + tax_mult = innovation_champa_rice_tax_mult_value_3 + levy_size = innovation_champa_rice_levy_size_value_3 + development_growth_factor = innovation_champa_rice_development_growth_factor_value_3 + } + province_terrain_modifier = { + terrain = tells + development_growth_factor = 0.18 + tax_mult = innovation_champa_rice_tax_mult_value_3 + levy_size = innovation_champa_rice_levy_size_value_3 + development_growth_factor = innovation_champa_rice_development_growth_factor_value_3 + } + province_terrain_modifier = { + terrain = hills + development_growth_factor = 0.18 + tax_mult = innovation_champa_rice_tax_mult_value_3 + levy_size = innovation_champa_rice_levy_size_value_3 + development_growth_factor = innovation_champa_rice_development_growth_factor_value_3 + } + province_terrain_modifier = { + terrain = steppe + development_growth_factor = 0.20 + tax_mult = innovation_champa_rice_tax_mult_value_4 + levy_size = innovation_champa_rice_levy_size_value_4 + development_growth_factor = innovation_champa_rice_development_growth_factor_value_4 + } + + province_terrain_modifier = { + terrain = plains + development_growth_factor = 0.20 + tax_mult = innovation_champa_rice_tax_mult_value_4 + levy_size = innovation_champa_rice_levy_size_value_4 + development_growth_factor = innovation_champa_rice_development_growth_factor_value_4 + } + + province_terrain_modifier = { + terrain = farmlands + development_growth_factor = 0.20 + tax_mult = innovation_champa_rice_tax_mult_value_4 + levy_size = innovation_champa_rice_levy_size_value_4 + development_growth_factor = innovation_champa_rice_development_growth_factor_value_4 + } + + county_modifier = { + levy_reinforcement_rate = 0.05 + supply_limit = 1600 + development_growth_factor = 0.05 + supply_limit_mult = 0.05 + city_holding_build_gold_cost = -0.05 + } + + province_culture_modifier = { + parameter = collective_lands_farms_bonuses + stationed_maa_damage_mult = normal_maa_damage_tier_8 + stationed_maa_toughness_mult = normal_maa_toughness_tier_8 + } + + on_complete = { + #Mandala Creator Aspect + creator_mandala_built_regular_building_piety_effect = yes + } + + ai_value = { + base = 3 + ai_general_building_modifier = yes + directive_to_build_economy_modifier = yes + ai_economical_building_preference_modifier = yes + } +} diff --git a/gfx/interface/icons/building_types/building_potato.dds b/gfx/interface/icons/building_types/building_potato.dds new file mode 100644 index 00000000..9b689cb8 --- /dev/null +++ b/gfx/interface/icons/building_types/building_potato.dds @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:824f029af63422447607273dc295424b4e25afe345bf0f1e508a0d0a2491be72 +size 20976