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

Thorium Brotherhood #1467

Merged
merged 45 commits into from
Oct 8, 2024
Merged
Show file tree
Hide file tree
Changes from 37 commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
fe979ff
Initial commit
Malicos Sep 20, 2024
6d17d23
Added picture
Malicos Sep 20, 2024
0408dfa
Update wc_thorium_decisions.txt
Malicos Sep 20, 2024
81b6dfc
Piety and prestige requirement
Malicos Sep 20, 2024
42f1616
Localized decision
Malicos Sep 20, 2024
1017f06
Update wc_decisions_l_english.yml
Malicos Sep 20, 2024
6e61911
implemented cost and cooldown
Malicos Sep 20, 2024
0805667
added gold cost
Malicos Sep 20, 2024
9a8aab8
20 years cooldown
Malicos Sep 20, 2024
4199c8d
Update wc_thorium_decisions.txt
Malicos Sep 20, 2024
2f23025
TB Modifiers
Malicos Sep 20, 2024
a041f39
on_actions
Malicos Sep 20, 2024
af077ee
shortened
Malicos Sep 20, 2024
3a8cb35
Update wc_thorium_decisions.txt
Malicos Sep 20, 2024
c3bfcf6
Dark Pluralism requirement
Malicos Sep 21, 2024
b49dfb6
PH event
Malicos Sep 21, 2024
adc78f1
Add template
Malicos Sep 21, 2024
a1a89eb
made a trigger
Malicos Sep 21, 2024
84e41d8
Update wc_thorium_effects.txt
Malicos Sep 21, 2024
fdbc86d
Update wc_thorium_events.txt
Malicos Sep 21, 2024
d301dd2
Update wc_thorium_events.txt
Malicos Sep 21, 2024
5061572
PH localization
Malicos Sep 21, 2024
f6326d9
craftsmen modifier
Malicos Sep 22, 2024
e0d64da
tweaked modifier a bit
Malicos Sep 22, 2024
ab0b84b
Made a scripted effect
Malicos Sep 22, 2024
f4d71a8
Update wc_thorium_effects.txt
Malicos Sep 22, 2024
df17519
Slight loc tweak
Malicos Sep 22, 2024
89f397c
Update wc_thorium_events.txt
Malicos Sep 22, 2024
1e3f015
Update wc_thorium_on_actions.txt
Malicos Sep 22, 2024
8c3af38
else_ifs
Malicos Sep 22, 2024
c357751
else_if block
Malicos Sep 22, 2024
6db0630
fixed modifier regulation
Malicos Sep 23, 2024
30add3a
Loc
Malicos Sep 23, 2024
1a56633
Localization
Malicos Sep 23, 2024
538a92c
Craftsman stats and education trait
Malicos Sep 23, 2024
4d3a0ad
theme and animation
Malicos Sep 23, 2024
26e47c9
Merge branch 'dev' into feat/mixed/thorium-brotherhood
Malicos Sep 23, 2024
06fa3c7
proper comment
Malicos Sep 25, 2024
561e8a9
condensed on_actions
Malicos Sep 25, 2024
e94a075
Event localization
Malicos Oct 3, 2024
66acc1d
fixed error spam
Malicos Oct 3, 2024
815febe
Update wc_thorium_decisions.txt
Malicos Oct 4, 2024
4c99b9a
loc fixed
Malicos Oct 5, 2024
84c68fb
Update common/decisions/wc_thorium_decisions.txt
Malicos Oct 8, 2024
8d9b79e
changed icon
Malicos Oct 8, 2024
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
63 changes: 63 additions & 0 deletions common/decisions/wc_thorium_decisions.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# Warcraft
Malicos marked this conversation as resolved.
Show resolved Hide resolved
thorium_invite_craftsmen_decision = {
ai_check_interval = 24
picture = "gfx/interface/illustrations/decisions/wc_dark_iron_dwarf.dds"
desc = thorium_invite_craftsmen_decision_desc
selection_tooltip = thorium_invite_craftsmen_decision.tt

cost = {
gold = 1000
prestige = 500
piety = 250
}

cooldown = { days = 7200 }

is_shown = {
is_ruler = yes
OR = {
any_held_title = { # Must be in Azeroth region
tier >= tier_county
title_province = { geographical_region = world_eastern_kingdoms_azeroth }
}
any_held_title = { # Must be in Khaz Modan region
tier >= tier_county
title_province = { geographical_region = world_eastern_kingdoms_khaz_modan }
}
}
# Is not follower of fire cults or evil religions
NOT = { faith = { has_doctrine = doctrine_pluralism_dark } }
# Is not holder of Thorium bases of operation
NOR = {
has_title = title:c_drognur
has_title = title:c_chiselgrip
}
}

is_valid = {
piety_level >= 2
prestige_level >= 2

thorium_no_dark_pluralism_trigger = yes
}

is_valid_showing_failures_only = {
is_imprisoned = no
is_capable_adult = yes
is_at_war = no
}

effect = {
show_as_tooltip = {
custom_tooltip = thorium_invite_craftsmen_decision_effect.tt
}
hidden_effect = {
capital_county = { save_scope_as = capital_county }
trigger_event = thorium_brotherhood.1
}
}

ai_will_do = {
base = 100
}
}
20 changes: 19 additions & 1 deletion common/modifiers/wc_event_modifiers.txt
Original file line number Diff line number Diff line change
Expand Up @@ -313,4 +313,22 @@ wc_thunder_king_ai_modifier = { # AI Thunder King only
#wc_troll_mogu_pact_thunder_king_modifier = { # Thunder King/ Zandalari Pact handling
# icon = martial_positive
# monthly_prestige = 0.2
#}
#}

# Thorium Brotherhood modifiers
wc_thorium_craftsmen_modifier = {
icon = county_modifier_development_positive
development_growth_factor = 0.1
tax_mult = 0.05
build_gold_cost = -0.15
build_speed = -0.15
}

wc_thorium_base_modifier = {
icon = martial_positive
Malicos marked this conversation as resolved.
Show resolved Hide resolved
levy_size = 0.25
levy_reinforcement_rate = 0.25
army_maintenance_mult = -0.2
men_at_arms_recruitment_cost = -0.25
}

16 changes: 16 additions & 0 deletions common/on_action/wc_thorium_on_actions.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#### Yearly check to see if event should fire for Chiselgrip or Thorium Point owners
yearly_global_pulse = {
on_actions = { thorium_base_check }
}

thorium_base_check = {
effect = {
trigger_event = { on_action = set_thorium_base_modifier }
}
}

set_thorium_base_modifier = {
effect = {
set_thorium_base_effect = yes
}
}
Malicos marked this conversation as resolved.
Show resolved Hide resolved
18 changes: 18 additions & 0 deletions common/scripted_character_templates/wc_thorium_templates.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Thorium Brotherhood
thorium_craftsman_character_template = {
age = { 30 90 }
gender_female_chance = root_faith_dominant_gender_adjusted_female_chance
dynasty = none
culture = culture:dark_iron
faith = faith:khazism
martial = 8
stewardship = 8
diplomacy = 6
trait = creature_dwarf
random_traits_list = {
education_stewardship_3 = { weight = { base = 15 } }
education_stewardship_4 = { weight = { base = 15 } }
education_martial_3 = { weight = { base = 15 } }
education_martial_4 = { weight = { base = 15 } }
}
}
62 changes: 62 additions & 0 deletions common/scripted_effects/wc_thorium_effects.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
add_thorium_craftsmen_modifier = {
scope:capital_county = {
add_county_modifier = {
modifier = wc_thorium_craftsmen_modifier
years = 10
}
}
}

set_thorium_base_effect = {
if = {
limit = {
title:c_drognur.holder.faith = {
NOT = { has_doctrine = doctrine_pluralism_dark }
}
}
title:c_drognur = {
add_county_modifier = {
modifier = wc_thorium_base_modifier
}
}
}
else_if = {
limit = {
AND = {
title:c_drognur.holder.faith = {
has_doctrine = doctrine_pluralism_dark
}
title:c_drognur = {
has_county_modifier = wc_thorium_base_modifier
}
}
}
title:c_drognur = { remove_county_modifier = wc_thorium_base_modifier }
}

if = {
limit = {
title:c_chiselgrip.holder.faith = {
NOT = { has_doctrine = doctrine_pluralism_dark }
}
}
title:c_chiselgrip = {
add_county_modifier = {
modifier = wc_thorium_base_modifier
}
}
}
else_if = {
limit = {
AND = {
title:c_chiselgrip.holder.faith = {
has_doctrine = doctrine_pluralism_dark
}
title:c_chiselgrip = {
has_county_modifier = wc_thorium_base_modifier
}
}
}
title:c_chiselgrip = { remove_county_modifier = wc_thorium_base_modifier }
}
}
14 changes: 14 additions & 0 deletions common/scripted_triggers/wc_thorium_triggers.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
thorium_no_dark_pluralism_trigger = {
# Holder of Thorium bases of operation must not be either pawn of Ragnaros or follower of evil cults
custom_tooltip = {
text = thorium_no_dark_pluralism_trigger.tt
OR = {
title:c_drognur.holder.faith = { # Thorium Point
NOT = { has_doctrine = doctrine_pluralism_dark }
}
title:c_chiselgrip.holder.faith = {
NOT = { has_doctrine = doctrine_pluralism_dark }
}
}
}
}
99 changes: 99 additions & 0 deletions events/decisions_events/wc_thorium_events.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
namespace = thorium_brotherhood

# Choose a specialization
thorium_brotherhood.1 = {
type = character_event
title = thorium_brotherhood.1.t
desc = thorium_brotherhood.1.desc
theme = realm
left_portrait = {
character = scope:craftsman
animation = personality_honorable
}

immediate = {
create_character = {
save_scope_as = craftsman
location = root.capital_province
template = thorium_craftsman_character_template
dynasty = none
}
hidden_effect = {
add_visiting_courtier = scope:craftsman
}
add_thorium_craftsmen_modifier = yes
}

# A weapon
option = {
name = thorium_brotherhood.1.a

stress_impact = { paranoid = minor_stress_impact_gain }

add_courtier = scope:craftsman
scope:craftsman = { create_inspiration = weapon_inspiration }

ai_chance = {
base = 200
# Stress
modifier = {
add = { value = 0 subtract = minor_stress_impact_gain }
has_trait = paranoid
}

# Opinion
opinion_modifier = {
opinion_target = scope:craftsman
multiplier = 1
}
}
}
# An armor
option = {
name = thorium_brotherhood.1.b

stress_impact = { paranoid = minor_stress_impact_gain }

add_courtier = scope:craftsman
scope:craftsman = { create_inspiration = armor_inspiration }

ai_chance = {
base = 200
# Stress
modifier = {
add = { value = 0 subtract = minor_stress_impact_gain }
has_trait = paranoid
}

# Opinion
opinion_modifier = {
opinion_target = scope:craftsman
multiplier = 1
}
}
}
# A metalsmith
option = {
name = thorium_brotherhood.1.c

stress_impact = { paranoid = minor_stress_impact_gain }

add_courtier = scope:craftsman
scope:craftsman = { create_inspiration = smith_inspiration }

ai_chance = {
base = 200
# Stress
modifier = {
add = { value = 0 subtract = minor_stress_impact_gain }
has_trait = paranoid
}

# Opinion
opinion_modifier = {
opinion_target = scope:craftsman
multiplier = 1
}
}
}
}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
l_english:
thorium_brotherhood.1.t:0 "Choosing a Craft"
thorium_brotherhood.1.desc:0 "Placeholder"
thorium_brotherhood.1.a:0 "A weapon."
thorium_brotherhood.1.b:0 "An armor."
thorium_brotherhood.1.c:0 "A metalsmith."
Malicos marked this conversation as resolved.
Show resolved Hide resolved
8 changes: 7 additions & 1 deletion localization/english/modifiers/wc_modifiers_l_english.yml
Original file line number Diff line number Diff line change
Expand Up @@ -324,4 +324,10 @@
genocide_controlled_energy_modifier:0 "Corralled Energy"
genocide_marauding_forces_modifier:0 "Rampaging Marauders"
genocide_purged_marauders_modifier:0 "Purged Marauders"
genocide_local_champion_modifier:0 "Local Champion"
genocide_local_champion_modifier:0 "Local Champion"

# Thorium Brotherhood Modifiers
wc_thorium_craftsmen_modifier:0 "Thorium Brotherhood Craftsmen"
wc_thorium_craftsmen_modifier_desc:0 "The craftsmen of Thorium Brotherhood have been invited by the ruler to provide aid with administering the realm's infrastructure."
wc_thorium_base_modifier:0 "Thorium Brotherhood's Base"
wc_thorium_base_modifier_desc:0 "This province is host to the Thorium Brotherhood's base of operations. They aid the local ruler with their assets and resources."
10 changes: 9 additions & 1 deletion localization/english/wc_decisions_l_english.yml
Original file line number Diff line number Diff line change
Expand Up @@ -182,4 +182,12 @@
resurrect_kelthuzad_decision_tt: "Further the events of the Third War and the corruption of the Sunwell."
resurrect_kelthuzad_decision_effect_tt: "You will corrupt the [GetTitleByKey('c_sunwell_plateau').GetName], a magical conduit for the energies of the High Elves.\n"
resurrect_kelthuzad_decision_effect_tt2: "Kel'Thuzad shall be reborn as a [GetTrait('creature_lich').GetName(GetNullCharacter)] and will join your court."
resurrect_kelthuzad_decision_confirm: "For the Lich King!"
resurrect_kelthuzad_decision_confirm: "For the Lich King!"

# Thorium Brotherhood
thorium_invite_craftsmen_decision:0 "Invite Craftsmen from Thorium Brotherhood"
thorium_invite_craftsmen_decision_desc:0 "The Thorium Brotherhood comprises many exceptionally talented craftsmen, and the blacksmiths of the Brotherhood are rumored to be among the finest Azeroth has ever seen. Using the formulas they have created or acquired, they make enchanted weapons and armor for anyone who can meet their exorbitant prices."
thorium_no_dark_pluralism_trigger.tt:0 "Either [GetTitleByKey('c_chiselgrip').GetName] or [GetTitleByKey('c_drognur').GetName] must be held by a character whose [faith|E] does not have $doctrine_pluralism_dark_name$ [doctrine|E].
thorium_invite_craftsmen_decision.tt:0 "Send a letter of invitation to the members of the crafting guild."
thorium_invite_craftsmen_decision_effect.tt:0 "A member of the Thorium Brotherhood will arrive in your court, giving access to high quality artifacts and county modifier."
thorium_invite_craftsmen_decision_confirm:0 "Send a messenger."