Skip to content

Commit

Permalink
[MoM] Item Gateway Power (CleverRaven#79441)
Browse files Browse the repository at this point in the history
* initial commit

* Fixed volume calculation, `volume()` is mL

* Changed volume check to > 0 instead of > 1, Not sure why i used 1

* Update PowerSpoilers.md

* Lowered stamina requirements to less than Gateway since we're teleporting something smaller than ourselves

* Rename power to Relocation
Change power to difficulty 5, lowered stamina requirement 25%
Changed success and failure messages

* linter

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* build fix

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
thaelina and github-actions[bot] authored Feb 1, 2025
1 parent 68cdd03 commit 0a9e421
Show file tree
Hide file tree
Showing 6 changed files with 677 additions and 2 deletions.
15 changes: 13 additions & 2 deletions data/mods/MindOverMatter/PowerDescriptionSpoilers.md
Original file line number Diff line number Diff line change
Expand Up @@ -926,7 +926,7 @@ Powers causing photokinetic damage have a 40% chance to blind the target for 3 s

Powers causing telekinetic damage have a 40% chance to stagger the target for 2 seconds and a 20% chance to down the target. Each of these is checked independently.
<details>
<summary><h3>AFar Hand</h3></summary>
<summary><h3>Far Hand</h3></summary>

*Difficulty*: 1<br />
*Target*: The items in a space up to 3 squares away plus 0.9 squares per power level<br />
Expand Down Expand Up @@ -1388,6 +1388,17 @@ Powers causing telepathic damage have a 5% chance to down the target, a 33% chan
*Prerequisites*: Stutterstep 10 *or* Transposition 6, Extended Stride 4<br />
</details>
<details>
<summary><h3>Relocation</h3></summary>

*Difficulty*: 5<br />
*Target*: One attuned location<br />
*Duration*: Instant<br />
*Stamina Cost*: 6000, minus 100 per level to a minimum of 3500<br />
*Channeling Time*: 200 moves, minus 5.5 moves per level to a minimum of 75.<br />
*Effects*: Transport all wielded items through the Nether to an attuned location. This power works at any distance. This uses locations attuned to via Gateway. Allowed volume of wielded item is 10L plus 10L per power level.<br />
*Prerequisites*: Gateway 6, Displacement 5<br />
</details>
<details>
<summary><h3>Farstep</h3></summary>

*Difficulty*: 6<br />
Expand Down Expand Up @@ -1440,7 +1451,7 @@ Powers causing telepathic damage have a 5% chance to down the target, a 33% chan
*Stamina Cost*: 7500, minus 170 per level to a minimum of 4600<br />
*Channeling Time*: 150 moves, minus 5.5 moves per level to a minimum of 75<br />
*Effects*: Teleports a single target somewhere *else*, removing them and anything they might drop. The target must have HP lower than 15 to 350, plus 15 to 35 per power level, randomly determined when the power is used. For this purpose, NPC health is calculated as the sum total of their limb health, divided by 3.<br />
*Prerequisites*: Displacement 10, Farstep 6 *or* Transposition 8 *or * Spacial Vortex 8<br />
*Prerequisites*: Displacement 10, Farstep 6 *or* Transposition 8 *or* Spacial Vortex 8<br />
</details>
<details>
<summary><h3>Gateway</h3></summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -913,6 +913,7 @@
"EOC_CHECK_GAMEBEGIN_TELEPORTER_RECIPE_FARSTEP",
"EOC_CHECK_GAMEBEGIN_TELEPORTER_RECIPE_BANISH",
"EOC_CHECK_GAMEBEGIN_TELEPORTER_RECIPE_GATEWAY",
"EOC_CHECK_GAMEBEGIN_TELEPORTER_RECIPE_RELOCATION",
"EOC_CHECK_GAMEBEGIN_TELEPORTER_EPHEMERAL_WALK",
"EOC_CHECK_GAMEBEGIN_TELEPORTER_RECIPE_BREACH"
]
Expand Down Expand Up @@ -1003,6 +1004,12 @@
"condition": { "and": [ { "u_has_trait": "TELEPORTER" }, { "math": [ "u_spell_level('teleport_gateway') >= 0" ] } ] },
"effect": [ { "u_learn_recipe": "practice_teleport_gateway" } ]
},
{
"type": "effect_on_condition",
"id": "EOC_CHECK_GAMEBEGIN_TELEPORTER_RECIPE_RELOCATION",
"condition": { "and": [ { "u_has_trait": "TELEPORTER" }, { "math": [ "u_spell_level('teleport_relocation') >= 0" ] } ] },
"effect": [ { "u_learn_recipe": "practice_teleport_relocation" } ]
},
{
"type": "effect_on_condition",
"id": "EOC_CHECK_GAMEBEGIN_TELEPORTER_EPHEMERAL_WALK",
Expand Down
37 changes: 37 additions & 0 deletions data/mods/MindOverMatter/powers/learning_eocs/teleportation.json
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,43 @@
}
]
},
{
"type": "effect_on_condition",
"id": "EOC_TELEPORT_LEARNING_RELOCATION",
"recurrence": [
{ "math": [ "jmath_teleportation_learning_eocs_modifiers(global_tier_three_power_learning_time_low)" ] },
{ "math": [ "jmath_teleportation_learning_eocs_modifiers(global_tier_three_power_learning_time_high)" ] }
],
"condition": {
"and": [
{ "u_has_trait": "TELEPORTER" },
{ "math": [ "u_vitamin('vitamin_psi_learning_counter') == 1" ] },
{
"or": [
{ "test_eoc": "EOC_CONDITION_ODDS_OF_RANDOM_TIER_THREE_POWER_INSIGHT" },
{
"and": [
{ "math": [ "u_spell_level('teleport_gateway') >= 8" ] },
{ "math": [ "u_spell_level('teleport_collapse_pull') >= 6" ] }
]
}
]
},
{ "test_eoc": "EOC_PSI_LEARNING_BANNED_EFFECTS" },
{ "math": [ "u_spell_level('teleport_relocation') <= 0" ] },
{ "not": { "u_know_recipe": "practice_teleport_relocation" } }
]
},
"deactivate_condition": { "or": [ { "not": { "u_has_trait": "TELEPORTER" } }, { "math": [ "u_spell_level('teleport_relocation') >= 1" ] } ] },
"effect": [
{ "math": [ "u_vitamin('vitamin_psi_learning_counter') = 0" ] },
{ "u_learn_recipe": "practice_teleport_relocation" },
{
"u_message": "Use of your powers has led to an insight. Just as you can teleport yourself to memorized locations, you can also teleport held items to those same locations.",
"popup": true
}
]
},
{
"type": "effect_on_condition",
"id": "EOC_TELEPORT_LEARNING_BREACH",
Expand Down
24 changes: 24 additions & 0 deletions data/mods/MindOverMatter/powers/teleportation.json
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,30 @@
]
}
},
{
"id": "teleport_relocation",
"type": "SPELL",
"name": "[Ψ]Relocation",
"description": "Transport items in your hands through the Nether to an attuned location.",
"message": "",
"teachable": false,
"valid_targets": [ "self" ],
"spell_class": "TELEPORTER",
"magic_type": "mom_psionics",
"skill": "metaphysics",
"flags": [ "PSIONIC", "CONCENTRATE", "SILENT", "NO_HANDS", "NO_LEGS" ],
"difficulty": 5,
"max_level": { "math": [ "int_to_level(1)" ] },
"effect": "effect_on_condition",
"effect_str": "EOC_TELEPORT_ITEM_GATEWAY_PRE_CHECK",
"shape": "blast",
"base_energy_cost": 6000,
"final_energy_cost": 3500,
"energy_increment": -100,
"base_casting_time": 200,
"final_casting_time": 75,
"casting_time_increment": -5.5
},
{
"id": "teleport_ephemeral_walk",
"type": "SPELL",
Expand Down
Loading

0 comments on commit 0a9e421

Please sign in to comment.