Skip to content

Commit

Permalink
Thorium Brotherhood (#1467)
Browse files Browse the repository at this point in the history
* Initial commit

* Added picture

* Update wc_thorium_decisions.txt

* Piety and prestige requirement

* Localized decision

* Update wc_decisions_l_english.yml

* implemented cost and cooldown

* added gold cost

* 20 years cooldown

* Update wc_thorium_decisions.txt

* TB Modifiers

* on_actions

* shortened

* Update wc_thorium_decisions.txt

* Dark Pluralism requirement

* PH event

* Add template

* made a trigger

* Update wc_thorium_effects.txt

* Update wc_thorium_events.txt

* Update wc_thorium_events.txt

* PH localization

* craftsmen modifier

* tweaked modifier a bit

* Made a scripted effect

* Update wc_thorium_effects.txt

* Slight loc tweak

* Update wc_thorium_events.txt

* Update wc_thorium_on_actions.txt

* else_ifs

* else_if block

* fixed modifier regulation

* Loc

* Localization

* Craftsman stats and education trait

* theme and animation

* proper comment

* condensed on_actions

* Event localization

thanks shatterstar

Co-authored-by: Edmund <[email protected]>

* fixed error spam

* Update wc_thorium_decisions.txt

* loc fixed

* Update common/decisions/wc_thorium_decisions.txt

Co-authored-by: Robin <[email protected]>

* changed icon

---------

Co-authored-by: Edmund <[email protected]>
Co-authored-by: Robin <[email protected]>
  • Loading branch information
3 people authored Oct 8, 2024
1 parent 8cf7500 commit 847d0ab
Show file tree
Hide file tree
Showing 11 changed files with 304 additions and 3 deletions.
60 changes: 60 additions & 0 deletions common/decisions/wc_thorium_decisions.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# Thorium Brotherhood decisions
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
any_held_title = { # Must be in Khaz Modan region
tier = tier_county
OR = {
title_province = { geographical_region = world_eastern_kingdoms_khaz_modan }
title_province = { geographical_region = world_eastern_kingdoms_azeroth }
}
}
# 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 = county_modifier_development_positive
levy_size = 0.25
levy_reinforcement_rate = 0.25
army_maintenance_mult = -0.2
men_at_arms_recruitment_cost = -0.25
}

10 changes: 10 additions & 0 deletions common/on_action/wc_thorium_on_actions.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#### 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 = {
set_thorium_base_effect = yes
}
}
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 "The Inspiration Globe"
thorium_brotherhood.1.desc:0 "The descent to the castle workshop is one I do not make often. The air is hot and stuffy, and I find myself sweating in a way most unbecoming of a [ROOT.Char.GetTitleAsNameNoTooltip]. Still, it is a duty I must perform myself to show our esteemed guest of the Thorium Brotherhood the utmost hospitality.\n\nUpon inspecting the forge and other facilities and finding them to be adequate, [craftsman.GetName] places his pack on the worktable and addresses me.\n\n\"[ROOT.Char.GetTitledFirstName], it is time for you to make a choice.\"As [craftsman.GetSheHe] speaks, [craftsman.GetFirstName] produces a softly glowing, transparent orb from [craftsman.GetHerHis] pack. \"I present to yo the Orb of Inspiration, an heirloom passed down through generations of Thorium Brothers. Its functionality and purpose are quite intuitive. Simply place your hand on the front of the orb and imagine an item you would like me to create for you. Then the image of that item will appear in my own mind along with the best possible method of creating it.\"\n\nI have never heard of such magic before, but in the end it does make sense to ease communication between craftsman and client. With little more than a moment's hesitation, I place my hand on the orb and think about..."
thorium_brotherhood.1.a:0 "...a weapon."
thorium_brotherhood.1.b:0 "...a suit of armor."
thorium_brotherhood.1.c:0 "...an elegant trinket."
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."

0 comments on commit 847d0ab

Please sign in to comment.