Skip to content

Commit

Permalink
encapsulate scourge conversion values
Browse files Browse the repository at this point in the history
  • Loading branch information
edmund-h committed Nov 16, 2023
1 parent 2bda50e commit febc549
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@
}
}
random = {
chance = 90
chance = scourge_conversion_effectiveness
add_trait = being_undead
}
}
Expand Down Expand Up @@ -671,7 +671,7 @@ invite_to_court_interaction = {
}
every_traveling_family_member = {
random = {
chance = 90
chance = scourge_conversion_effectiveness
add_trait = being_undead
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1103,7 +1103,7 @@
}
every_traveling_family_member = {
random = {
chance = 90
chance = scourge_conversion_effectiveness
add_trait = being_undead
}
}
Expand Down
10 changes: 10 additions & 0 deletions common/script_values/wc_plague_values.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,14 @@ plague_agent_sins = {
}

min = 0
}

# Scourge conversion values

scourge_undead_population_percent = {
value = 80 # this could be changed with a game rule in the future
}

scourge_conversion_effectiveness = {
value = 90 # this could be changed with a game rule in the future
}
2 changes: 1 addition & 1 deletion common/scripted_effects/wc_race_effects.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ try_to_set_race_effect = {
culture = { has_cultural_pillar = heritage_undead }
}
random = {
chance = 80
chance = scourge_undead_population_percent
add_trait = being_undead
}
}
Expand Down

0 comments on commit febc549

Please sign in to comment.