Skip to content

Commit

Permalink
[MoM] Change electrokinetic overload (CleverRaven#70216)
Browse files Browse the repository at this point in the history
* Change electrokin overload to remove lightning

* Add zapping to electrokinetic overload

* Remove overload

* Obsolete enchant

* Add motor seizure

* Updates

* Kick tests

* Kick tests
  • Loading branch information
Standing-Storm authored Dec 15, 2023
1 parent 0abcf38 commit 212dd69
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 25 deletions.
13 changes: 1 addition & 12 deletions data/mods/MindOverMatter/effectoncondition/eoc_awakening.json
Original file line number Diff line number Diff line change
Expand Up @@ -1194,21 +1194,10 @@
},
{ "u_add_effect": "psionic_overload", "duration": { "math": [ "ps_str * u_val('time: 1 h')" ] } },
{ "u_add_effect": "effect_electrokin_overload", "duration": { "math": [ "ps_str * u_val('time: 2 h')" ] } },
{ "run_eocs": "EOC_PORTAL_ELECTRO_AWAKENING_FAILED_ZAP" },
{ "run_eocs": "EOC_ELECTRO_OVERLOAD_ZAP" },
{ "math": [ "u_val('stamina')", "-=", "4000" ] }
]
},
{
"type": "effect_on_condition",
"id": "EOC_PORTAL_ELECTRO_AWAKENING_FAILED_ZAP",
"condition": { "u_has_effect": "effect_electrokin_overload" },
"effect": [
{ "u_message": "Your muscles suddenly seize up!", "type": "bad" },
{ "u_add_effect": "downed", "duration": 5 },
{ "u_add_effect": "stunned", "duration": 1 },
{ "queue_eocs": "EOC_PORTAL_ELECTRO_AWAKENING_FAILED_ZAP", "time_in_future": [ "1 minutes", "45 minutes" ] }
]
},
{
"type": "effect_on_condition",
"id": "EOC_PORTAL_PHOTOKIN_AWAKENING",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,8 @@
"duration": {
"math": [ "u_val('time: 5 s') * (1 + ( u_val('vitamin', 'name:vitamin_psionic_drain') / 2 ) ) * rng(1, _difficulty)" ]
}
}
},
{ "run_eocs": "EOC_ELECTRO_OVERLOAD_ZAP" }
]
},
{
Expand Down Expand Up @@ -765,6 +766,18 @@
}
]
},
{
"type": "effect_on_condition",
"id": "EOC_ELECTRO_OVERLOAD_ZAP",
"condition": { "u_has_effect": "effect_electrokin_overload" },
"effect": [
{ "u_message": "Your muscles suddenly seize up!", "type": "bad" },
{ "u_add_effect": "downed", "duration": 5 },
{ "u_add_effect": "motor_seizure", "duration": 4 },
{ "u_add_effect": "stunned", "duration": 1 },
{ "queue_eocs": "EOC_ELECTRO_OVERLOAD_ZAP", "time_in_future": [ "1 minutes", "45 minutes" ] }
]
},
{
"type": "effect_on_condition",
"id": "EOC_PSIONICS_KCAL_COST",
Expand Down
9 changes: 4 additions & 5 deletions data/mods/MindOverMatter/effects/effects_penalty.json
Original file line number Diff line number Diff line change
Expand Up @@ -274,17 +274,16 @@
{
"type": "effect_type",
"id": "effect_electrokin_overload",
"name": [ "Electrified" ],
"desc": [ "Your skin is emitting sparks." ],
"apply_message": "Your skin begins to tingle!",
"remove_message": "The tingling sensation stops",
"name": [ "Jerky" ],
"desc": [ "You muscles don't seem to be reacting exactly the way you want them to." ],
"apply_message": "Your limbs twitch involuntarily!",
"remove_message": "The twitching stops",
"rating": "bad",
"limb_score_mods": [
{ "limb_score": "reaction", "modifier": 0.9, "scaling": -0.2 },
{ "limb_score": "grip", "modifier": 0.8 },
{ "limb_score": "block", "modifier": 0.9 }
],
"enchantments": [ "enchant_electrokin_overload" ],
"flags": [ "EFFECT_LIMB_SCORE_MOD" ]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,6 @@
"has": "HELD",
"intermittent_activation": { "effects": [ { "frequency": "3 seconds", "spell_effects": [ { "id": "teleport_blink_monster" } ] } ] }
},
{
"type": "enchantment",
"id": "enchant_electrokin_overload",
"condition": "ALWAYS",
"has": "HELD",
"emitter": "emit_shock_burst_electrokin_overload"
},
{
"type": "enchantment",
"id": "enchant_pyrokin_fever",
Expand Down
9 changes: 9 additions & 0 deletions data/mods/MindOverMatter/obsolete/enchantment.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[
{
"type": "enchantment",
"id": "enchant_electrokin_overload",
"condition": "ALWAYS",
"has": "HELD",
"emitter": "emit_shock_burst_electrokin_overload"
}
]
14 changes: 14 additions & 0 deletions data/mods/MindOverMatter/obsolete/eoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[
{
"type": "effect_on_condition",
"id": "EOC_PORTAL_ELECTRO_AWAKENING_FAILED_ZAP",
"condition": { "u_has_effect": "effect_electrokin_overload" },
"effect": [
{ "u_message": "Your muscles suddenly seize up!", "type": "bad" },
{ "u_add_effect": "downed", "duration": 5 },
{ "u_add_effect": "motor_seizure", "duration": 4 },
{ "u_add_effect": "stunned", "duration": 1 },
{ "queue_eocs": "EOC_PORTAL_ELECTRO_AWAKENING_FAILED_ZAP", "time_in_future": [ "1 minutes", "45 minutes" ] }
]
}
]

0 comments on commit 212dd69

Please sign in to comment.