Skip to content

Commit

Permalink
[Magiclysm] Add a trait that prevents magical spellcasting (#77543)
Browse files Browse the repository at this point in the history
* Add the Empty trait

* Make the trait prevent all non-psionic spellcasting even more

* Remove unneeded NON_THRESH
  • Loading branch information
SariusSkelrets authored Nov 3, 2024
1 parent 1f0daba commit 9ed75c9
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
11 changes: 11 additions & 0 deletions data/mods/Magiclysm/eoc_spell_difficulty_modifiers.json
Original file line number Diff line number Diff line change
Expand Up @@ -128,5 +128,16 @@
{ "math": [ "u_spellcasting_adjustment('difficulty', 'flag_whitelist': 'TRANSFORMATION_SPELL')", "=", "999" ] },
{ "math": [ "u_spellcasting_adjustment('cost', 'flag_whitelist': 'TRANSFORMATION_SPELL')", "=", "999" ] }
]
},
{
"type": "effect_on_condition",
"id": "EOC_NO_CASTING_FOR_EMPTY",
"eoc_type": "EVENT",
"required_event": "opens_spellbook",
"condition": { "u_has_trait": "MAGIC_EMPTY" },
"effect": [
{ "math": [ "u_spellcasting_adjustment('difficulty', 'flag_blacklist': 'PSIONIC')", "=", "999" ] },
{ "math": [ "u_spellcasting_adjustment('cost', 'flag_blacklist': 'PSIONIC')", "=", "999" ] }
]
}
]
14 changes: 14 additions & 0 deletions data/mods/Magiclysm/traits/mutation.json
Original file line number Diff line number Diff line change
Expand Up @@ -385,5 +385,19 @@
"starting_trait": false,
"category": [ "CHIMERA" ],
"flags": [ "UNCANNY_DODGE" ]
},
{
"type": "mutation",
"id": "MAGIC_EMPTY",
"name": { "str": "Empty" },
"//": "This is intended to prevent magical spellcasting. Psionics don't need mana, so they can be used even as an Empty.",
"points": -10,
"description": "You are one of the Empty, the rare few unable to cast even the simplest spells. Your complete lack of mana prevents you from ever casting any magic, no matter how well you know it. At least it doesn't prevent the use of magical items and potions.",
"purifiable": false,
"valid": false,
"starting_trait": true,
"types": [ "MANA_ADD", "MANA_REGEN", "MANA_MULT" ],
"flags": [ "NO_SPELLCASTING" ],
"enchantments": [ { "values": [ { "value": "REGEN_MANA", "multiply": -1 }, { "value": "MAX_MANA", "multiply": -1 } ] } ]
}
]

0 comments on commit 9ed75c9

Please sign in to comment.