Skip to content

Commit

Permalink
[MoM] Fix Discern Weakness (#72790)
Browse files Browse the repository at this point in the history
* Switch Discern Weakness to EoC

* Edit Discern Weakness effect math

* Add Discern Weakness EoC

* Add missing }

* Remove missing spaces

* Update data/mods/MindOverMatter/powers/clairsentience_eoc.json

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Add missing (

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
Standing-Storm and github-actions[bot] authored May 5, 2024
1 parent 8998865 commit eefe407
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 9 deletions.
14 changes: 7 additions & 7 deletions data/mods/MindOverMatter/effects/effects_psionic.json
Original file line number Diff line number Diff line change
Expand Up @@ -670,31 +670,31 @@
"values": [
{
"value": "ARMOR_CUT",
"add": { "math": [ "( ( ( u_spell_level('clair_spot_weakness') * 1) + 4) * (scaling_factor(u_val('intelligence') ) ) )" ] }
"add": { "math": [ "( ( u_discern_weakness_clear_power_level * 1.5) + 2) * u_discern_weakness_clear_intelligence" ] }
},
{
"value": "ARMOR_BASH",
"add": { "math": [ "( ( ( u_spell_level('clair_spot_weakness') * 1) + 4) * (scaling_factor(u_val('intelligence') ) ) )" ] }
"add": { "math": [ "( ( u_discern_weakness_clear_power_level * 1.5) + 2) * u_discern_weakness_clear_intelligence" ] }
},
{
"value": "ARMOR_STAB",
"add": { "math": [ "( ( ( u_spell_level('clair_spot_weakness') * 1) + 4) * (scaling_factor(u_val('intelligence') ) ) )" ] }
"add": { "math": [ "( ( u_discern_weakness_clear_power_level * 1.5) + 2) * u_discern_weakness_clear_intelligence" ] }
},
{
"value": "ARMOR_BULLET",
"add": { "math": [ "( ( ( u_spell_level('clair_spot_weakness') * 1) + 4) * (scaling_factor(u_val('intelligence') ) ) )" ] }
"add": { "math": [ "( ( u_discern_weakness_clear_power_level * 1.5) + 2) * u_discern_weakness_clear_intelligence" ] }
},
{
"value": "ARMOR_ELEC",
"add": { "math": [ "( ( ( u_spell_level('clair_spot_weakness') * 1) + 4) * (scaling_factor(u_val('intelligence') ) ) )" ] }
"add": { "math": [ "( ( u_discern_weakness_clear_power_level * 1.5) + 2) * u_discern_weakness_clear_intelligence" ] }
},
{
"value": "ARMOR_HEAT",
"add": { "math": [ "( ( ( u_spell_level('clair_spot_weakness') * 1) + 4) * (scaling_factor(u_val('intelligence') ) ) )" ] }
"add": { "math": [ "( ( u_discern_weakness_clear_power_level * 1.5) + 2) * u_discern_weakness_clear_intelligence" ] }
},
{
"value": "ARMOR_COLD",
"add": { "math": [ "( ( ( u_spell_level('clair_spot_weakness') * 1) + 4) * (scaling_factor(u_val('intelligence') ) ) )" ] }
"add": { "math": [ "( ( u_discern_weakness_clear_power_level * 1.5) + 2) * u_discern_weakness_clear_intelligence" ] }
}
]
}
Expand Down
4 changes: 2 additions & 2 deletions data/mods/MindOverMatter/powers/clairsentience.json
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@
"flags": [ "PSIONIC", "CONCENTRATE", "SILENT", "NO_HANDS", "NO_LEGS", "IGNORE_WALLS", "RANDOM_DURATION", "NO_EXPLOSION_SFX" ],
"difficulty": 3,
"max_level": { "math": [ "int_to_level(1)" ] },
"effect": "attack",
"effect_str": "effect_clair_weak_point",
"effect": "effect_on_condition",
"effect_str": "EOC_CLAIR_DISCERN_WEAKNESS",
"shape": "blast",
"min_range": {
"math": [
Expand Down
17 changes: 17 additions & 0 deletions data/mods/MindOverMatter/powers/clairsentience_eoc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
[
{
"type": "effect_on_condition",
"id": "EOC_CLAIR_DISCERN_WEAKNESS",
"effect": [
{ "math": [ "u_discern_weakness_clear_intelligence", "=", "( ( n_val('intelligence') + 10) / 20 )" ] },
{ "math": [ "u_discern_weakness_clear_power_level", "=", "n_spell_level('clair_spot_weakness')" ] },
{ "math": [ "u_nether_attunement_discern_weakness_scaling", "=", "n_nether_attunement_power_scaling" ] },
{
"u_add_effect": "effect_clair_weak_point",
"duration": {
"math": [
"rng( ( ( (u_discern_weakness_clear_power_level * 1.5) + 13.5) * u_discern_weakness_clear_intelligence * u_nether_attunement_discern_weakness_scaling),( ( (u_discern_weakness_clear_power_level * 2.5) + 30) * u_discern_weakness_clear_intelligence * u_nether_attunement_discern_weakness_scaling) )"
]
}
}
]
},
{
"type": "effect_on_condition",
"id": "EOC_CLAIR_RAD_SENSE",
Expand Down

0 comments on commit eefe407

Please sign in to comment.