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

Adding gem of health, power and wisdom [WIP] #1600

Draft
wants to merge 14 commits into
base: master
Choose a base branch
from
Draft
183 changes: 183 additions & 0 deletions common/artifacts/908_wc_artifacts_relic.txt
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,67 @@ chalice_of_trollbanes = {
picture = "GFX_inv_misc_trophy_argent"
slot = relic
}
gem_of_health_3 = {
quality = 4
flags = { misc uncommon }

active = {
is_adult = yes

has_7_8_magic_class_or_higher_trigger = yes

is_magic_class_trigger = yes
}

health = 1.2

monthly_character_prestige = 0.8

picture = "GFX_gem_of_health"
slot = relic
}
gem_of_wisdom_3 = {
quality = 4
flags = { misc uncommon }

active = {
is_adult = yes

has_7_8_magic_class_or_higher_trigger = yes

is_magic_class_trigger = yes
}

learning = 3
diplomacy = 3
vassal_opinion = 7

monthly_character_prestige = 0.8

picture = "GFX_gem_of_wisdom"
slot = relic
}
gem_of_power_3 = {
quality = 4
flags = { misc uncommon }

active = {
is_adult = yes

has_7_8_magic_class_or_higher_trigger = yes

is_magic_class_trigger = yes
}

martial = 4
health = 0.2
combat_rating = 20

monthly_character_prestige = 0.8

picture = "GFX_gem_of_power"
slot = relic
}

# Rare
dark_crystal = {
Expand Down Expand Up @@ -126,6 +187,67 @@ orb_of_kiljaeden = {
picture = "GFX_orb_of_kiljaeden"
slot = relic
}
gem_of_health_2 = {
quality = 3
flags = { misc uncommon }

active = {
is_adult = yes

has_5_6_magic_class_or_higher_trigger = yes

is_magic_class_trigger = yes
}

health = 0.9

monthly_character_prestige = 0.6

picture = "GFX_gem_of_health"
slot = relic
}
gem_of_wisdom_2 = {
quality = 3
flags = { misc uncommon }

active = {
is_adult = yes

has_5_6_magic_class_or_higher_trigger = yes

is_magic_class_trigger = yes
}

learning = 2
diplomacy = 2
vassal_opinion = 5

monthly_character_prestige = 0.6

picture = "GFX_gem_of_wisdom"
slot = relic
}
gem_of_power_2 = {
quality = 3
flags = { misc uncommon }

active = {
is_adult = yes

has_5_6_magic_class_or_higher_trigger = yes

is_magic_class_trigger = yes
}

martial = 3
health = 0.15
combat_rating = 15

monthly_character_prestige = 0.6

picture = "GFX_gem_of_power"
slot = relic
}

# Uncommon
pipe_of_insight = {
Expand All @@ -148,4 +270,65 @@ pipe_of_insight = {

picture = "GFX_pipe_of_insight"
slot = relic
}
gem_of_health_1 = {
quality = 2
flags = { misc uncommon }

active = {
is_adult = yes

has_3_4_magic_class_or_higher_trigger = yes

is_magic_class_trigger = yes
}

health = 0.6

monthly_character_prestige = 0.4

picture = "GFX_gem_of_health"
slot = relic
}
gem_of_wisdom_1 = {
quality = 2
flags = { misc gem uncommon }

active = {
is_adult = yes

has_3_4_magic_class_or_higher_trigger = yes

is_magic_class_trigger = yes
}

learning = 1
diplomacy = 1
vassal_opinion = 3

monthly_character_prestige = 0.4

picture = "GFX_gem_of_wisdom"
slot = relic
}
gem_of_power_1 = {
quality = 2
flags = { misc uncommon }

active = {
is_adult = yes

has_3_4_magic_class_or_higher_trigger = yes

is_magic_class_trigger = yes
}

martial = 2
health = 0.1
combat_rating = 10

monthly_character_prestige = 0.4

picture = "GFX_gem_of_power"
slot = relic
}
3 changes: 3 additions & 0 deletions common/event_modifiers/00_event_modifiers.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5790,6 +5790,9 @@ employ_a_smith_cd = {
icon = 1
}

employ_a_jeweler_cd = {
icon = 1
}
writing_a_book = {
icon = 2
}
Expand Down
12 changes: 12 additions & 0 deletions common/scripted_triggers/00_scripted_triggers.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5285,6 +5285,18 @@ have_duplicate_smith_artifacts_flag_expensive_optionC_trigger = {
}
}

have_gem_artifact_trigger = {
has_artifact = gem_of_wisdom_3
has_artifact = gem_of_wisdom_2
has_artifact = gem_of_wisdom_1
has_artifact = gem_of_health_3
has_artifact = gem_of_health_2
has_artifact = gem_of_health_1
has_artifact = gem_of_power_3
has_artifact = gem_of_power_2
has_artifact = gem_of_power_1
}

# Warcraft
can_be_asked_to_leave_court_trigger = {
NOR = {
Expand Down
86 changes: 86 additions & 0 deletions decisions/mnm_society_decisions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3049,4 +3049,90 @@ decisions = {
}
}
}
employ_a_jeweler = {
only_playable = yes
ai_check_interval = 60
potential = {
# Warcraft
is_untouchable_trigger = no
can_rule_peacefully_trigger = yes

NOT = { government = order_government }
OR = {
has_dlc = "Mystics"
has_dlc = "Jade Dragon"
}
OR = {
mercenary = no
ai = no
}
age = 16
is_incapable = no
OR = {
ai = no
higher_tier_than = COUNT
}
is_landed = yes
is_lowborn = no
is_mage_class_trigger = yes

# Block player from action if they have already gotten all of the artifacts which they can obtain from this action
NAND = {
have_gem_artifacts_trigger = yes
}
}
allow = {
hidden_trigger = {
OR = {
ai = no
wealth = 500
}
}
is_inaccessible_trigger = no

custom_tooltip = {
text = employ_a_jeweler_cooldown_tt
hidden_trigger = {
NOT = {
has_character_modifier = employ_a_jeweler_cd
}
}
}
}
effect = {
custom_tooltip = {
text = employ_a_jeweler_tt
hidden_effect = {
character_event = { id = WCCLS.9130 }
add_character_modifier = {
name = employ_a_jeweler_cd
hidden = yes
years = 5
}
}
}
}
revoke_allowed = {
always = no
}
ai_will_do = {
factor = 1
has_3_4_magic_class_or_higher_trigger = yes
modifier = {
factor = 1.5
trait = sorcerer
}
modifier = {
factor = 2
trait = ambitious
}
modifier = {
factor = 0.1
trait = content
}
modifier = {
factor = 0
have_gem_artifact_trigger = yes
}
}
}
Loading