diff --git a/Development/Council Task Resources/Beasts of Burden Highres.png b/Development/Council Task Resources/Beasts of Burden Highres.png new file mode 100644 index 0000000000000000000000000000000000000000..b43b9605bf38a026d991f47d1ad37021cddbd1c0 Binary files /dev/null and b/Development/Council Task Resources/Beasts of Burden Highres.png differ diff --git a/Regula_Magistri/common/council_tasks/regula_contubernalis_supervisor_tasks.txt b/Regula_Magistri/common/council_tasks/regula_contubernalis_supervisor_tasks.txt index 29353c3a6f4e8b18146cc6cb61c7c42c1aaed04e..9286b156d73398fbc2cc4ca8172a6c38122078fa 100644 --- a/Regula_Magistri/common/council_tasks/regula_contubernalis_supervisor_tasks.txt +++ b/Regula_Magistri/common/council_tasks/regula_contubernalis_supervisor_tasks.txt @@ -25,3 +25,40 @@ value = 1 # Always a good backup } } + +task_beasts_of_burden = { + position = councillor_contubernalis_supervisor + + effect_desc = task_beasts_of_burden_effect_desc + + task_type = task_type_general + task_progress = task_progress_infinite + + council_owner_modifier = { + name = task_beasts_of_burden + character_capital_county_monthly_development_growth_add = 1 + scale = task_beasts_of_burden_capital_development + } + + council_owner_modifier = { + name = task_beasts_of_burden + domain_tax_mult = 1 + scale = task_beasts_of_burden_domain_tax_mult + } + + council_owner_modifier = { + name = task_beasts_of_burden + build_speed = 1 + scale = task_beasts_of_burden_build_speed + } + + council_owner_modifier = { + name = task_beasts_of_burden + holding_build_speed = 1 + scale = task_beasts_of_burden_holding_build_speed + } + + ai_will_do = { + value = 0 # Always a good backup + } +} diff --git a/Regula_Magistri/common/script_values/regula_councillor_contubernalis_supervisor_script_values.txt b/Regula_Magistri/common/script_values/regula_councillor_contubernalis_supervisor_script_values.txt index 6b0a1f8b75e58dff6cbbced97fcf5337038065ba..1954d99c35df336f3dacbcfda6acc4debc4686cd 100644 --- a/Regula_Magistri/common/script_values/regula_councillor_contubernalis_supervisor_script_values.txt +++ b/Regula_Magistri/common/script_values/regula_councillor_contubernalis_supervisor_script_values.txt @@ -74,11 +74,9 @@ task_sparring_partners_max_effectiveness_scaling = { # Range: [0, 1] task_sparring_partners_effectiveness = { value = contubernalis_supervisor_available_contubernalis - scope:councillor_liege = { - divide = { - value = task_sparring_partners_max_effectiveness_scaling - min = 1 - } + divide = { + value = task_sparring_partners_max_effectiveness_scaling + min = 1 } min = 0 max = 1 @@ -118,3 +116,81 @@ task_sparring_partners_knight_effectiveness_percentage = { value = task_sparring_partners_knight_effectiveness multiply = 100 } + +# The number of available contubernalis at which task_beasts_of_burden reaches +# maximum effectiveness. This is based on the size of the liege's realm. +task_beasts_of_burden_max_effectiveness_scaling = { + value = 0 + scope:councillor_liege = { + add = realm_size + } +} + +# Effectiveness value gained from using contubernalis as manual labor for +# the liege's realm. +# +# Range: [0, 1] +task_beasts_of_burden_effectiveness = { + value = contubernalis_supervisor_available_contubernalis + divide = { + value = task_beasts_of_burden_max_effectiveness_scaling + min = 1 + } + min = 0 + max = 1 +} + +# task_beasts_of_burden_effectiveness as a percentage for descriptions. +task_beasts_of_burden_effectiveness_percentage = { + value = task_beasts_of_burden_effectiveness + multiply = 100 +} + +# The monthly increase in capital development granted by +# task_beasts_of_burden. +# +# Range: [0.25, 1] +task_beasts_of_burden_capital_development = { + value = 0.25 + add = { + value = 0.75 + multiply = contubernalis_supervisor_skill_factor + } + multiply = task_beasts_of_burden_effectiveness +} + +# The domain tax multiplier granted by task_beasts_of_burden. +# +# Range: [0.05, 0.25] +task_beasts_of_burden_domain_tax_mult = { + value = 0.05 + add = { + value = 0.2 + multiply = contubernalis_supervisor_skill_factor + } + multiply = task_beasts_of_burden_effectiveness +} + +# The build_speed granted by task_beasts_of_burden. +# +# Range: [-0.1, -0.5] +task_beasts_of_burden_build_speed = { + value = -0.1 + add = { + value = -0.4 + multiply = contubernalis_supervisor_skill_factor + } + multiply = task_beasts_of_burden_effectiveness +} + +# The holding_build_speed granted by task_beasts_of_burden. +# +# Range: [-0.1, -0.5] +task_beasts_of_burden_holding_build_speed = { + value = -0.1 + add = { + value = -0.4 + multiply = contubernalis_supervisor_skill_factor + } + multiply = task_beasts_of_burden_effectiveness +} diff --git a/Regula_Magistri/gfx/interface/icons/council_task_types/task_beasts_of_burden.dds b/Regula_Magistri/gfx/interface/icons/council_task_types/task_beasts_of_burden.dds new file mode 100644 index 0000000000000000000000000000000000000000..b8577ed4b2d807762701b2045d379459302fa9fe Binary files /dev/null and b/Regula_Magistri/gfx/interface/icons/council_task_types/task_beasts_of_burden.dds differ diff --git a/Regula_Magistri/localization/english/regula_council_tasks_l_english.yml b/Regula_Magistri/localization/english/regula_council_tasks_l_english.yml index 540c9206abb7a4838abb6caf4c3402a40b9f8370..c49cbb259d5b1e71411a60c5a973fb0d52364e43 100644 --- a/Regula_Magistri/localization/english/regula_council_tasks_l_english.yml +++ b/Regula_Magistri/localization/english/regula_council_tasks_l_english.yml @@ -108,3 +108,11 @@ task_sparring_partners_precise_desc:0 "$regula_contubernalis_supervisor_skill$:\n[prowess_skill|E]: #P [SCOPE.ScriptValue('task_sparring_partners_magister_prowess')]#!\n\n$regula_contubernalis_supervisor_skill_and_effectiveness$\n[knight_effectiveness|E]: #P +[SCOPE.ScriptValue('task_sparring_partners_knight_effectiveness_percentage')|1]%#!." task_sparring_partners_flavor_desc:0 "#weak The $councillor_contubernalis_supervisor$ organizes the Magister's contubernales to act as sparring partners for [councillor_liege.GetHerHis] [councillor_liege.Custom('KnightCulturePluralNoTooltip')], using the left over time to polish the Magister's skills.#!" task_sparring_partners_effect_desc:0 "$task_sparring_partners_explain_desc$\n\n$task_sparring_partners_effectiveness_desc$\n\n$task_sparring_partners_precise_desc$\n\n$task_sparring_partners_flavor_desc$" + + # Beasts of Burden + task_beasts_of_burden:0 "Beasts of Burden" + task_beasts_of_burden_explain_desc:0 "Increases the Magister's capital [development_growth|E] by #P 0.25-1.0#! monthly, [domain_taxes|E] by #P 5-25%#!, and reduces building and holding construction time by #P 10-50%#!." + task_beasts_of_burden_effectiveness_desc:0 "Maximum Effectiveness when available Contubernalis courtiers ([SCOPE.ScriptValue('contubernalis_supervisor_available_contubernalis')]) greater than or equal to [realm_size|E] ([SCOPE.ScriptValue('task_beasts_of_burden_max_effectiveness_scaling')]). Current Effectiveness: #P [SCOPE.ScriptValue('task_beasts_of_burden_effectiveness_percentage')|1]%#!" + task_beasts_of_burden_precise_desc:0 "$regula_contubernalis_supervisor_skill_and_effectiveness$:\n[councillor.GetModifierDescForTask('task_beasts_of_burden')]" + task_beasts_of_burden_flavor_desc:0 "#weak The $councillor_contubernalis_supervisor$ directs the Magister's contubernales to perform menial labor throughout the realm, acting as an unresting workforce.#!" + task_beasts_of_burden_effect_desc:0 "$task_beasts_of_burden_explain_desc$\n\n$task_beasts_of_burden_effectiveness_desc$\n\n$task_beasts_of_burden_precise_desc$\n\n$task_beasts_of_burden_flavor_desc$"