Skip to content

Commit

Permalink
[MoM] Rework Gateway (#75872)
Browse files Browse the repository at this point in the history
* Initial commit

* Update with proper formula

* Obsolete the attuned ground furniture

* Finish 4-10 EoCs

* Fix final EoC condition

* Change naming

* Update power description for Gateway

* You can't select a destination you don't have attuned.

* Remove errant space

* Switch formula to Clamp
  • Loading branch information
Standing-Storm authored Aug 28, 2024
1 parent 3e39d80 commit 3484533
Show file tree
Hide file tree
Showing 9 changed files with 778 additions and 28 deletions.
2 changes: 1 addition & 1 deletion data/mods/MindOverMatter/PowerDescriptionSpoilers.md
Original file line number Diff line number Diff line change
Expand Up @@ -1115,7 +1115,7 @@ Powers causing telepathic damage have a 5% chance to down the target, a 33% chan
*Duration*: Instant<br />
*Stamina Cost*: 10000, minus 200 per level to a minimum of 6000<br />
*Channeling Time*: 200 moves, minus 5.5 moves per level to a minimum of 75. Attunement takes 8 hours, minus 30 minutes per power level of Gateway to a minimum of 30 minutes<br />
*Effects*: Transport yourself through the Nether to an attuned location. This power works at any distance..<br />
*Effects*: Transport yourself through the Nether to an attuned location. This power works at any distance. You may have a number of destinations simultaneously equal to 1 + 1 per 3 levels of Gateway (2.5 levels if you have the Good Memory trait, 4 levels if you have the Forgetful trait).<br />
*Prerequisites*: Farstep 10, Extended Stride 10 <br />

## Breach
Expand Down
8 changes: 8 additions & 0 deletions data/mods/MindOverMatter/activity_types.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,13 @@
"based_on": "time",
"rooted": true,
"do_turn_eoc": "EOC_PSI_STUDYING_POWER"
},
{
"id": "ACT_PSI_TELEPORTER_ATTUNING",
"type": "activity_type",
"activity_level": "LIGHT_EXERCISE",
"verb": "attuning to area",
"rooted": true,
"based_on": "time"
}
]
7 changes: 7 additions & 0 deletions data/mods/MindOverMatter/effects/effects_psionic.json
Original file line number Diff line number Diff line change
Expand Up @@ -1825,6 +1825,13 @@
],
"flags": [ "MUSCLE_VEH_BOOST" ]
},
{
"type": "effect_type",
"id": "effect_teleporter_attuning_to_area",
"//": "Hidden effect, used as a tracker",
"name": [ "" ],
"desc": [ "" ]
},
{
"type": "effect_type",
"id": "effect_vitakin_slow_bleeding",
Expand Down
5 changes: 2 additions & 3 deletions data/mods/MindOverMatter/hobbies.json
Original file line number Diff line number Diff line change
Expand Up @@ -444,8 +444,7 @@
{ "id": "teleport_collapse", "level": 7 },
{ "id": "teleport_farstep", "level": 10 },
{ "id": "teleport_banish", "level": 6 },
{ "id": "teleport_gateway", "level": 4 },
{ "id": "teleport_area_attune", "level": 1 }
{ "id": "teleport_gateway", "level": 4 }
]
},
{
Expand All @@ -457,7 +456,7 @@
"points": 5,
"traits": [ "TELEPORTER", "TELEPORTER_PROTECT" ],
"skills": [ { "level": 2, "name": "metaphysics" } ],
"spells": [ { "id": "teleport_gateway", "level": 3 }, { "id": "teleport_area_attune", "level": 1 } ]
"spells": [ { "id": "teleport_gateway", "level": 3 } ]
},
{
"type": "profession",
Expand Down
87 changes: 87 additions & 0 deletions data/mods/MindOverMatter/obsolete/powers.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,47 @@
[
{
"type": "effect_on_condition",
"id": "EOC_MOM_GAMESTART_TELEPORTATION_GATEWAY_UPDATE",
"eoc_type": "EVENT",
"required_event": "game_start",
"effect": [ { "math": [ "u_teleportation_gateway_updated", "=", "1" ] } ]
},
{
"type": "effect_on_condition",
"id": "EOC_MOM_GAMELOAD_TELEPORTATION_GATEWAY_UPDATE_DONTKNOW",
"eoc_type": "EVENT",
"required_event": "game_load",
"condition": {
"and": [
{ "u_has_trait": "TELEPORTER" },
{ "math": [ "u_teleportation_gateway_updated", "!=", "1" ] },
{ "math": [ "u_spell_level('teleport_gateway')", "==", "-1" ] }
]
},
"effect": [ { "math": [ "u_teleportation_gateway_updated", "=", "1" ] } ]
},
{
"type": "effect_on_condition",
"id": "EOC_MOM_GAMELOAD_TELEPORTATION_GATEWAY_UPDATE_KNOW",
"eoc_type": "EVENT",
"required_event": "game_load",
"condition": {
"and": [
{ "u_has_trait": "TELEPORTER" },
{ "math": [ "u_teleportation_gateway_updated", "!=", "1" ] },
{ "math": [ "u_spell_level('teleport_gateway')", ">=", "1" ] }
]
},
"effect": [
{ "math": [ "u_spell_level('teleport_area_attune')", "=", "-1" ] },
{ "math": [ "u_spell_level('teleport_gateway_legacy')", "=", "u_spell_level('teleport_gateway')" ] },
{
"u_message": "Your Gateway power has been updated. Your saved locations have not been updated--you can use the Gateway (Obsolete) power to return to them and add them to the new Gateway power.",
"popup": true
},
{ "math": [ "u_teleportation_gateway_updated", "=", "1" ] }
]
},
{
"id": "telepathic_fear_self_effect",
"type": "SPELL",
Expand Down Expand Up @@ -90,5 +133,49 @@
]
},
"ignored_monster_species": [ "PSI_NULL" ]
},
{
"id": "teleport_gateway_legacy",
"type": "SPELL",
"name": "[Ψ]Gateway (Obsolete)",
"description": "This power is Obsolete, but you can still use it. Teleport to an attuned location.",
"message": "There is a long moment of darkness and terrible cold that seems like it will freeze your heart, and then you are somewhere else.",
"teachable": false,
"valid_targets": [ "self" ],
"spell_class": "TELEPORTER",
"skill": "metaphysics",
"flags": [ "PSIONIC", "CONCENTRATE", "SILENT", "NO_HANDS", "NO_LEGS" ],
"difficulty": 8,
"max_level": { "math": [ "int_to_level(1)" ] },
"effect": "translocate",
"shape": "blast",
"energy_source": "STAMINA",
"base_energy_cost": 10000,
"final_energy_cost": 6000,
"energy_increment": -200,
"base_casting_time": 200,
"final_casting_time": 75,
"casting_time_increment": -5.5
},
{
"id": "teleport_area_attune",
"type": "SPELL",
"name": "[Ψ]Attune to Area",
"description": "Attune to a location for later teleporting.",
"message": "",
"teachable": false,
"valid_targets": [ "ground" ],
"spell_class": "TELEPORTER",
"skill": "metaphysics",
"flags": [ "PSIONIC", "CONCENTRATE", "SILENT", "NO_HANDS", "NO_LEGS", "NO_FAIL" ],
"difficulty": 1,
"max_level": 1,
"effect": "ter_transform",
"effect_str": "ter_teleport_location_attune",
"shape": "blast",
"min_range": 1,
"energy_source": "STAMINA",
"base_energy_cost": 0,
"base_casting_time": { "math": [ "2880000 - max(( u_spell_level('teleport_gateway') * 108000), 180000)" ] }
}
]
26 changes: 3 additions & 23 deletions data/mods/MindOverMatter/powers/teleportation.json
Original file line number Diff line number Diff line change
Expand Up @@ -631,15 +631,16 @@
"type": "SPELL",
"name": "[Ψ]Gateway",
"description": "Transport yourself through the Nether to an attuned location. You must attune yourself to the place you wish to travel to.",
"message": "There is a long moment of darkness and terrible cold that seems like it will freeze your heart, and then you are somewhere else.",
"message": "",
"teachable": false,
"valid_targets": [ "self" ],
"spell_class": "TELEPORTER",
"skill": "metaphysics",
"flags": [ "PSIONIC", "CONCENTRATE", "SILENT", "NO_HANDS", "NO_LEGS" ],
"difficulty": 8,
"max_level": { "math": [ "int_to_level(1)" ] },
"effect": "translocate",
"effect": "effect_on_condition",
"effect_str": "EOC_TELEPORT_GATEWAY_SELECTOR",
"shape": "blast",
"energy_source": "STAMINA",
"base_energy_cost": 10000,
Expand All @@ -649,27 +650,6 @@
"final_casting_time": 75,
"casting_time_increment": -5.5
},
{
"id": "teleport_area_attune",
"type": "SPELL",
"name": "[Ψ]Attune to Area",
"description": "Attune to a location for later teleporting.",
"message": "",
"teachable": false,
"valid_targets": [ "ground" ],
"spell_class": "TELEPORTER",
"skill": "metaphysics",
"flags": [ "PSIONIC", "CONCENTRATE", "SILENT", "NO_HANDS", "NO_LEGS", "NO_FAIL" ],
"difficulty": 1,
"max_level": 1,
"effect": "ter_transform",
"effect_str": "ter_teleport_location_attune",
"shape": "blast",
"min_range": 1,
"energy_source": "STAMINA",
"base_energy_cost": 0,
"base_casting_time": { "math": [ "2880000 - max(( u_spell_level('teleport_gateway') * 108000), 180000)" ] }
},
{
"id": "teleport_summon",
"type": "SPELL",
Expand Down
Loading

0 comments on commit 3484533

Please sign in to comment.