Skip to content

Commit 4846af0

Browse files
[Magiclysm] Collapse Boreal Mage's Cold Aura into a single trait (CleverRaven#83362)
* Initial commit * Change cost to 2 * Cold damage is randomized * Add slow chill effect * COLDPROOF and COLD_IMMUNE targets cannot be chilled
1 parent 55d7f8e commit 4846af0

File tree

8 files changed

+50
-36
lines changed

8 files changed

+50
-36
lines changed

data/mods/Magiclysm/Spells/infrastructure.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,16 @@
2020
"//~": "NO_I18N"
2121
},
2222
"valid_targets": [ "hostile" ],
23-
"flags": [ "SILENT", "NO_PROJECTILE", "NO_EXPLOSION_SFX", "SPLIT_DAMAGE" ],
23+
"flags": [ "SILENT", "NO_PROJECTILE", "NO_EXPLOSION_SFX", "SPLIT_DAMAGE", "RANDOM_DAMAGE", "RANDOM_DURATION" ],
2424
"effect": "attack",
25+
"effect_str": "boreal_mage_slow_chilled",
2526
"shape": "blast",
26-
"min_damage": 5,
27-
"max_damage": 5,
27+
"min_damage": 3,
28+
"max_damage": 10,
2829
"min_aoe": 3,
2930
"max_aoe": 3,
31+
"min_duration": 500,
32+
"max_duration": 600,
3033
"damage_type": "cold"
3134
},
3235
{

data/mods/Magiclysm/effect_on_conditions/attunement_choices.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,11 @@
747747
{ "test_eoc": "EOC_CONDITION_ATTUNEMENT_CHECK_PROFICIENCY_MASTERY" }
748748
]
749749
},
750-
"effect": [ { "u_add_trait": "BOREAL_MAGE" }, { "run_eocs": "EOC_ATTUNEMENT_SUCCESS_MESSAGE" } ]
750+
"effect": [
751+
{ "u_add_trait": "BOREAL_MAGE" },
752+
{ "u_add_trait": "BOREAL_MAGE_COLD_AURA" },
753+
{ "run_eocs": "EOC_ATTUNEMENT_SUCCESS_MESSAGE" }
754+
]
751755
},
752756
{
753757
"type": "effect_on_condition",

data/mods/Magiclysm/effect_on_conditions/attunements.json

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -24,22 +24,6 @@
2424
}
2525
]
2626
},
27-
{
28-
"type": "effect_on_condition",
29-
"id": "EOC_GIVE_COLD_AURA_OFF",
30-
"recurrence": [ "60 s", "60 s" ],
31-
"condition": {
32-
"and": [
33-
{ "u_has_trait": "BOREAL_MAGE" },
34-
{ "not": { "compare_string": [ "yes", { "u_val": "attunement_attunement_u_got_boreal_mage_attunement" } ] } }
35-
]
36-
},
37-
"deactivate_condition": { "not": { "u_has_trait": "BOREAL_MAGE" } },
38-
"effect": [
39-
{ "u_add_trait": "COLD_AURA_OFF" },
40-
{ "u_add_var": "attunement_attunement_u_got_boreal_mage_attunement", "value": "yes" }
41-
]
42-
},
4327
{
4428
"type": "effect_on_condition",
4529
"id": "EOC_DUST_REBORN_INITIAL",

data/mods/Magiclysm/effects/effects.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -775,6 +775,18 @@
775775
"base_mods": { "speed_mod": [ -30 ] },
776776
"scaling_mods": { "speed_mod": [ -30 ] }
777777
},
778+
{
779+
"type": "effect_type",
780+
"id": "boreal_mage_slow_chilled",
781+
"name": [ "Chilled" ],
782+
"desc": [ "A frozen aura has chilled you to the bone." ],
783+
"apply_message": "You feel yourself getting slower, as ice seems to run through your veins.",
784+
"remove_message": "The bone-deep chill fades away.",
785+
"rating": "bad",
786+
"show_in_info": true,
787+
"immune_flags": [ "COLD_IMMUNE", "COLDPROOF" ],
788+
"base_mods": { "speed_mod": [ -20 ] }
789+
},
778790
{
779791
"type": "effect_type",
780792
"id": "overclocker_drive_effect",

data/mods/Magiclysm/migration_and_obsoletion/eocs.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,5 +162,11 @@
162162
{ "npc_remove_item_with": "warg_food" },
163163
{ "u_spawn_item": "meat", "suppress_message": true }
164164
]
165+
},
166+
{
167+
"type": "effect_on_condition",
168+
"id": "EOC_GIVE_COLD_AURA_OFF",
169+
"//": "Remove in 0.J",
170+
"effect": [ ]
165171
}
166172
]

data/mods/Magiclysm/migration_and_obsoletion/mutations.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,17 @@
3030
"type": "TRAIT_MIGRATION",
3131
"id": "BIOMANCER_EAT_TONS_OF_FOOD_05",
3232
"remove": true
33+
},
34+
{
35+
"type": "TRAIT_MIGRATION",
36+
"//": "remove after 0.J",
37+
"id": "COLD_AURA_OFF",
38+
"trait": "BOREAL_MAGE_COLD_AURA"
39+
},
40+
{
41+
"type": "TRAIT_MIGRATION",
42+
"//": "remove after 0.J",
43+
"id": "COLD_AURA_ON",
44+
"trait": "BOREAL_MAGE_COLD_AURA"
3345
}
3446
]

data/mods/Magiclysm/mutations/spell_triggering_mutations.json

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,26 @@
11
[
22
{
33
"type": "mutation",
4-
"id": "COLD_AURA_OFF",
4+
"id": "BOREAL_MAGE_COLD_AURA",
55
"starting_trait": false,
66
"purifiable": false,
77
"valid": false,
88
"name": { "str": "Cold Aura" },
99
"points": 0,
1010
"active": true,
11-
"description": "Your presence is so dangerous you can freeze everything around yourself. You are currently suppressing this power.",
12-
"transform": { "target": "COLD_AURA_ON", "msg_transform": "Everything around you is covered in frost!", "active": true, "moves": 10 }
13-
},
14-
{
15-
"type": "mutation",
16-
"id": "COLD_AURA_ON",
17-
"starting_trait": false,
18-
"purifiable": false,
19-
"valid": false,
20-
"active": true,
21-
"name": { "str": "Cold Aura (on)" },
22-
"points": -1,
11+
"activated_is_setup": true,
12+
"cost": 2,
13+
"mana": true,
14+
"time": 5,
2315
"description": "Your presence is so dangerous you can freeze everything around yourself.",
16+
"activation_msg": "Everything around you is covered in frost!",
2417
"enchantments": [
2518
{
19+
"condition": "ACTIVE",
2620
"intermittent_activation": { "effects": [ { "frequency": "5 seconds", "spell_effects": [ { "id": "boreal_mage_cold_damage" } ] } ] }
2721
}
2822
],
29-
"transform": { "target": "COLD_AURA_OFF", "msg_transform": "You suppress your frozen powers.", "active": false, "moves": 10 },
30-
"flags": [ "NO_BODY_HEAT" ]
23+
"active_flags": [ "NO_BODY_HEAT" ]
3124
},
3225
{
3326
"type": "mutation",

doc/JSON/EFFECTS_JSON.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ matching trait or effect then they are "resisting" the effect, which changes its
273273
```jsonc
274274
"immune_flags": [ "INFECTION_IMMUNE", "YOUR_FLAG" ]
275275
```
276-
Having any of the defined character flags (See JSON_FLAGS.md#Character flags) will make you immune to the effect. Note that these are completely JSON-driven, so you can add a custom flag for your effect without C++ changes.
276+
Having any of the defined character flags (See JSON_FLAGS.md#Character flags) or monster flags will make the target immune to the effect. Note that these are completely JSON-driven, so you can add a custom flag for your effect without C++ changes.
277277

278278
### Bodypart Immunity Flags
279279

0 commit comments

Comments
 (0)