Skip to content

Commit

Permalink
[MoM] Rework Nether Attunement (make it rise faster and fall faster) (C…
Browse files Browse the repository at this point in the history
…leverRaven#72310)

* Initial commit

* Update remaining paths

* Change noetic resilience description to reflect additional sources

* Obsolete nether attunement powers
  • Loading branch information
Standing-Storm authored Mar 11, 2024
1 parent ef537eb commit 42b440d
Show file tree
Hide file tree
Showing 24 changed files with 812 additions and 758 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,190 @@
[
{
"type": "effect_on_condition",
"id": "EOC_NETHER_CONDUIT_VALUE_INCREASER",
"eoc_type": "EVENT",
"required_event": "spellcasting_finish",
"condition": {
"and": [
{
"u_has_any_trait": [
"BIOKINETIC",
"CLAIRSENTIENT",
"ELECTROKINETIC",
"PHOTOKINETIC",
"PYROKINETIC",
"TELEKINETIC",
"TELEPATH",
"TELEPORTER",
"VITAKINETIC"
]
},
{
"or": [
{ "compare_string": [ "BIOKINETIC", { "context_val": "school" } ] },
{ "compare_string": [ "CLAIRSENTIENT", { "context_val": "school" } ] },
{ "compare_string": [ "ELECTROKINETIC", { "context_val": "school" } ] },
{ "compare_string": [ "PHOTOKINETIC", { "context_val": "school" } ] },
{ "compare_string": [ "PYROKINETIC", { "context_val": "school" } ] },
{ "compare_string": [ "TELEKINETIC", { "context_val": "school" } ] },
{ "compare_string": [ "TELEPATH", { "context_val": "school" } ] },
{ "compare_string": [ "TELEPORTER", { "context_val": "school" } ] },
{ "compare_string": [ "VITAKINETIC", { "context_val": "school" } ] }
]
}
]
},
"effect": [
{
"run_eocs": [
{
"id": "EOC_NETHER_CONDUIT_VALUE_INCREASER_2",
"condition": { "math": [ "u_nether_conduit_repeated_channeling_value", "<", "25" ] },
"effect": [ { "math": [ "u_nether_conduit_repeated_channeling_value", "+=", "rng(1,2.4)" ] } ]
}
]
}
]
},
{
"type": "effect_on_condition",
"id": "EOC_PSIONICS_GAIN_NETHER_ATTUNEMENT",
"eoc_type": "EVENT",
"required_event": "spellcasting_finish",
"condition": {
"and": [
{
"u_has_any_trait": [
"BIOKINETIC",
"CLAIRSENTIENT",
"ELECTROKINETIC",
"PHOTOKINETIC",
"PYROKINETIC",
"TELEKINETIC",
"TELEPATH",
"TELEPORTER",
"VITAKINETIC"
]
},
{
"or": [
{ "compare_string": [ "BIOKINETIC", { "context_val": "school" } ] },
{ "compare_string": [ "CLAIRSENTIENT", { "context_val": "school" } ] },
{ "compare_string": [ "ELECTROKINETIC", { "context_val": "school" } ] },
{ "compare_string": [ "PHOTOKINETIC", { "context_val": "school" } ] },
{ "compare_string": [ "PYROKINETIC", { "context_val": "school" } ] },
{ "compare_string": [ "TELEKINETIC", { "context_val": "school" } ] },
{ "compare_string": [ "TELEPATH", { "context_val": "school" } ] },
{ "compare_string": [ "TELEPORTER", { "context_val": "school" } ] },
{ "compare_string": [ "VITAKINETIC", { "context_val": "school" } ] }
]
}
]
},
"effect": [
{ "math": [ "u_latest_channeled_power_difficulty", "=", "_difficulty" ] },
{
"run_eocs": [
{
"id": "EOC_PSIONICS_GAIN_NETHER_ATTUNEMENT_2",
"condition": { "math": [ "u_vitamin('vitamin_psionic_drain')", "<", "15" ] },
"effect": [
{
"run_eocs": [
{
"id": "EOC_RAISE_ATTUNEMENT_BELOW_THRESHOLD_CHECKER",
"condition": {
"x_in_y_chance": {
"x": {
"math": [
"(u_latest_channeled_power_difficulty * u_latest_channeled_power_difficulty) + (u_nether_conduit_repeated_channeling_value / 3) + (u_vitamin('vitamin_maintained_powers') * 3)"
]
},
"y": 100
}
},
"effect": [ { "run_eocs": "EOC_RAISE_ATTUNEMENT_BELOW_THRESHOLD" } ]
}
]
}
],
"false_effect": [
{
"run_eocs": [
{
"id": "EOC_RAISE_ATTUNEMENT_ABOVE_THRESHOLD_CHECKER",
"condition": {
"x_in_y_chance": {
"x": {
"math": [
"(u_latest_channeled_power_difficulty * u_latest_channeled_power_difficulty) + u_nether_conduit_repeated_channeling_value + (u_vitamin('vitamin_maintained_powers') * 3)"
]
},
"y": 100
}
},
"effect": [ { "run_eocs": "EOC_RAISE_ATTUNEMENT_ABOVE_THRESHOLD" } ]
}
]
}
]
}
]
}
]
},
{
"type": "effect_on_condition",
"id": "EOC_RAISE_ATTUNEMENT_BELOW_THRESHOLD",
"condition": { "u_has_effect": "effect_noetic_resilience" },
"effect": [
{ "u_message": "As you unleash your powers, you feel a strange tingling sensation.", "type": "mixed" },
{
"math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rand(1) + (rand(u_vitamin('vitamin_maintained_powers')) / 2)" ]
}
],
"false_effect": [
{ "u_message": "As you unleash your powers, you feel a strange tingling sensation.", "type": "mixed" },
{
"math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rand(3) + (rand(u_vitamin('vitamin_maintained_powers')) / 2)" ]
}
]
},
{
"type": "effect_on_condition",
"id": "EOC_RAISE_ATTUNEMENT_ABOVE_THRESHOLD",
"condition": { "u_has_effect": "effect_noetic_resilience" },
"effect": [
{ "u_message": "As you unleash your powers, you feel a strange tingling sensation.", "type": "mixed" },
{
"math": [
"u_vitamin('vitamin_psionic_drain')",
"+=",
"rand((u_latest_channeled_power_difficulty) / 2) + rand(u_vitamin('vitamin_maintained_powers'))"
]
}
],
"false_effect": [
{ "u_message": "As you unleash your powers, you feel a strange tingling sensation.", "type": "mixed" },
{
"math": [
"u_vitamin('vitamin_psionic_drain')",
"+=",
"(rand(u_latest_channeled_power_difficulty) * u_nether_attunement_power_scaling) + rand(u_vitamin('vitamin_maintained_powers'))"
]
}
]
},
{
"type": "effect_on_condition",
"id": "EOC_NETHER_CONDUIT_VALUE_DECREASER",
"recurrence": [ "3 seconds", "15 seconds" ],
"global": true,
"run_for_npcs": true,
"condition": { "math": [ "u_nether_conduit_repeated_channeling_value", ">", "0" ] },
"effect": [ { "math": [ "u_nether_conduit_repeated_channeling_value", "-=", "1" ] } ],
"false_effect": [ { "math": [ "u_nether_conduit_repeated_channeling_value", "=", "0" ] } ]
},
{
"type": "effect_on_condition",
"id": "EOC_PSIONICS_SET_NETHER_ATTUNEMENT_BOOST",
Expand Down
6 changes: 3 additions & 3 deletions data/mods/MindOverMatter/effects/effects_potions.json
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,9 @@
"type": "effect_type",
"id": "effect_noetic_resilience",
"name": [ "Noetic Resilience" ],
"desc": [ "You injected the formula and are now fortified against the unnatural fatigue caused by psionic channeling." ],
"desc": [ "You are fortified against too strong a connection with the Nether." ],
"apply_message": "",
"remove_message": "The concoction's effects fade and you feel weak.",
"remove_message": "Your protection against too much connection to the Nether fades away.",
"rating": "good",
"max_duration": "30 hours",
"max_intensity": 1
Expand All @@ -238,7 +238,7 @@
"id": "effect_noetic_resilience_comedown",
"name": [ "Noetically Fragile" ],
"desc": [ "Your psionic capacity, and physical stamina, are reduced by the aftereffects of the noetic resilience treatment." ],
"apply_message": "",
"apply_message": "You feel a sudden weakness in your body.",
"remove_message": "You feel your strength and ability to channel your powers finally return to normal.",
"rating": "bad",
"max_duration": "55 hours",
Expand Down
Loading

0 comments on commit 42b440d

Please sign in to comment.