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

Guardian Elemental Relic support; #6768

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
60 changes: 60 additions & 0 deletions src/Data/Skills/other.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2662,14 +2662,74 @@ skills["SummonGuardianRelic"] = {
minion = true,
duration = true,
},
statMap = {

-- ANGER
["attack_minimum_added_fire_damage"] = {
mod("FireMin", "BASE", nil, 0, KeywordFlag.Attack, { type = "GlobalEffect", effectType = "Aura", effectName = "Elemental Relic Anger", effectCond = "ElementalRelicAngerActive" }),
},
["attack_maximum_added_fire_damage"] = {
mod("FireMax", "BASE", nil, 0, KeywordFlag.Attack, { type = "GlobalEffect", effectType = "Aura", effectName = "Elemental Relic Anger", effectCond = "ElementalRelicAngerActive" }),
},
["spell_minimum_added_fire_damage"] = {
mod("FireMin", "BASE", nil, 0, KeywordFlag.Spell, { type = "GlobalEffect", effectType = "Aura", effectName = "Elemental Relic Anger", effectCond = "ElementalRelicAngerActive" }),
},
["spell_maximum_added_fire_damage"] = {
mod("FireMax", "BASE", nil, 0, KeywordFlag.Spell, { type = "GlobalEffect", effectType = "Aura", effectName = "Elemental Relic Anger", effectCond = "ElementalRelicAngerActive" }),
},

-- HATRED
["physical_damage_%_to_add_as_cold"] = {
mod("PhysicalDamageGainAsCold", "BASE", nil, 0, 0, { type = "GlobalEffect", effectType = "Aura", effectName = "Elemental Relic Hatred", effectCond = "ElementalRelicHatredActive" }),
},
["hatred_aura_cold_damage_+%_final"] = {
mod("ColdDamage", "MORE", nil, 0, 0, { type = "GlobalEffect", effectType = "Aura", effectName = "Elemental Relic Hatred", effectCond = "ElementalRelicHatredActive" }),
},

-- WRATH
["wrath_aura_spell_lightning_damage_+%_final"] = {
mod("LightningDamage", "MORE", nil, ModFlag.Spell, 0, { type = "GlobalEffect", effectType = "Aura", effectName = "Elemental Relic Wrath", effectCond = "ElementalRelicWrathActive" }),
},
["attack_minimum_added_lightning_damage"] = {
mod("LightningMin", "BASE", nil, 0, KeywordFlag.Attack, { type = "GlobalEffect", effectType = "Aura", effectName = "Elemental Relic Wrath", effectCond = "ElementalRelicWrathActive" }),
},
["attack_maximum_added_lightning_damage"] = {
mod("LightningMax", "BASE", nil, 0, KeywordFlag.Attack, { type = "GlobalEffect", effectType = "Aura", effectName = "Elemental Relic Wrath", effectCond = "ElementalRelicWrathActive" }),
},
},
constantStats = {
{ "display_minion_monster_type", 24 },
{ "guardian_relic_explode_on_death_for_%_life_as_element_damage", 100 },
{ "minion_actor_level_is_user_level_up_to_maximum", 85 },
{ "skill_triggered_by_nearby_allies_kill_or_hit_rare_unique_%_chance", 25 },
-- ANGER
{ "attack_minimum_added_fire_damage",181},
{ "attack_maximum_added_fire_damage",258},
{ "spell_minimum_added_fire_damage",181},
{ "spell_maximum_added_fire_damage",258},
-- HATRED
{ "physical_damage_%_to_add_as_cold",28},
{ "hatred_aura_cold_damage_+%_final",19},
-- WRATH
{ "attack_minimum_added_lightning_damage",25},
{ "attack_maximum_added_lightning_damage",414},
{ "wrath_aura_spell_lightning_damage_+%_final",22},
},
stats = {
"base_skill_effect_duration",
-- ANGER
"attack_minimum_added_fire_damage",
"attack_maximum_added_fire_damage",
"spell_minimum_added_fire_damage",
"spell_maximum_added_fire_damage",
-- HATRED
"physical_damage_%_to_add_as_cold",
"hatred_aura_cold_damage_+%_final",
-- WRATH
"attack_minimum_added_lightning_damage",
"attack_maximum_added_lightning_damage",
"wrath_aura_spell_lightning_damage_+%_final",

},
levels = {
[20] = { 5000, storedUses = 1, levelRequirement = 4, cooldown = 0.3, statInterpolation = { 1, }, },
Expand Down
11 changes: 11 additions & 0 deletions src/Modules/ConfigOptions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,17 @@ return {

-- Section: Skill-specific options
{ section = "Skill Options", col = 2 },
{ label = "Unwavering Crusade:", ifSkill = "Summon Elemental Relic" },
{ var = "elementalRelicWrath", type = "check", label = "Is Wrath Elemental Relic Active?", ifSkill = "Summon Elemental Relic", apply = function(val, modList, enemyModList)
modList:NewMod("Condition:ElementalRelicWrathActive", "FLAG", true, "Config")
end },
{ var = "elementalRelicHatred", type = "check", label = "Is Hatred Elemental Relic Active?", ifSkill = "Summon Elemental Relic", apply = function(val, modList, enemyModList)
modList:NewMod("Condition:ElementalRelicHatredActive", "FLAG", true, "Config")
end },
{ var = "elementalRelicAnger", type = "check", label = "Is Anger Elemental Relic Active?", ifSkill = "Summon Elemental Relic", apply = function(val, modList, enemyModList)
modList:NewMod("Condition:ElementalRelicAngerActive", "FLAG", true, "Config")
end },

{ label = "Arcanist Brand:", ifSkill = "Arcanist Brand" },
{ var = "targetBrandedEnemy", type = "check", label = "Are skills targeting the Branded enemy?", ifSkill = "Arcanist Brand", apply = function(val, modList, enemyModList)
modList:NewMod("Condition:TargetingBrandedEnemy", "FLAG", true, "Config")
Expand Down