diff --git a/common/decisions/wc_thorium_decisions.txt b/common/decisions/wc_thorium_decisions.txt new file mode 100644 index 0000000000..ae8c0a75bd --- /dev/null +++ b/common/decisions/wc_thorium_decisions.txt @@ -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 + } +} \ No newline at end of file diff --git a/common/modifiers/wc_event_modifiers.txt b/common/modifiers/wc_event_modifiers.txt index 9d1c3e119a..be6d58caf3 100644 --- a/common/modifiers/wc_event_modifiers.txt +++ b/common/modifiers/wc_event_modifiers.txt @@ -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 -#} \ No newline at end of file +#} + +# 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 +} + \ No newline at end of file diff --git a/common/on_action/wc_thorium_on_actions.txt b/common/on_action/wc_thorium_on_actions.txt new file mode 100644 index 0000000000..14ea97aadf --- /dev/null +++ b/common/on_action/wc_thorium_on_actions.txt @@ -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 + } +} \ No newline at end of file diff --git a/common/scripted_character_templates/wc_thorium_templates.txt b/common/scripted_character_templates/wc_thorium_templates.txt new file mode 100644 index 0000000000..9b91d5a697 --- /dev/null +++ b/common/scripted_character_templates/wc_thorium_templates.txt @@ -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 } } + } +} \ No newline at end of file diff --git a/common/scripted_effects/wc_thorium_effects.txt b/common/scripted_effects/wc_thorium_effects.txt new file mode 100644 index 0000000000..4ce4ffe4e7 --- /dev/null +++ b/common/scripted_effects/wc_thorium_effects.txt @@ -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 } + } +} \ No newline at end of file diff --git a/common/scripted_triggers/wc_thorium_triggers.txt b/common/scripted_triggers/wc_thorium_triggers.txt new file mode 100644 index 0000000000..b1dda82129 --- /dev/null +++ b/common/scripted_triggers/wc_thorium_triggers.txt @@ -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 } + } + } + } +} \ No newline at end of file diff --git a/events/decisions_events/wc_thorium_events.txt b/events/decisions_events/wc_thorium_events.txt new file mode 100644 index 0000000000..c3d7469c52 --- /dev/null +++ b/events/decisions_events/wc_thorium_events.txt @@ -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 + } + } + } +} \ No newline at end of file diff --git a/gfx/interface/illustrations/decisions/wc_dark_iron_dwarf.dds b/gfx/interface/illustrations/decisions/wc_dark_iron_dwarf.dds new file mode 100644 index 0000000000..dd980174f2 Binary files /dev/null and b/gfx/interface/illustrations/decisions/wc_dark_iron_dwarf.dds differ diff --git a/localization/english/event_localization/wc_thorium_brotherhood_l_english.yml b/localization/english/event_localization/wc_thorium_brotherhood_l_english.yml new file mode 100644 index 0000000000..c0770383b8 --- /dev/null +++ b/localization/english/event_localization/wc_thorium_brotherhood_l_english.yml @@ -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." \ No newline at end of file diff --git a/localization/english/modifiers/wc_modifiers_l_english.yml b/localization/english/modifiers/wc_modifiers_l_english.yml index 428e6efce0..f1768578dd 100644 --- a/localization/english/modifiers/wc_modifiers_l_english.yml +++ b/localization/english/modifiers/wc_modifiers_l_english.yml @@ -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" \ No newline at end of file + 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." \ No newline at end of file diff --git a/localization/english/wc_decisions_l_english.yml b/localization/english/wc_decisions_l_english.yml index a8d447ca11..509d763469 100644 --- a/localization/english/wc_decisions_l_english.yml +++ b/localization/english/wc_decisions_l_english.yml @@ -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!" \ No newline at end of file + 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." \ No newline at end of file