Disease tweaks
This commit is contained in:
parent
f2974b03b2
commit
884ac18c56
4 changed files with 343 additions and 319 deletions
|
|
@ -1,319 +1,319 @@
|
|||
@default_tile_multiplier = 0.009702
|
||||
|
||||
smallpox = {
|
||||
trait = smallpox
|
||||
color = { 88 12 31 }
|
||||
priority = 3
|
||||
|
||||
shader_data = {
|
||||
strength = 0.8
|
||||
edge_fade = 0.25
|
||||
tile_multiplier = 0.004702
|
||||
texture_index = 0
|
||||
channel = alpha
|
||||
}
|
||||
|
||||
name = {
|
||||
first_valid = {
|
||||
triggered_desc = {
|
||||
trigger = {
|
||||
outbreak_intensity = apocalyptic
|
||||
outbreak_province = province:3045
|
||||
}
|
||||
desc = epidemic_bonifacy_gift
|
||||
}
|
||||
triggered_desc = {
|
||||
trigger = {
|
||||
outbreak_intensity = apocalyptic
|
||||
outbreak_province = province:7596
|
||||
}
|
||||
desc = epidemic_raqguul_plague
|
||||
}
|
||||
random_valid = {
|
||||
triggered_desc = {
|
||||
trigger = {
|
||||
outbreak_intensity = apocalyptic
|
||||
outbreak_province = {
|
||||
geographical_region = ghw_region_egypt
|
||||
county.faith.religion = { is_in_family = rf_abrahamic }
|
||||
}
|
||||
}
|
||||
desc = epidemic_eleventh_plague
|
||||
}
|
||||
desc = epidemic_rulers_pox
|
||||
desc = epidemic_titled_rulers_pox
|
||||
desc = epidemic_animal_pox # Monkeypox, chickenpox and the like
|
||||
desc = epidemic_realm_pox
|
||||
desc = epidemic_holder_pox
|
||||
desc = epidemic_culture_pox
|
||||
desc = epidemic_location_pox
|
||||
}
|
||||
desc = trait_smallpox
|
||||
}
|
||||
}
|
||||
|
||||
on_start = {
|
||||
# LEGITIMACY LOSS FROM EPIDEMIC OUTBREAK
|
||||
epidemic_outbreak_legitimacy_effect = { PROVINCE = root.outbreak_province }
|
||||
#if = {
|
||||
# limit = {
|
||||
# outbreak_intensity = apocalyptic
|
||||
# }
|
||||
# if = {
|
||||
# limit = {
|
||||
# NOT = {
|
||||
# exists = global_var:epidemic_smallpox_apocalyptic
|
||||
# }
|
||||
# }
|
||||
# set_global_variable = {
|
||||
# name = epidemic_smallpox_apocalyptic
|
||||
# value = 1
|
||||
# }
|
||||
# }
|
||||
# else = {
|
||||
# change_global_variable = {
|
||||
# name = epidemic_smallpox_apocalyptic
|
||||
# add = 1
|
||||
# }
|
||||
# }
|
||||
#}
|
||||
#else_if = {
|
||||
# limit = {
|
||||
# outbreak_intensity = major
|
||||
# }
|
||||
# if = {
|
||||
# limit = {
|
||||
# NOT = {
|
||||
# exists = global_var:epidemic_smallpox_major
|
||||
# }
|
||||
# }
|
||||
# set_global_variable = {
|
||||
# name = epidemic_smallpox_major
|
||||
# value = 1
|
||||
# }
|
||||
# }
|
||||
# else = {
|
||||
# change_global_variable = {
|
||||
# name = epidemic_smallpox_major
|
||||
# add = 1
|
||||
# }
|
||||
# }
|
||||
#}
|
||||
#else = {
|
||||
# if = {
|
||||
# limit = {
|
||||
# NOT = {
|
||||
# exists = global_var:epidemic_smallpox_minor
|
||||
# }
|
||||
# }
|
||||
# set_global_variable = {
|
||||
# name = epidemic_smallpox_minor
|
||||
# value = 1
|
||||
# }
|
||||
# }
|
||||
# else = {
|
||||
# change_global_variable = {
|
||||
# name = epidemic_smallpox_minor
|
||||
# add = 1
|
||||
# }
|
||||
# }
|
||||
#}
|
||||
}
|
||||
|
||||
on_monthly = {
|
||||
trigger_event = {
|
||||
on_action = epidemic_ongoing_events
|
||||
}
|
||||
}
|
||||
|
||||
character_infection_chance = {
|
||||
value = character_infection_chance_default_value
|
||||
}
|
||||
|
||||
can_infect_character = {
|
||||
can_contract_disease_trigger = { DISEASE = smallpox }
|
||||
immune_to_epidemic = { EPIDEMIC = scope:epidemic }
|
||||
}
|
||||
|
||||
on_character_infected = {
|
||||
contract_disease_notify_effect = { DISEASE = smallpox }
|
||||
if = {
|
||||
limit = {
|
||||
is_commanding_army = yes
|
||||
}
|
||||
trigger_event = epidemic_events.0001 #we infect your army
|
||||
}
|
||||
}
|
||||
|
||||
infection_levels = {
|
||||
10 = {
|
||||
province_modifier = {
|
||||
county_opinion_add = -2
|
||||
epidemic_travel_danger = 10
|
||||
development_decline = -1
|
||||
}
|
||||
}
|
||||
50 = {
|
||||
province_modifier = {
|
||||
county_opinion_add = -3
|
||||
epidemic_travel_danger = 20
|
||||
development_decline = -2
|
||||
}
|
||||
}
|
||||
80 = {
|
||||
province_modifier = {
|
||||
monthly_county_control_decline_add = -0.1
|
||||
supply_limit_mult = -0.2
|
||||
county_opinion_add = -5
|
||||
epidemic_travel_danger = 30
|
||||
development_decline = -3
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
outbreak_intensities = {
|
||||
minor = {
|
||||
outbreak_chance = {
|
||||
value = outbreak_chance_minor_default_value
|
||||
multiply = outbreak_chance_minor_mult_value
|
||||
multiply = recent_epidemics_outbreak_mult_value
|
||||
|
||||
### NO DLC - We increase the chance to make up for the locked diseases ###
|
||||
if = {
|
||||
limit = {
|
||||
NOT = { has_dlc_feature = legends_of_the_dead }
|
||||
}
|
||||
multiply = 2
|
||||
}
|
||||
if = {
|
||||
limit = {
|
||||
has_game_rule = epidemic_frequency_disabled
|
||||
}
|
||||
multiply = 0
|
||||
}
|
||||
}
|
||||
spread_chance = {
|
||||
value = spread_chance_epidemics_default_value
|
||||
multiply = spread_chance_epidemics_mult_value
|
||||
}
|
||||
max_provinces = { 30 55 }
|
||||
|
||||
infection_duration = {
|
||||
months = { 6 8 }
|
||||
}
|
||||
|
||||
infection_progress_duration = {
|
||||
days = { 80 120 }
|
||||
}
|
||||
|
||||
infection_recovery_duration = {
|
||||
days = { 15 22 }
|
||||
}
|
||||
}
|
||||
|
||||
major = {
|
||||
outbreak_chance = {
|
||||
value = outbreak_chance_major_default_value
|
||||
multiply = outbreak_chance_major_mult_value
|
||||
multiply = recent_epidemics_outbreak_mult_value
|
||||
|
||||
### NO DLC - We increase the chance to make up for the locked diseases ###
|
||||
if = {
|
||||
limit = {
|
||||
NOT = { has_dlc_feature = legends_of_the_dead }
|
||||
}
|
||||
multiply = 1.5
|
||||
}
|
||||
if = {
|
||||
limit = {
|
||||
has_game_rule = epidemic_frequency_disabled
|
||||
}
|
||||
multiply = 0
|
||||
}
|
||||
}
|
||||
spread_chance = {
|
||||
value = spread_chance_epidemics_default_value
|
||||
multiply = spread_chance_epidemics_mult_value
|
||||
}
|
||||
max_provinces = { 85 130 }
|
||||
|
||||
infection_duration = {
|
||||
months = { 10 20 }
|
||||
}
|
||||
|
||||
infection_progress_duration = {
|
||||
days = { 40 60 }
|
||||
}
|
||||
|
||||
infection_recovery_duration = {
|
||||
days = 25
|
||||
}
|
||||
}
|
||||
|
||||
apocalyptic = {
|
||||
outbreak_chance = {
|
||||
value = outbreak_chance_apocalyptic_default_value
|
||||
multiply = outbreak_chance_apocalyptic_mult_value
|
||||
multiply = recent_epidemics_outbreak_mult_value
|
||||
|
||||
### NO DLC - We increase the chance to make up for the locked diseases ###
|
||||
if = {
|
||||
limit = {
|
||||
NOT = { has_dlc_feature = legends_of_the_dead }
|
||||
}
|
||||
multiply = 1.25
|
||||
}
|
||||
if = {
|
||||
limit = {
|
||||
has_game_rule = epidemic_frequency_disabled
|
||||
}
|
||||
multiply = 0
|
||||
}
|
||||
}
|
||||
spread_chance = {
|
||||
value = spread_chance_epidemics_default_value
|
||||
multiply = spread_chance_epidemics_mult_value
|
||||
}
|
||||
max_provinces = { 220 325 }
|
||||
|
||||
infection_duration = {
|
||||
months = { 22 40 }
|
||||
}
|
||||
|
||||
infection_progress_duration = {
|
||||
days = { 15 20 }
|
||||
}
|
||||
|
||||
infection_recovery_duration = {
|
||||
days = { 25 35 }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
on_province_infected = {
|
||||
county = {
|
||||
apply_infection_development_loss = { BASE = 5 }
|
||||
}
|
||||
cant_touch_this_achievement_effect = yes
|
||||
}
|
||||
|
||||
on_province_recovered = {
|
||||
county = {
|
||||
remove_isolated_capital_modifiers_effect = yes
|
||||
}
|
||||
add_to_variable_list = {
|
||||
name = epidemic_cooldown
|
||||
target = scope:epidemic.epidemic_type
|
||||
years = 50
|
||||
}
|
||||
set_variable = {
|
||||
name = epidemic_cooldown_general
|
||||
years = 15
|
||||
}
|
||||
# Prosperity event
|
||||
plague_recovery_event_effect = yes
|
||||
}
|
||||
}
|
||||
#smallpox = {
|
||||
# trait = smallpox
|
||||
# color = { 88 12 31 }
|
||||
# priority = 3
|
||||
#
|
||||
# shader_data = {
|
||||
# strength = 0.8
|
||||
# edge_fade = 0.25
|
||||
# tile_multiplier = 0.004702
|
||||
# texture_index = 0
|
||||
# channel = alpha
|
||||
# }
|
||||
#
|
||||
# name = {
|
||||
# first_valid = {
|
||||
# triggered_desc = {
|
||||
# trigger = {
|
||||
# outbreak_intensity = apocalyptic
|
||||
# outbreak_province = province:3045
|
||||
# }
|
||||
# desc = epidemic_bonifacy_gift
|
||||
# }
|
||||
# triggered_desc = {
|
||||
# trigger = {
|
||||
# outbreak_intensity = apocalyptic
|
||||
# outbreak_province = province:7596
|
||||
# }
|
||||
# desc = epidemic_raqguul_plague
|
||||
# }
|
||||
# random_valid = {
|
||||
# triggered_desc = {
|
||||
# trigger = {
|
||||
# outbreak_intensity = apocalyptic
|
||||
# outbreak_province = {
|
||||
# geographical_region = ghw_region_egypt
|
||||
# county.faith.religion = { is_in_family = rf_abrahamic }
|
||||
# }
|
||||
# }
|
||||
# desc = epidemic_eleventh_plague
|
||||
# }
|
||||
# desc = epidemic_rulers_pox
|
||||
# desc = epidemic_titled_rulers_pox
|
||||
# desc = epidemic_animal_pox # Monkeypox, chickenpox and the like
|
||||
# desc = epidemic_realm_pox
|
||||
# desc = epidemic_holder_pox
|
||||
# desc = epidemic_culture_pox
|
||||
# desc = epidemic_location_pox
|
||||
# }
|
||||
# desc = trait_smallpox
|
||||
# }
|
||||
# }
|
||||
#
|
||||
# on_start = {
|
||||
# # LEGITIMACY LOSS FROM EPIDEMIC OUTBREAK
|
||||
# epidemic_outbreak_legitimacy_effect = { PROVINCE = root.outbreak_province }
|
||||
# #if = {
|
||||
# # limit = {
|
||||
# # outbreak_intensity = apocalyptic
|
||||
# # }
|
||||
# # if = {
|
||||
# # limit = {
|
||||
# # NOT = {
|
||||
# # exists = global_var:epidemic_smallpox_apocalyptic
|
||||
# # }
|
||||
# # }
|
||||
# # set_global_variable = {
|
||||
# # name = epidemic_smallpox_apocalyptic
|
||||
# # value = 1
|
||||
# # }
|
||||
# # }
|
||||
# # else = {
|
||||
# # change_global_variable = {
|
||||
# # name = epidemic_smallpox_apocalyptic
|
||||
# # add = 1
|
||||
# # }
|
||||
# # }
|
||||
# #}
|
||||
# #else_if = {
|
||||
# # limit = {
|
||||
# # outbreak_intensity = major
|
||||
# # }
|
||||
# # if = {
|
||||
# # limit = {
|
||||
# # NOT = {
|
||||
# # exists = global_var:epidemic_smallpox_major
|
||||
# # }
|
||||
# # }
|
||||
# # set_global_variable = {
|
||||
# # name = epidemic_smallpox_major
|
||||
# # value = 1
|
||||
# # }
|
||||
# # }
|
||||
# # else = {
|
||||
# # change_global_variable = {
|
||||
# # name = epidemic_smallpox_major
|
||||
# # add = 1
|
||||
# # }
|
||||
# # }
|
||||
# #}
|
||||
# #else = {
|
||||
# # if = {
|
||||
# # limit = {
|
||||
# # NOT = {
|
||||
# # exists = global_var:epidemic_smallpox_minor
|
||||
# # }
|
||||
# # }
|
||||
# # set_global_variable = {
|
||||
# # name = epidemic_smallpox_minor
|
||||
# # value = 1
|
||||
# # }
|
||||
# # }
|
||||
# # else = {
|
||||
# # change_global_variable = {
|
||||
# # name = epidemic_smallpox_minor
|
||||
# # add = 1
|
||||
# # }
|
||||
# # }
|
||||
# #}
|
||||
# }
|
||||
#
|
||||
# on_monthly = {
|
||||
# trigger_event = {
|
||||
# on_action = epidemic_ongoing_events
|
||||
# }
|
||||
# }
|
||||
#
|
||||
# character_infection_chance = {
|
||||
# value = character_infection_chance_default_value
|
||||
# }
|
||||
#
|
||||
# can_infect_character = {
|
||||
# can_contract_disease_trigger = { DISEASE = smallpox }
|
||||
# immune_to_epidemic = { EPIDEMIC = scope:epidemic }
|
||||
# }
|
||||
#
|
||||
# on_character_infected = {
|
||||
# contract_disease_notify_effect = { DISEASE = smallpox }
|
||||
# if = {
|
||||
# limit = {
|
||||
# is_commanding_army = yes
|
||||
# }
|
||||
# trigger_event = epidemic_events.0001 #we infect your army
|
||||
# }
|
||||
# }
|
||||
#
|
||||
# infection_levels = {
|
||||
# 10 = {
|
||||
# province_modifier = {
|
||||
# county_opinion_add = -2
|
||||
# epidemic_travel_danger = 10
|
||||
# development_decline = -1
|
||||
# }
|
||||
# }
|
||||
# 50 = {
|
||||
# province_modifier = {
|
||||
# county_opinion_add = -3
|
||||
# epidemic_travel_danger = 20
|
||||
# development_decline = -2
|
||||
# }
|
||||
# }
|
||||
# 80 = {
|
||||
# province_modifier = {
|
||||
# monthly_county_control_decline_add = -0.1
|
||||
# supply_limit_mult = -0.2
|
||||
# county_opinion_add = -5
|
||||
# epidemic_travel_danger = 30
|
||||
# development_decline = -3
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
#
|
||||
# outbreak_intensities = {
|
||||
# minor = {
|
||||
# outbreak_chance = {
|
||||
# value = outbreak_chance_minor_default_value
|
||||
# multiply = outbreak_chance_minor_mult_value
|
||||
# multiply = recent_epidemics_outbreak_mult_value
|
||||
#
|
||||
# ### NO DLC - We increase the chance to make up for the locked diseases ###
|
||||
# if = {
|
||||
# limit = {
|
||||
# NOT = { has_dlc_feature = legends_of_the_dead }
|
||||
# }
|
||||
# multiply = 2
|
||||
# }
|
||||
# if = {
|
||||
# limit = {
|
||||
# has_game_rule = epidemic_frequency_disabled
|
||||
# }
|
||||
# multiply = 0
|
||||
# }
|
||||
# }
|
||||
# spread_chance = {
|
||||
# value = spread_chance_epidemics_default_value
|
||||
# multiply = spread_chance_epidemics_mult_value
|
||||
# }
|
||||
# max_provinces = { 30 55 }
|
||||
#
|
||||
# infection_duration = {
|
||||
# months = { 6 8 }
|
||||
# }
|
||||
#
|
||||
# infection_progress_duration = {
|
||||
# days = { 80 120 }
|
||||
# }
|
||||
#
|
||||
# infection_recovery_duration = {
|
||||
# days = { 15 22 }
|
||||
# }
|
||||
# }
|
||||
#
|
||||
# major = {
|
||||
# outbreak_chance = {
|
||||
# value = outbreak_chance_major_default_value
|
||||
# multiply = outbreak_chance_major_mult_value
|
||||
# multiply = recent_epidemics_outbreak_mult_value
|
||||
#
|
||||
# ### NO DLC - We increase the chance to make up for the locked diseases ###
|
||||
# if = {
|
||||
# limit = {
|
||||
# NOT = { has_dlc_feature = legends_of_the_dead }
|
||||
# }
|
||||
# multiply = 1.5
|
||||
# }
|
||||
# if = {
|
||||
# limit = {
|
||||
# has_game_rule = epidemic_frequency_disabled
|
||||
# }
|
||||
# multiply = 0
|
||||
# }
|
||||
# }
|
||||
# spread_chance = {
|
||||
# value = spread_chance_epidemics_default_value
|
||||
# multiply = spread_chance_epidemics_mult_value
|
||||
# }
|
||||
# max_provinces = { 85 130 }
|
||||
#
|
||||
# infection_duration = {
|
||||
# months = { 10 20 }
|
||||
# }
|
||||
#
|
||||
# infection_progress_duration = {
|
||||
# days = { 40 60 }
|
||||
# }
|
||||
#
|
||||
# infection_recovery_duration = {
|
||||
# days = 25
|
||||
# }
|
||||
# }
|
||||
#
|
||||
# apocalyptic = {
|
||||
# outbreak_chance = {
|
||||
# value = outbreak_chance_apocalyptic_default_value
|
||||
# multiply = outbreak_chance_apocalyptic_mult_value
|
||||
# multiply = recent_epidemics_outbreak_mult_value
|
||||
#
|
||||
# ### NO DLC - We increase the chance to make up for the locked diseases ###
|
||||
# if = {
|
||||
# limit = {
|
||||
# NOT = { has_dlc_feature = legends_of_the_dead }
|
||||
# }
|
||||
# multiply = 1.25
|
||||
# }
|
||||
# if = {
|
||||
# limit = {
|
||||
# has_game_rule = epidemic_frequency_disabled
|
||||
# }
|
||||
# multiply = 0
|
||||
# }
|
||||
# }
|
||||
# spread_chance = {
|
||||
# value = spread_chance_epidemics_default_value
|
||||
# multiply = spread_chance_epidemics_mult_value
|
||||
# }
|
||||
# max_provinces = { 220 325 }
|
||||
#
|
||||
# infection_duration = {
|
||||
# months = { 22 40 }
|
||||
# }
|
||||
#
|
||||
# infection_progress_duration = {
|
||||
# days = { 15 20 }
|
||||
# }
|
||||
#
|
||||
# infection_recovery_duration = {
|
||||
# days = { 25 35 }
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
#
|
||||
# on_province_infected = {
|
||||
# county = {
|
||||
# apply_infection_development_loss = { BASE = 5 }
|
||||
# }
|
||||
# cant_touch_this_achievement_effect = yes
|
||||
# }
|
||||
#
|
||||
# on_province_recovered = {
|
||||
# county = {
|
||||
# remove_isolated_capital_modifiers_effect = yes
|
||||
# }
|
||||
# add_to_variable_list = {
|
||||
# name = epidemic_cooldown
|
||||
# target = scope:epidemic.epidemic_type
|
||||
# years = 50
|
||||
# }
|
||||
# set_variable = {
|
||||
# name = epidemic_cooldown_general
|
||||
# years = 15
|
||||
# }
|
||||
# # Prosperity event
|
||||
# plague_recovery_event_effect = yes
|
||||
# }
|
||||
#}
|
||||
|
||||
bubonic_plague = {
|
||||
trait = bubonic_plague
|
||||
|
|
|
|||
|
|
@ -62,6 +62,18 @@ physician_high_character_template = {
|
|||
medium_lifestyle_random_xp_high
|
||||
}
|
||||
}
|
||||
random = {
|
||||
chance = 10
|
||||
if = {
|
||||
limit = {
|
||||
root.capital_province = {
|
||||
geographical_region = world_europe
|
||||
}
|
||||
}
|
||||
add_character_flag = ai_will_not_convert
|
||||
set_character_faith = faith:trenchsinger
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -104,5 +116,17 @@ physician_excellent_character_template = {
|
|||
add_trait = lifestyle_herbalist
|
||||
}
|
||||
}
|
||||
random = {
|
||||
chance = 33
|
||||
if = {
|
||||
limit = {
|
||||
root.capital_province = {
|
||||
geographical_region = world_europe
|
||||
}
|
||||
}
|
||||
add_character_flag = ai_will_not_convert
|
||||
set_character_faith = faith:trenchsinger
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue