Skip to content

Commit fdbb786

Browse files
Merge pull request #83299 from Standing-Storm/crystallized-shatter-changes
[Magiclysm] Rework crystallized mana from mana crystals
1 parent 731730a commit fdbb786

File tree

12 files changed

+193
-19
lines changed

12 files changed

+193
-19
lines changed

data/mods/Magiclysm/cooking_components.json

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,24 @@
2020
[ "mossling_fur", 8 ],
2121
[ "dryad_bark", 3 ],
2222
[ "gnome_eye", 2 ],
23-
[ "bracken_eye", 1 ]
23+
[ "bracken_eye", 1 ],
24+
[ "dragon_blood", 1 ],
25+
[ "glowing_mushroom", 1 ]
2426
]
2527
]
2628
},
2729
{
2830
"id": "mana_energy_strong",
2931
"type": "requirement",
30-
"components": [ [ [ "golden_reed_stalk", 1 ], [ "funnelcap_chunk", 5 ], [ "bracken_eye", 1 ], [ "dryad_bark", 10 ] ] ]
32+
"components": [
33+
[
34+
[ "golden_reed_stalk", 1 ],
35+
[ "funnelcap_chunk", 5 ],
36+
[ "bracken_eye", 1 ],
37+
[ "dryad_bark", 10 ],
38+
[ "dragon_blood", 1 ],
39+
[ "glowing_mushroom", 10 ]
40+
]
41+
]
3142
}
3243
]

data/mods/Magiclysm/effect_on_conditions/spellcasting/difficulty_modifiers.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,5 +183,20 @@
183183
{ "math": [ "u_spellcasting_adjustment('difficulty', 'mod': 'magiclysm', 'flag_blacklist': 'PSIONIC') = 999" ] },
184184
{ "math": [ "u_spellcasting_adjustment('cost', 'mod': 'magiclysm', 'flag_blacklist': 'PSIONIC') = 999" ] }
185185
]
186+
},
187+
{
188+
"type": "effect_on_condition",
189+
"id": "EOC_MANA_OVERLOAD_MAKES_SPELLS_MORE_DIFFICULT",
190+
"eoc_type": "EVENT",
191+
"required_event": "opens_spellbook",
192+
"condition": { "u_has_effect": "effect_mana_overload" },
193+
"effect": [
194+
{
195+
"math": [ "u_spellcasting_adjustment('difficulty', 'mod': 'magiclysm')", "=", "(u_effect_intensity('effect_mana_overload') )" ]
196+
},
197+
{
198+
"math": [ "u_spellcasting_adjustment('cost', 'mod': 'magiclysm')", "=", "(u_effect_intensity('effect_mana_overload') / 2)" ]
199+
}
200+
]
186201
}
187202
]

data/mods/Magiclysm/effects/effects.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1988,6 +1988,20 @@
19881988
"base_mods": { "speed_mod": [ -1 ] },
19891989
"scaling_mods": { "speed_mod": [ -1 ] }
19901990
},
1991+
{
1992+
"type": "effect_type",
1993+
"id": "effect_mana_overload",
1994+
"name": [ "Mana Overload" ],
1995+
"desc": [ "Your leylines are overloaded with a surfeit of mana. It is much harder to control the mana flow." ],
1996+
"apply_message": "You feel a tingling sensation all along your leylines.",
1997+
"remove_message": "Your leylines finally calm down.",
1998+
"max_intensity": 3,
1999+
"enchantments": [
2000+
{
2001+
"values": [ { "value": "REGEN_MANA", "multiply": { "math": [ "-0.3 + (u_effect_intensity('effect_mana_overload') * -0.2)" ] } } ]
2002+
}
2003+
]
2004+
},
19912005
{
19922006
"id": "effect_dispel_magic",
19932007
"type": "effect_type",

data/mods/Magiclysm/field.json

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,5 +317,65 @@
317317
"priority": 8,
318318
"half_life": "10 seconds",
319319
"phase": "gas"
320+
},
321+
{
322+
"id": "fd_mana_overload",
323+
"type": "field_type",
324+
"display_field": true,
325+
"phase": "gas",
326+
"percent_spread": 5,
327+
"half_life": "10 seconds",
328+
"intensity_levels": [
329+
{
330+
"name": "shimmering air",
331+
"sym": "~",
332+
"color": "blue",
333+
"dangerous": true,
334+
"effects": [
335+
{
336+
"effect_id": "effect_mana_overload",
337+
"min_duration": "15 minutes",
338+
"max_duration": "45 minutes",
339+
"intensity": 1,
340+
"immune_in_vehicle": true,
341+
"is_environmental": false
342+
}
343+
]
344+
},
345+
{
346+
"name": "glittering air",
347+
"sym": "~",
348+
"color": "blue",
349+
"dangerous": false,
350+
"light_emitted": 1,
351+
"effects": [
352+
{
353+
"effect_id": "effect_mana_overload",
354+
"intensity": 2,
355+
"min_duration": "2 hours",
356+
"max_duration": "4 hours",
357+
"immune_in_vehicle": true,
358+
"is_environmental": false
359+
}
360+
]
361+
},
362+
{
363+
"name": "glowing air",
364+
"sym": "~",
365+
"color": "blue",
366+
"dangerous": true,
367+
"light_emitted": 10,
368+
"effects": [
369+
{
370+
"effect_id": "effect_mana_overload",
371+
"intensity": 3,
372+
"min_duration": "12 hours",
373+
"max_duration": "24 hours",
374+
"immune_in_vehicle": true,
375+
"is_environmental": false
376+
}
377+
]
378+
}
379+
]
320380
}
321381
]

data/mods/Magiclysm/furniture_and_terrain/furniture.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -197,13 +197,15 @@
197197
"emissions": [ "emit_glimmer" ],
198198
"light_emitted": 12,
199199
"bash": {
200-
"str_min": 25,
201-
"str_max": 35,
202-
"sound": "glass shattering!",
200+
"str_min": 40,
201+
"str_max": 160,
202+
"sound": "crystal shattering!",
203203
"sound_fail": "mana crackling!",
204+
"hit_field": [ "fd_mana_overload", 1 ],
205+
"destroyed_field": [ "fd_mana_overload", 3 ],
204206
"items": [
205-
{ "item": "crystallized_mana", "charges": [ 0, 100 ] },
206-
{ "item": "small_mana_crystal", "count": [ 0, 3 ] },
207+
{ "item": "crystallized_mana_raw", "count": [ 4, 8 ] },
208+
{ "item": "small_mana_crystal", "count": [ 0, 2 ] },
207209
{ "item": "glass_shard", "count": [ 8, 12 ] }
208210
]
209211
}

data/mods/Magiclysm/itemgroups/itemgroups.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
{ "group": "spellbook_tier_0", "prob": 80 },
3939
{ "item": "magazine_augmentative_review", "prob": 10 },
4040
{ "group": "spellbook_loot_0", "prob": 4 },
41+
{ "item": "alchemy_mana_processing", "prob": 2 },
4142
{ "item": "history_botanical_enchantment", "prob": 2 }
4243
]
4344
}
@@ -72,6 +73,7 @@
7273
{ "group": "dragon_books", "prob": 3 },
7374
{ "item": "spellcraft_theory", "prob": 2 },
7475
{ "item": "caster_boosts_info", "prob": 2 },
76+
{ "item": "alchemy_mana_processing", "prob": 2 },
7577
{ "item": "alchemy_illegal", "prob": 1 },
7678
{ "item": "alchemy_master", "prob": 1 }
7779
]
@@ -87,6 +89,7 @@
8789
{ "group": "magic_recipe_basic", "prob": 6 },
8890
{ "group": "magic_recipe_advanced", "prob": 2 },
8991
{ "group": "dragon_books", "prob": 5 },
92+
{ "item": "alchemy_mana_processing", "prob": 5 },
9093
{ "group": "spellcraft_books", "prob": 4 },
9194
{ "item": "alchemy_illegal", "prob": 1 },
9295
{ "item": "alchemy_master", "prob": 1 }
@@ -1656,7 +1659,10 @@
16561659
"distribution": [ { "group": "enchanted_rings_common", "prob": 30 }, { "group": "enchanted_rings_uncommon", "prob": 10 } ],
16571660
"prob": 40
16581661
},
1659-
{ "item": "crystallized_mana", "prob": 50, "charges": [ 1, 10 ] },
1662+
{
1663+
"distribution": [ { "item": "crystallized_mana_raw", "prob": 1 }, { "item": "crystallized_mana", "prob": 1, "charges": [ 1, 10 ] } ],
1664+
"prob": 50
1665+
},
16601666
[ "copper_circlet", 10 ],
16611667
[ "cauldron_orichalcum", 1 ],
16621668
{ "item": "small_mana_crystal", "prob": 40, "charges": [ 5, 50 ] }

data/mods/Magiclysm/itemgroups/recipe_books.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
[ "journeyman_enchanting", 20 ],
1414
[ "arcane_archer_companion", 15 ],
1515
[ "cooking_poison", 15 ],
16-
[ "metal_legends", 5 ]
16+
[ "metal_legends", 5 ],
17+
[ "alchemy_mana_processing", 10 ]
1718
]
1819
},
1920
{

data/mods/Magiclysm/items/alchemy_items.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,20 @@
3131
"//": "Potion recipes that require a full owlbear egg could also instead require larger amounts of stone shell. Since 1 egg gives 3 shells, you could perhaps have 1 egg be equivalent to 5 or more shells when making potions.",
3232
"melee_damage": { "bash": 5, "cut": 3 }
3333
},
34+
{
35+
"id": "crystallized_mana_raw",
36+
"type": "ITEM",
37+
"category": "spare_parts",
38+
"name": { "str": "raw mana crystal" },
39+
"description": "A large chunk of crystal, removed from a leyline nexus. It requires alchemical processing to transform into crystallized mana.",
40+
"weight": "10325 g",
41+
"volume": "5 L",
42+
"price": "50 USD",
43+
"price_postapoc": "3 USD 50 cent",
44+
"material": [ "crystallized_mana" ],
45+
"symbol": "=",
46+
"color": "cyan"
47+
},
3448
{
3549
"id": "copper_infuser",
3650
"copy-from": "copper_bracelet",

data/mods/Magiclysm/items/recipe_books.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,27 @@
125125
"read_skill": "chemistry",
126126
"read_fun": -2
127127
},
128+
{
129+
"id": "alchemy_mana_processing",
130+
"type": "ITEM",
131+
"subtypes": [ "BOOK" ],
132+
"category": "manuals",
133+
"name": { "str": "Quintessential Refinement", "str_pl": "copies of Quintessential Refinement" },
134+
"description": "A reference manual for the process needed to turn raw mana crystals into useful crystallized mana, for those who prefer to source their mana from nature instead of the time-consuming and extremely fatiguing process of condensing the mana using thaumaturgy.",
135+
"weight": "425 g",
136+
"volume": "450 ml",
137+
"price": "50 USD",
138+
"material": [ "paper" ],
139+
"symbol": "?",
140+
"color": "white",
141+
"required_level": 6,
142+
"max_level": 9,
143+
"intelligence": 12,
144+
"time": "20 m",
145+
"melee_damage": { "bash": 6 },
146+
"read_skill": "chemistry",
147+
"read_fun": -2
148+
},
128149
{
129150
"id": "techno_basic",
130151
"type": "ITEM",

data/mods/Magiclysm/recipes/alchemy.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,5 +157,35 @@
157157
"subcategory": "CSC_ENCHANTED_OTHER",
158158
"autolearn": true,
159159
"charges": 10
160+
},
161+
{
162+
"type": "recipe",
163+
"activity_level": "LIGHT_EXERCISE",
164+
"result": "crystallized_mana",
165+
"id_suffix": "using_alchemy",
166+
"charges": 8,
167+
"batch_time_factors": [ 40, 3 ],
168+
"qualities": [
169+
{ "id": "CONCENTRATE", "level": 1 },
170+
{ "id": "FINE_DISTILL", "level": 1 },
171+
{ "id": "SEPARATE", "level": 1 },
172+
{ "id": "CONTAIN", "level": 1 },
173+
{ "id": "MANA_FOCUS", "level": 1 }
174+
],
175+
"tools": [ [ [ "surface_heat", 20, "LIST" ] ] ],
176+
"components": [
177+
[ [ "crystallized_mana_raw", 1 ] ],
178+
[ [ "mana_energy_weak", 1, "LIST" ] ],
179+
[ [ "mercury", 5 ] ],
180+
[ [ "chem_sulphur", 20 ], [ "chunk_sulfur", 1 ] ]
181+
],
182+
"proficiencies": [ { "proficiency": "prof_alchemy", "required": false } ],
183+
"time": "4 h",
184+
"skill_used": "chemistry",
185+
"difficulty": 5,
186+
"skills_required": [ "spellcraft", 6 ],
187+
"book_learn": [ [ "alchemy_master", 6 ], [ "alchemy_mana_processing", 4 ] ],
188+
"category": "CC_ENCHANTED",
189+
"subcategory": "CSC_ENCHANTED_OTHER"
160190
}
161191
]

0 commit comments

Comments
 (0)