Skip to content

Commit 436d2ed

Browse files
[Magiclysm] Biomancy is disturbing (#79117)
* Initial commit * Add pain effects to some spells * Reduce amount of pain caused * Fix scroll name
1 parent 8a7763e commit 436d2ed

File tree

6 files changed

+106
-29
lines changed

6 files changed

+106
-29
lines changed

data/mods/Magiclysm/Spells/biomancer.json

Lines changed: 48 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,23 @@
11
[
2+
{
3+
"id": "biomantic_pain_caused_light",
4+
"type": "SPELL",
5+
"name": { "str": "Cause minor pain", "//~": "NO_I18N" },
6+
"description": { "str": "Causes a small amount of pain when certain spells are used.", "//~": "NO_I18N" },
7+
"valid_targets": [ "self" ],
8+
"effect": "recover_energy",
9+
"effect_str": "PAIN",
10+
"shape": "blast",
11+
"flags": [ "SILENT", "RANDOM_DAMAGE" ],
12+
"spell_class": "BIOMANCER",
13+
"min_damage": -1,
14+
"max_damage": -4
15+
},
216
{
317
"id": "light_healing",
418
"type": "SPELL",
5-
"name": "Cure Light Wounds",
6-
"description": "Heals a little bit of damage on the target.",
19+
"name": "Knit the Rent Flesh",
20+
"description": "Cause the target's wounds to writhe, the flesh to crawl back together, and their injuries to heal. Disturbing, and painful, but effective.",
721
"valid_targets": [ "self", "ally" ],
822
"min_damage": { "math": [ "(u_spell_level('light_healing') * -0.5) - 1" ] },
923
"max_damage": { "math": [ "(u_spell_level('light_healing') * -1.1) - 4" ] },
@@ -15,7 +29,7 @@
1529
"shape": "blast",
1630
"base_casting_time": 300,
1731
"base_energy_cost": 800,
18-
"extra_effects": [ { "id": "eoc_restoration_setup", "hit_self": true } ],
32+
"extra_effects": [ { "id": "eoc_restoration_setup", "hit_self": true }, { "id": "biomantic_pain_caused_light", "hit_self": true } ],
1933
"flags": [ "RESTORATION_SPELL", "RANDOM_DAMAGE", "SOMATIC", "VERBAL", "NO_PROJECTILE" ],
2034
"spell_class": "BIOMANCER",
2135
"difficulty": 2,
@@ -102,7 +116,7 @@
102116
"base_casting_time": 100,
103117
"casting_time_increment": -2.5,
104118
"final_casting_time": 50,
105-
"extra_effects": [ { "id": "eoc_transformation_setup", "hit_self": true } ],
119+
"extra_effects": [ { "id": "eoc_transformation_setup", "hit_self": true }, { "id": "biomantic_pain_caused_light", "hit_self": true } ],
106120
"base_energy_cost": 250,
107121
"energy_increment": -5.0,
108122
"final_energy_cost": 150,
@@ -234,7 +248,7 @@
234248
"effect_str": "rune_biomancer",
235249
"shape": "blast",
236250
"base_casting_time": 5000,
237-
"extra_effects": [ { "id": "eoc_channeling_setup", "hit_self": true } ],
251+
"extra_effects": [ { "id": "eoc_channeling_setup", "hit_self": true }, { "id": "biomantic_pain_caused_light", "hit_self": true } ],
238252
"base_energy_cost": 5,
239253
"min_duration": 1,
240254
"max_duration": 2,
@@ -595,13 +609,12 @@
595609
{
596610
"id": "biomancer_cure_disease_minor",
597611
"type": "SPELL",
598-
"name": "Cure Disease, Minor",
599-
"description": "Cure any minor illnesses you might be suffering from. This is one of the few biomantic cure spells that is castable on other people.",
612+
"name": "Purgation of Maladies",
613+
"description": "Vomit up any minor illnesses you might be suffering from, such as colds or the flu. This is one of the few biomantic cure spells that is castable on other people.",
600614
"valid_targets": [ "self", "ally" ],
601615
"spell_class": "BIOMANCER",
602616
"flags": [ "RESTORATION_SPELL", "CONCENTRATE", "VERBAL", "SOMATIC" ],
603-
"effect": "attack",
604-
"effect_str": "effect_biomancer_cure_disease_minor",
617+
"effect": "vomit",
605618
"shape": "blast",
606619
"difficulty": 4,
607620
"max_level": 10,
@@ -611,15 +624,37 @@
611624
"max_range": 1,
612625
"magic_type": "magiclysm_generic_magic",
613626
"base_energy_cost": 500,
614-
"extra_effects": [ { "id": "eoc_restoration_setup", "hit_self": true } ],
627+
"extra_effects": [
628+
{ "id": "eoc_restoration_setup", "hit_self": true },
629+
{ "id": "biomantic_pain_caused_light", "hit_self": true },
630+
{ "id": "biomancer_cure_disease_minor_actual_effect" }
631+
],
615632
"base_casting_time": 90000,
616633
"final_casting_time": 30000,
617634
"casting_time_increment": -6000
618635
},
636+
{
637+
"id": "biomancer_cure_disease_minor_actual_effect",
638+
"type": "SPELL",
639+
"name": { "str": "Purgation of Maladies Cure", "//~": "NO_I18N" },
640+
"description": { "str": "This causes the actual cure effect, since a vomit effect spell doesn't apply effect_str", "//~": "NO_I18N" },
641+
"valid_targets": [ "self", "ally" ],
642+
"spell_class": "BIOMANCER",
643+
"flags": [ "SILENT" ],
644+
"effect": "attack",
645+
"effect_str": "effect_biomancer_cure_disease_minor",
646+
"shape": "blast",
647+
"difficulty": 4,
648+
"max_level": 10,
649+
"min_duration": 60480000,
650+
"max_duration": 60480000,
651+
"min_range": 1,
652+
"max_range": 1
653+
},
619654
{
620655
"id": "biomancer_hyper_regeneration",
621656
"type": "SPELL",
622-
"name": "Rapid Regeneration",
657+
"name": "Corporeal Reconstitution",
623658
"description": "Possibly the most powerful of the biomantic healing spells, this causes your flesh to literally knit itself together before your eyes.",
624659
"valid_targets": [ "self" ],
625660
"spell_class": "BIOMANCER",
@@ -727,7 +762,7 @@
727762
"duration_increment": 60000,
728763
"magic_type": "magiclysm_generic_magic",
729764
"base_energy_cost": 450,
730-
"extra_effects": [ { "id": "eoc_enhancement_setup", "hit_self": true } ],
765+
"extra_effects": [ { "id": "eoc_enhancement_setup", "hit_self": true }, { "id": "biomantic_pain_caused_light", "hit_self": true } ],
731766
"base_casting_time": 600
732767
},
733768
{
@@ -767,7 +802,7 @@
767802
"max_level": 15,
768803
"magic_type": "magiclysm_generic_magic",
769804
"base_energy_cost": 350,
770-
"extra_effects": [ { "id": "eoc_restoration_setup", "hit_self": true } ],
805+
"extra_effects": [ { "id": "eoc_restoration_setup", "hit_self": true }, { "id": "biomantic_pain_caused_light", "hit_self": true } ],
771806
"base_casting_time": 1500
772807
},
773808
{
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
[
2+
{
3+
"type": "effect_on_condition",
4+
"id": "EOC_BIOMANCY_IS_DISTURBING",
5+
"eoc_type": "EVENT",
6+
"required_event": "spellcasting_finish",
7+
"//": "The character check is because it's meant to be the effects of someone seeing you cast a biomancy spell. If no one sees it, it doesn't matter.",
8+
"condition": {
9+
"and": [
10+
{ "compare_string": [ "BIOMANCER", { "context_val": "school" } ] },
11+
{ "math": [ "u_characters_nearby('radius': 30, 'attitude': 'any') > 0" ] }
12+
]
13+
},
14+
"effect": [
15+
{
16+
"u_add_effect": "effect_biomancer_disturbing",
17+
"intensity": { "math": [ "_difficulty * 1.5" ] },
18+
"duration": { "math": [ "_difficulty * 8" ] }
19+
}
20+
]
21+
}
22+
]

data/mods/Magiclysm/effects/effects.json

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,8 @@
273273
{ "value": "PERCEPTION", "add": { "math": [ "((u_spell_level('bio_grotesque') / 10) + 1)" ] } },
274274
{ "value": "DEXTERITY", "add": { "math": [ "((u_spell_level('bio_grotesque') / 10) + 1)" ] } },
275275
{ "value": "STRENGTH", "add": { "math": [ "((u_spell_level('bio_grotesque') / 5) + 1)" ] } },
276-
{ "value": "SPEED", "add": { "math": [ "((u_spell_level('bio_grotesque') / 4) + 5)" ] } }
276+
{ "value": "SPEED", "add": { "math": [ "((u_spell_level('bio_grotesque') / 4) + 5)" ] } },
277+
{ "value": "UGLINESS", "add": { "math": [ "(u_spell_level('bio_grotesque') / 2) + 2" ] } }
277278
]
278279
}
279280
]
@@ -633,7 +634,12 @@
633634
"health_chance": [ 4 ],
634635
"stamina_min": [ 40 ],
635636
"stamina_chance": [ 2 ]
636-
}
637+
},
638+
"enchantments": [
639+
{
640+
"values": [ { "value": "UGLINESS", "add": { "math": [ "( u_spell_level('biomancer_coagulant_weave') / 4 ) + 1" ] } } ]
641+
}
642+
]
637643
},
638644
{
639645
"type": "effect_type",
@@ -1324,8 +1330,8 @@
13241330
"apply_message": "",
13251331
"remove_message": "With an unpleasant twisting sensation your hands and feet return to normal.",
13261332
"rating": "good",
1327-
"flags": [ "WEBBED_HANDS", "WEBBED_FEET" ],
1328-
"base_mods": { "stamina_min": [ 10 ] }
1333+
"base_mods": { "stamina_min": [ 10 ] },
1334+
"enchantments": [ { "mutations": [ "WEBBED", "WEBBED_FEET" ] } ]
13291335
},
13301336
{
13311337
"type": "effect_type",
@@ -1479,7 +1485,7 @@
14791485
{
14801486
"type": "effect_type",
14811487
"id": "effect_biomancer_hyper_regeneration",
1482-
"name": [ "Rapid Regeneration" ],
1488+
"name": [ "Corporeal Reconstitution" ],
14831489
"desc": [ "You are healing unbelievably quickly." ],
14841490
"remove_message": "Your rapid regeneration slows and stops.",
14851491
"rating": "good",
@@ -1501,6 +1507,16 @@
15011507
],
15021508
"flags": [ "MEND_ALL" ]
15031509
},
1510+
{
1511+
"type": "effect_type",
1512+
"id": "effect_biomancer_disturbing",
1513+
"name": [ "" ],
1514+
"desc": [ "" ],
1515+
"max_intensity": 100,
1516+
"enchantments": [
1517+
{ "values": [ { "value": "UGLINESS", "add": { "math": [ "u_effect_intensity('effect_biomancer_disturbing')" ] } } ] }
1518+
]
1519+
},
15041520
{
15051521
"type": "effect_type",
15061522
"id": "effect_biomancer_slow_bleeding_01",
@@ -1535,7 +1551,8 @@
15351551
"enchantments": [
15361552
{
15371553
"values": [
1538-
{ "value": "STOMACH_SIZE_MULTIPLIER", "multiply": { "math": [ "u_spell_level('biomancer_eat_tons_of_food') * 0.5" ] } }
1554+
{ "value": "STOMACH_SIZE_MULTIPLIER", "multiply": { "math": [ "u_spell_level('biomancer_eat_tons_of_food') * 0.5" ] } },
1555+
{ "value": "UGLINESS", "add": 1 }
15391556
]
15401557
}
15411558
]

data/mods/Magiclysm/hobbies.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@
123123
"type": "profession",
124124
"subtype": "hobby",
125125
"id": "dabbler_light_healing",
126-
"name": "Dabbler (Cure Light Wounds)",
127-
"description": "You were one of the hundreds of millions of people who knew a single spell. In your case, Cure Light Wounds. Certainly no one ever asked your reasons for studying biomancy, especially after you saw that guy get hit by a truck running a red light and managed to stop him from bleeding out before the paramedics arrived. As long as you're light on your feet, you won't have to worry about dying of your injuries now.",
126+
"name": "Dabbler (Knit the Rent Flesh)",
127+
"description": "You were one of the hundreds of millions of people who knew a single spell. In your case, Knit the Rent Flesh. Certainly no one ever asked your reasons for studying biomancy, especially after you saw that guy get hit by a truck running a red light and managed to stop him from bleeding out before the paramedics arrived. It was disturbing to watch, but it was undoubtedly effective. As long as you're light on your feet, you won't have to worry about dying of your injuries now.",
128128
"points": 4,
129129
"spells": [ { "id": "light_healing", "level": 5 } ],
130130
"traits": [ "BIOMANCER" ]

data/mods/Magiclysm/items/ethereal_items.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,8 @@
224224
"techniques": [ "PRECISE", "RAPID", "WBLOCK_2" ],
225225
"flags": [ "REACH_ATTACK", "REACH3", "WHIP", "STURDY", "TRADER_AVOID", "UNBREAKABLE_MELEE", "NO_REPAIR", "MAGIC_FOCUS" ],
226226
"category": "weapons",
227-
"melee_damage": { "cut": 30 }
227+
"melee_damage": { "cut": 30 },
228+
"relic_data": { "passive_effects": [ { "has": "WIELD", "condition": "ALWAYS", "values": [ { "value": "UGLINESS", "add": 3 } ] } ] }
228229
},
229230
{
230231
"id": "flarewhip",
@@ -284,7 +285,8 @@
284285
"ZERO_WEIGHT",
285286
"UNRESTRICTED"
286287
],
287-
"armor": [ { "encumbrance": [ 5, 10 ], "coverage": 40, "covers": [ "torso" ] } ]
288+
"armor": [ { "encumbrance": [ 5, 10 ], "coverage": 40, "covers": [ "torso" ] } ],
289+
"relic_data": { "passive_effects": [ { "has": "WORN", "condition": "ALWAYS", "values": [ { "value": "UGLINESS", "add": 5 } ] } ] }
288290
},
289291
{
290292
"id": "bonespear",
@@ -309,7 +311,8 @@
309311
"weight": "2175 g",
310312
"volume": "2500 ml",
311313
"longest_side": "183 cm",
312-
"melee_damage": { "bash": 16, "stab": 36 }
314+
"melee_damage": { "bash": 16, "stab": 36 },
315+
"relic_data": { "passive_effects": [ { "has": "WIELD", "condition": "ALWAYS", "values": [ { "value": "UGLINESS", "add": 3 } ] } ] }
313316
},
314317
{
315318
"id": "druid_recurve",

data/mods/Magiclysm/items/spell_scrolls.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,8 @@
186186
"copy-from": "spell_scroll",
187187
"id": "spell_scroll_light_healing",
188188
"//": "Biomancer spell",
189-
"name": { "str": "Scroll of Cure Light Wounds", "str_pl": "Scrolls of Cure Light Wounds" },
190-
"description": "Heals a little bit of damage on the target.",
189+
"name": { "str": "Scroll of Knit the Rent Flesh", "str_pl": "Scrolls of Knit the Rent Flesh" },
190+
"description": "Cause the target's wounds to pull themselves together.",
191191
"use_action": { "type": "learn_spell", "spells": [ "light_healing" ] }
192192
},
193193
{
@@ -1686,8 +1686,8 @@
16861686
"copy-from": "spell_scroll",
16871687
"id": "spell_scroll_biomancer_cure_disease_minor",
16881688
"//": "Biomancer spell",
1689-
"name": { "str": "Scroll of Cure Disease, Minor", "str_pl": "Scrolls of Cure Disease, Minor" },
1690-
"description": "Snap your fingers and get rid of that nasty cold or flu.",
1689+
"name": { "str": "Scroll of Purgation of Maladies", "str_pl": "Scrolls of Purgation of Maladies" },
1690+
"description": "Snap your fingers and get rid of that nasty cold or flu, with the slight disadvantage that you'll have to vomit it out.",
16911691
"use_action": { "type": "learn_spell", "spells": [ "biomancer_cure_disease_minor" ] }
16921692
},
16931693
{
@@ -1713,7 +1713,7 @@
17131713
"copy-from": "spell_scroll",
17141714
"id": "spell_scroll_biomancer_hyper_regeneration",
17151715
"//": "Biomancer spell",
1716-
"name": { "str": "Scroll of Rapid Regeneration", "str_pl": "Scrolls of Rapid Regeneration" },
1716+
"name": { "str": "Scroll of Corporeal Reconstitution", "str_pl": "Scrolls of Corporeal Reconstitution" },
17171717
"description": "Cuts? Lacerations? Torn organs? Fix all that with this handy spell.",
17181718
"use_action": { "type": "learn_spell", "spells": [ "biomancer_hyper_regeneration" ] }
17191719
},

0 commit comments

Comments
 (0)