Skip to content

Commit 51dfe7f

Browse files
[MoM] Power learning difficulty change (#83766)
* Initial commit * Set equations in jmath * Nether Attunement modifiers * Add maintained powers difficulty * Adjust help file * Fix * Double space
1 parent d784105 commit 51dfe7f

File tree

4 files changed

+16
-7
lines changed

4 files changed

+16
-7
lines changed

data/mods/MindOverMatter/help_files.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"messages": [
5959
"Psionics come from within and cannot be studied by rote repetition from a book. Furthermore, since they only recently appeared with the Cataclysm, there are no established teaching methods or pre-existing courses. That means that each psion must figure out how to use their powers themselves.",
6060
"Every 12 to 168 hours, you gain insight and become eligible to learn a new power, but that doesn't mean you automatically learn one. Powers in paths you have access to periodically check to see if they are eligible for learning. This requires insight as well as individual prerequisites that must be met for each power, though there is always a small chance you will have a flash of inspiration and discover a power despite not meeting the prerequisites.",
61-
"Once you discover a power, you need to study it and attempt to figure out how to use it. This is done by crafting its contemplation recipe, found in the Metaphysics tab of the Practice crafting section. This is a long craft (usually from 8-16 hours) that must all be done in a single sitting and ends with a contested roll of your Metaphysics skill + 1-10 against the power's difficulty + 4. If you succeed, you learn the power. If you fail, you can try again.",
61+
"Once you discover a power, you need to study it and attempt to figure out how to use it. This is done by crafting its contemplation recipe, found in the Metaphysics tab of the Practice crafting section. This is a long craft (usually from 8-16 hours) that must all be done in a single sitting and ends with a contested roll. The formula is: a random number between zero and your metaphysics skill that cannot be lower than one-half your metaphysics skill + a random number between 0 and one-half your intelligence + (5 if you have the appropriate path proficiency) + rng(-2,8) + rng(-2,8), vs 7 + (the power's Difficulty * 1.5) + the number of powers you're currently maintaining, plus an additional modifier if your concentration (q.v.) limit is negative due to penalties. If you succeed, you learn the power. If you fail, you can try again.",
6262
"Once you know a power, that same contemplation recipe can be used to improve it. Simply craft the contemplation recipe and you will begin meditating on the power. The longer you meditate, the more experience in the power you gain. You can meditate as long as you want and stop at any time.",
6363
"In order to focus enough, you will need a matrix crystal, either a drained one or one attuned to the path. The large crystal structures found out in the world are also sufficient, though meditating near them for too long may have unexpected effects.",
6464
"One final important note. Since insight is singular and used up by the first power you learn, knowing more paths means that you will advance in any individual path slower, since more powers are checking to see if they meet the prerequisites to be learned and lower-difficulty powers check more often than higher-difficulty ones. Too many paths and it will take you months or years to master a single one."

data/mods/MindOverMatter/jmath.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,11 +167,23 @@
167167
"//": "This equates to about 400 XP per hour of contemplation when at minimum focus, modified by Nether Attunement",
168168
"return": "(u_val('focus_effective') * 0.004) * (_0) * u_nether_attunement_power_scaling"
169169
},
170+
{
171+
"type": "jmath_function",
172+
"id": "learn_new_power_learn_roll",
173+
"num_args": 0,
174+
"return": "max( (rand(u_skill('metaphysics') ) ), ( u_skill('metaphysics') / 2 ) ) + rand(u_val('intelligence') / 2 ) + (u_has_proficiency(u_latest_studied_power_proficiency) * 5) + rng(-2,8) + rng(-2,8) + learn_new_power_additional_modifiers()"
175+
},
176+
{
177+
"type": "jmath_function",
178+
"id": "learn_new_power_additional_modifiers",
179+
"num_args": 0,
180+
"return": "(u_effect_intensity('effect_disease_psionic_drain') > 5 ? 1 : 0) + (u_effect_intensity('effect_disease_psionic_drain') > 10 ? 1 : 0) + (u_effect_intensity('psi_nether_attention') > 0 ? 2 : 0)"
181+
},
170182
{
171183
"type": "jmath_function",
172184
"id": "learn_new_power_difficulty_setting",
173185
"num_args": 0,
174-
"return": "u_latest_studied_power_difficulty + 4"
186+
"return": "(u_latest_studied_power_difficulty * 1.5) + 7 + u_vitamin('vitamin_maintained_powers') + (concentration_calculations() < 0 ? ( concentration_calculations() * -1 ) : 0)"
175187
},
176188
{
177189
"type": "jmath_function",

data/mods/MindOverMatter/powers/learning_eocs/overall.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -314,10 +314,7 @@
314314
{
315315
"type": "effect_on_condition",
316316
"id": "EOC_PRACTICE_PSIONICS_FINAL_LEARNING_CHECK",
317-
"condition": {
318-
"roll_contested": { "math": [ "u_skill('metaphysics') + u_has_proficiency(u_latest_studied_power_proficiency)" ] },
319-
"difficulty": { "math": [ "learn_new_power_difficulty_setting()" ] }
320-
},
317+
"condition": { "math": [ "learn_new_power_learn_roll() >= learn_new_power_difficulty_setting() " ] },
321318
"effect": [
322319
{
323320
"u_message": "You are studying <spell_name:<u_val:latest_studied_power_name>> whose ID is <u_val:latest_studied_power_name> with Difficulty <u_val:latest_studied_power_difficulty> and requires the <u_val:latest_studied_power_proficiency> proficiency",

data/mods/MindOverMatter/recipes/practice/psychic_knacks.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,7 @@
696696
"id": "EOC_PRACTICE_TELEKIN_BARRIER_KNACK",
697697
"condition": { "u_has_trait": "PSYCHIC_KNACK" },
698698
"effect": [
699-
{ "set_string_var": "telekinetic_wave_knack", "target_var": { "u_val": "latest_studied_power_name" } },
699+
{ "set_string_var": "telekinetic_shield_knack", "target_var": { "u_val": "latest_studied_power_name" } },
700700
{
701701
"run_eocs": [ "EOC_PSI_STUDYING_TELEKIN_POWER_SETUP", "EOC_PSI_STUDYING_POWER_BEGIN", "EOC_PSI_STUDYING_POWER_SIDE_EFFECTS" ]
702702
}

0 commit comments

Comments
 (0)