Skip to content

Commit

Permalink
[MoM] Add new telekinesis power--knockdown (CleverRaven#70623)
Browse files Browse the repository at this point in the history
* Add power

* Add practice recipe

* Fixes

* Fixes

* Fixes
  • Loading branch information
Standing-Storm authored Jan 4, 2024
1 parent a57c70d commit f107c12
Show file tree
Hide file tree
Showing 2 changed files with 84 additions and 2 deletions.
57 changes: 55 additions & 2 deletions data/mods/MindOverMatter/powers/telekinesis.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,59 @@
"ignored_monster_species": [ "PSI_NULL" ],
"learn_spells": { "telekinetic_wave": 7, "telekinetic_hammer": 10, "telekinetic_strength": 13, "telekinetic_explosion": 15 }
},
{
"id": "telekinetic_slam_down",
"type": "SPELL",
"name": "[Ψ]Knockdown",
"description": "Slam something to the ground with a burst of telekinetic force, doing a small amount of damage and downing them.",
"message": "Your target is knocked to the ground.",
"teachable": false,
"valid_targets": [ "ally", "hostile", "ground" ],
"spell_class": "TELEKINETIC",
"skill": "metaphysics",
"flags": [ "PSIONIC", "CONCENTRATE", "RANDOM_DAMAGE", "NO_HANDS", "NO_LEGS", "NO_EXPLOSION_SFX" ],
"difficulty": 2,
"max_level": { "math": [ "int_to_level(1)" ] },
"effect": "attack",
"effect_str": "downed",
"extra_effects": [ { "id": "psionic_drained_difficulty_two", "hit_self": true } ],
"shape": "blast",
"damage_type": "psi_telekinetic_damage",
"min_damage": {
"math": [
"( (u_spell_level('telekinetic_slam_down') * 0.5) + 5) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
]
},
"max_damage": {
"math": [
"( (u_spell_level('telekinetic_slam_down') * 1.2) + 15) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
]
},
"min_duration": {
"math": [
"( (u_spell_level('telekinetic_slam_down') * 25) + 100) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
]
},
"max_duration": {
"math": [
"( (u_spell_level('telekinetic_slam_down') * 95) + 400) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling"
]
},
"min_range": {
"math": [
"min( (( (u_spell_level('telekinetic_slam_down') * 0.5) + 2) * (scaling_factor(u_val('intelligence') ) ) * u_nether_attunement_power_scaling), 40)"
]
},
"max_range": 40,
"energy_source": "STAMINA",
"base_energy_cost": 2500,
"final_energy_cost": 850,
"energy_increment": -65,
"base_casting_time": 75,
"final_casting_time": 30,
"casting_time_increment": -3,
"ignored_monster_species": [ "PSI_NULL" ]
},
{
"id": "telekinetic_momentum",
"type": "SPELL",
Expand Down Expand Up @@ -305,13 +358,13 @@
"spell_class": "TELEKINETIC",
"skill": "metaphysics",
"flags": [ "PSIONIC", "CONCENTRATE", "NO_PROJECTILE", "RANDOM_DAMAGE", "NO_HANDS", "NO_LEGS" ],
"difficulty": 5,
"max_level": { "math": [ "int_to_level(1)" ] },
"extra_effects": [
{ "id": "tele_mindhammer_bash", "hit_self": false, "max_level": 20 },
{ "id": "psionic_drained_difficulty_five", "hit_self": true }
],
"damage_type": "psi_telekinetic_damage",
"difficulty": 5,
"max_level": { "math": [ "int_to_level(1)" ] },
"effect": "attack",
"shape": "blast",
"min_damage": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"nested_category_data": [
"practice_telekinetic_pull",
"practice_telekinetic_push",
"practice_telekinetic_slam_down",
"practice_telekinetic_momentum",
"practice_telekinetic_slowfall",
"practice_telekinetic_wave",
Expand Down Expand Up @@ -124,6 +125,34 @@
}
]
},
{
"type": "recipe",
"activity_level": "LIGHT_EXERCISE",
"name": "contemplation: knockdown",
"id": "practice_telekinetic_slam_down",
"description": "Contemplate your powers and improve your ability to knock your targets over.",
"category": "CC_*",
"subcategory": "CSC_*_NESTED",
"skill_used": "metaphysics",
"difficulty": 1,
"time": "30 m",
"autolearn": false,
"tools": [ [ [ "matrix_crystal_drained", -1 ] ] ],
"flags": [ "SECRET", "BLIND_HARD" ],
"result_eocs": [
{
"id": "EOC_PRACTICE_TELEKIN_SLAM_DOWN",
"condition": { "math": [ "u_spell_level('telekinetic_slam_down')", ">=", "1" ] },
"effect": [
{ "u_message": "You spend some time meditating and contemplating your powers and emerge with new knowledge." },
{ "math": [ "u_spell_exp('telekinetic_slam_down')", "+=", "(contemplation_factor(1))" ] },
{ "math": [ "u_vitamin('vitamin_psionic_drain')", "+=", "rng( 0,2 )" ] },
{ "math": [ "u_val('stored_kcal')", "-=", "psionics_contemplation_kcal_cost(2)" ] },
{ "run_eocs": "EOC_PSI_PRACTICE_FOCUS_MOD" }
]
}
]
},
{
"type": "recipe",
"activity_level": "LIGHT_EXERCISE",
Expand Down

0 comments on commit f107c12

Please sign in to comment.