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

[MoM] Add new u_cancel_activity to unlocking new power/wakeful rest #78292

Merged
merged 2 commits into from
Dec 2, 2024
Merged
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
8 changes: 2 additions & 6 deletions data/mods/MindOverMatter/powers/vitakinesis_eoc.json
Original file line number Diff line number Diff line change
Expand Up @@ -262,12 +262,8 @@
"condition": { "math": [ "u_val('sleepiness') + u_val('sleep_deprivation') >= 0" ] },
"effect": [ { "run_eocs": [ "EOC_VITAKIN_SLEEP_SLEEPINESS", "EOC_VITAKIN_SLEEP_DEPRIVATION" ] } ],
"false_effect": [
{
"u_message": "You are fully refreshed, and can end your meditations now.",
"popup": true,
"popup_w_interrupt_query": true,
"interrupt_type": "eoc"
},
{ "u_message": "You are fully refreshed, and end your meditations.", "type": "good" },
"u_cancel_activity",
{ "u_lose_effect": "effect_vitakin_wakeful_resting" }
]
},
Expand Down
86 changes: 58 additions & 28 deletions data/mods/MindOverMatter/recipes/practice/biokinetic_practice.json
Original file line number Diff line number Diff line change
Expand Up @@ -171,12 +171,16 @@
},
{ "math": [ "u_spell_level('biokin_breathe_skin') = 1" ] },
{ "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 10,20 )" ] },
{ "u_lose_effect": "effect_psi_learning_new_power" }
{ "u_lose_effect": "effect_psi_learning_new_power" },
"u_cancel_activity",
"u_cancel_activity"
Comment on lines +175 to +176
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Double cancel_activity is intended?

],
"false_effect": [
{ "u_message": "You just couldn't manage to grasp the technique. You'll have to try again.", "popup": true },
{ "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 10,20 )" ] },
{ "u_lose_effect": "effect_psi_learning_new_power" }
{ "u_lose_effect": "effect_psi_learning_new_power" },
"u_cancel_activity",
"u_cancel_activity"
Comment on lines +182 to +183
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here too.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like those were manually added before I replaced all instances. I'll check if it causes a problem in game and, if not, clean it up at some point.

]
}
]
Expand Down Expand Up @@ -255,12 +259,14 @@
},
{ "math": [ "u_spell_level('biokin_flexibility') = 1" ] },
{ "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 15,30 )" ] },
{ "u_lose_effect": "effect_psi_learning_new_power" }
{ "u_lose_effect": "effect_psi_learning_new_power" },
"u_cancel_activity"
],
"false_effect": [
{ "u_message": "You just couldn't manage to grasp the technique. You'll have to try again.", "popup": true },
{ "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 15,30 )" ] },
{ "u_lose_effect": "effect_psi_learning_new_power" }
{ "u_lose_effect": "effect_psi_learning_new_power" },
"u_cancel_activity"
]
}
]
Expand Down Expand Up @@ -339,12 +345,14 @@
},
{ "math": [ "u_spell_level('biokin_dash') = 1" ] },
{ "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 15,30 )" ] },
{ "u_lose_effect": "effect_psi_learning_new_power" }
{ "u_lose_effect": "effect_psi_learning_new_power" },
"u_cancel_activity"
],
"false_effect": [
{ "u_message": "You just couldn't manage to grasp the technique. You'll have to try again.", "popup": true },
{ "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 15,30 )" ] },
{ "u_lose_effect": "effect_psi_learning_new_power" }
{ "u_lose_effect": "effect_psi_learning_new_power" },
"u_cancel_activity"
]
}
]
Expand Down Expand Up @@ -424,12 +432,14 @@
},
{ "math": [ "u_spell_level('biokin_armor_skin') = 1" ] },
{ "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 20,40 )" ] },
{ "u_lose_effect": "effect_psi_learning_new_power" }
{ "u_lose_effect": "effect_psi_learning_new_power" },
"u_cancel_activity"
],
"false_effect": [
{ "u_message": "You just couldn't manage to grasp the technique. You'll have to try again.", "popup": true },
{ "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 20,40 )" ] },
{ "u_lose_effect": "effect_psi_learning_new_power" }
{ "u_lose_effect": "effect_psi_learning_new_power" },
"u_cancel_activity"
]
}
]
Expand Down Expand Up @@ -509,12 +519,14 @@
},
{ "math": [ "u_spell_level('biokin_climate_control') = 1" ] },
{ "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 20,40 )" ] },
{ "u_lose_effect": "effect_psi_learning_new_power" }
{ "u_lose_effect": "effect_psi_learning_new_power" },
"u_cancel_activity"
],
"false_effect": [
{ "u_message": "You just couldn't manage to grasp the technique. You'll have to try again.", "popup": true },
{ "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 20,40 )" ] },
{ "u_lose_effect": "effect_psi_learning_new_power" }
{ "u_lose_effect": "effect_psi_learning_new_power" },
"u_cancel_activity"
]
}
]
Expand Down Expand Up @@ -594,12 +606,14 @@
},
{ "math": [ "u_spell_level('biokin_adrenaline') = 1" ] },
{ "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 20,40 )" ] },
{ "u_lose_effect": "effect_psi_learning_new_power" }
{ "u_lose_effect": "effect_psi_learning_new_power" },
"u_cancel_activity"
],
"false_effect": [
{ "u_message": "You just couldn't manage to grasp the technique. You'll have to try again.", "popup": true },
{ "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 20,40 )" ] },
{ "u_lose_effect": "effect_psi_learning_new_power" }
{ "u_lose_effect": "effect_psi_learning_new_power" },
"u_cancel_activity"
]
}
]
Expand Down Expand Up @@ -679,12 +693,14 @@
},
{ "math": [ "u_spell_level('biokin_enhance_mobility') = 1" ] },
{ "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 25,50 )" ] },
{ "u_lose_effect": "effect_psi_learning_new_power" }
{ "u_lose_effect": "effect_psi_learning_new_power" },
"u_cancel_activity"
],
"false_effect": [
{ "u_message": "You just couldn't manage to grasp the technique. You'll have to try again.", "popup": true },
{ "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 25,50 )" ] },
{ "u_lose_effect": "effect_psi_learning_new_power" }
{ "u_lose_effect": "effect_psi_learning_new_power" },
"u_cancel_activity"
]
}
]
Expand Down Expand Up @@ -764,12 +780,14 @@
},
{ "math": [ "u_spell_level('biokin_hammerhand') = 1" ] },
{ "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 25,50 )" ] },
{ "u_lose_effect": "effect_psi_learning_new_power" }
{ "u_lose_effect": "effect_psi_learning_new_power" },
"u_cancel_activity"
],
"false_effect": [
{ "u_message": "You just couldn't manage to grasp the technique. You'll have to try again.", "popup": true },
{ "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 25,50 )" ] },
{ "u_lose_effect": "effect_psi_learning_new_power" }
{ "u_lose_effect": "effect_psi_learning_new_power" },
"u_cancel_activity"
]
}
]
Expand Down Expand Up @@ -849,12 +867,14 @@
},
{ "math": [ "u_spell_level('biokin_reflex_enhance') = 1" ] },
{ "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 30,60 )" ] },
{ "u_lose_effect": "effect_psi_learning_new_power" }
{ "u_lose_effect": "effect_psi_learning_new_power" },
"u_cancel_activity"
],
"false_effect": [
{ "u_message": "You just couldn't manage to grasp the technique. You'll have to try again.", "popup": true },
{ "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 30,60 )" ] },
{ "u_lose_effect": "effect_psi_learning_new_power" }
{ "u_lose_effect": "effect_psi_learning_new_power" },
"u_cancel_activity"
]
}
]
Expand Down Expand Up @@ -934,12 +954,14 @@
},
{ "math": [ "u_spell_level('biokin_sealed_system') = 1" ] },
{ "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 35,70 )" ] },
{ "u_lose_effect": "effect_psi_learning_new_power" }
{ "u_lose_effect": "effect_psi_learning_new_power" },
"u_cancel_activity"
],
"false_effect": [
{ "u_message": "You just couldn't manage to grasp the technique. You'll have to try again.", "popup": true },
{ "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 35,70 )" ] },
{ "u_lose_effect": "effect_psi_learning_new_power" }
{ "u_lose_effect": "effect_psi_learning_new_power" },
"u_cancel_activity"
]
}
]
Expand Down Expand Up @@ -1019,12 +1041,14 @@
},
{ "math": [ "u_spell_level('biokin_metabolism_enhance') = 1" ] },
{ "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 35,70 )" ] },
{ "u_lose_effect": "effect_psi_learning_new_power" }
{ "u_lose_effect": "effect_psi_learning_new_power" },
"u_cancel_activity"
],
"false_effect": [
{ "u_message": "You just couldn't manage to grasp the technique. You'll have to try again.", "popup": true },
{ "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 35,70 )" ] },
{ "u_lose_effect": "effect_psi_learning_new_power" }
{ "u_lose_effect": "effect_psi_learning_new_power" },
"u_cancel_activity"
]
}
]
Expand Down Expand Up @@ -1104,12 +1128,14 @@
},
{ "math": [ "u_spell_level('biokin_combat_dance') = 1" ] },
{ "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 40,80 )" ] },
{ "u_lose_effect": "effect_psi_learning_new_power" }
{ "u_lose_effect": "effect_psi_learning_new_power" },
"u_cancel_activity"
],
"false_effect": [
{ "u_message": "You just couldn't manage to grasp the technique. You'll have to try again.", "popup": true },
{ "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 40,80 )" ] },
{ "u_lose_effect": "effect_psi_learning_new_power" }
{ "u_lose_effect": "effect_psi_learning_new_power" },
"u_cancel_activity"
]
}
]
Expand Down Expand Up @@ -1189,12 +1215,14 @@
},
{ "math": [ "u_spell_level('biokin_perfected_motion') = 1" ] },
{ "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 45,90 )" ] },
{ "u_lose_effect": "effect_psi_learning_new_power" }
{ "u_lose_effect": "effect_psi_learning_new_power" },
"u_cancel_activity"
],
"false_effect": [
{ "u_message": "You just couldn't manage to grasp the technique. You'll have to try again.", "popup": true },
{ "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 45,90 )" ] },
{ "u_lose_effect": "effect_psi_learning_new_power" }
{ "u_lose_effect": "effect_psi_learning_new_power" },
"u_cancel_activity"
]
}
]
Expand Down Expand Up @@ -1274,12 +1302,14 @@
},
{ "math": [ "u_spell_level('biokin_hurricane_blows') = 1" ] },
{ "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 45,90 )" ] },
{ "u_lose_effect": "effect_psi_learning_new_power" }
{ "u_lose_effect": "effect_psi_learning_new_power" },
"u_cancel_activity"
],
"false_effect": [
{ "u_message": "You just couldn't manage to grasp the technique. You'll have to try again.", "popup": true },
{ "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 45,90 )" ] },
{ "u_lose_effect": "effect_psi_learning_new_power" }
{ "u_lose_effect": "effect_psi_learning_new_power" },
"u_cancel_activity"
]
}
]
Expand Down
Loading
Loading