Skip to content

Commit 712b21a

Browse files
[MoM] Fix Phase/Farstep volume calculations (#81626)
* Fix volumes * Fix Farstep debug message/use context Val again for volume calculations * Replace name/desc in actual Farstep power to avoid confusion
1 parent 5e66810 commit 712b21a

File tree

2 files changed

+6
-13
lines changed

2 files changed

+6
-13
lines changed

data/mods/MindOverMatter/powers/teleportation.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -732,11 +732,8 @@
732732
{
733733
"id": "teleport_farstep_real",
734734
"type": "SPELL",
735-
"name": { "str": "[Ψ]Farstep Real", "//": "NO_I18N" },
736-
"description": {
737-
"str": "The actual farstep power, after checking the volume of your goods. You shouldn't see this.",
738-
"//~": "NO_I18N"
739-
},
735+
"name": "[Ψ]Farstep",
736+
"description": "Skating along the void between dimensions, move to a specific place nearby.\n\nThe power <color_red>will fail</color> if the volume of your carried gear is too great.",
740737
"message": "",
741738
"teachable": false,
742739
"valid_targets": [ "ground" ],

data/mods/MindOverMatter/powers/teleportation_eoc.json

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
{ "run_eocs": "EOC_TELEPORT_SELF_CARRIED_VOLUME_CHECKER" },
8080
{
8181
"math": [
82-
"_teleport_phase_limit = ( ( ( u_spell_level('teleport_blink') * 5000 ) + 10000 ) * scaling_factor( u_val('intelligence') ) * u_nether_attunement_power_scaling )"
82+
"_teleport_phase_limit = ( ( ( u_spell_level('teleport_phase') * 5000 ) + 10000 ) * scaling_factor( u_val('intelligence') ) * u_nether_attunement_power_scaling )"
8383
]
8484
},
8585
{ "u_message": "Your Phase volume limit is <context_val:teleport_blink_limit>.", "type": "debug" },
@@ -277,16 +277,12 @@
277277
{ "run_eocs": "EOC_TELEPORT_SELF_CARRIED_VOLUME_CHECKER" },
278278
{
279279
"math": [
280-
"_teleport_farstep_limit = ( ( ( u_spell_level('teleport_blink') * 5000 ) + 8000 ) * scaling_factor( u_val('intelligence') ) * u_nether_attunement_power_scaling )"
280+
"_teleport_farstep_limit = ( ( ( u_spell_level('teleport_farstep') * 5000 ) + 8000 ) * scaling_factor( u_val('intelligence') ) * u_nether_attunement_power_scaling )"
281281
]
282282
},
283-
{ "u_message": "Your Blink volume limit is <context_val:teleport_farstep_limit>.", "type": "debug" },
283+
{ "u_message": "Your Farstep volume limit is <context_val:teleport_farstep_limit>.", "type": "debug" },
284284
{
285-
"if": {
286-
"math": [
287-
"u_teleport_total_carried_volume <= ( ( ( u_spell_level('teleport_farstep') * 5000 ) + 8000 ) * scaling_factor( u_val('intelligence') ) * u_nether_attunement_power_scaling )"
288-
]
289-
},
285+
"if": { "math": [ "u_teleport_total_carried_volume <= _teleport_farstep_limit" ] },
290286
"then": [
291287
{ "u_cast_spell": { "id": "teleport_farstep_real", "hit_self": false }, "targeted": true },
292288
{

0 commit comments

Comments
 (0)