Skip to content

Commit bac35a7

Browse files
Merge pull request #82565 from Standing-Storm/vampire-mutagen
[Xedra Evolved] Add Blood Art Refinements and way to research them
1 parent cedfc5b commit bac35a7

File tree

6 files changed

+315
-6
lines changed

6 files changed

+315
-6
lines changed

data/mods/Sky_Island/mod_interactions/xedra_evolved/eocs.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@
143143
{ "u_remove_item_with": "upgradekey_bloodgift_research" },
144144
{ "u_forget_recipe": "upgradekey_bloodgift_research" },
145145
{ "u_learn_recipe": "xe_vampire_blood_gift_research" },
146+
{ "u_learn_recipe": "xe_vampire_blood_gift_refinement_research" },
146147
{ "u_learn_recipe": "xe_vampire_blood_weaknesses_reshuffle" },
147148
{ "u_message": "You learn how to expand your blood gifts and reshuffle your weaknesses.", "type": "good" }
148149
]

data/mods/Xedra_Evolved/effects/effects.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,24 @@
1515
"rating": "good",
1616
"base_mods": { "dex_mod": [ 4 ], "speed_mod": [ 250 ] }
1717
},
18+
{
19+
"type": "effect_type",
20+
"id": "haste_vampire_water_running",
21+
"//": "Hidden effect_lets you run on water using Zephyr",
22+
"name": [ "" ],
23+
"desc": [ "" ],
24+
"flags": [ "ITEM_WATERPROOFING", "WATERWALKING" ]
25+
},
26+
{
27+
"type": "effect_type",
28+
"id": "effect_vampire_resilience_flesh_of_marble",
29+
"name": [ "Flesh of Marble" ],
30+
"desc": [ "You are invincible." ],
31+
"rating": "good",
32+
"show_in_info": true,
33+
"remove_message": "Your undead flesh blunts the attack.",
34+
"enchantments": [ { "values": [ { "value": "FORCEFIELD", "add": 1 } ] } ]
35+
},
1836
{
1937
"type": "effect_type",
2038
"id": "buoyant",
@@ -767,6 +785,28 @@
767785
}
768786
]
769787
},
788+
{
789+
"type": "effect_type",
790+
"id": "effect_vampire_unholy_devastation",
791+
"name": [ "Shown" ],
792+
"desc": [ "" ],
793+
"max_intensity": 20,
794+
"int_add_val": 1,
795+
"enchantments": [
796+
{
797+
"values": [
798+
{
799+
"value": "STRENGTH",
800+
"add": {
801+
"math": [
802+
"(1 + (vampire_total_tier_one_traits_plus_potency() * 0.25) + (vampire_total_tier_two_traits() * 0.33) + (vampire_total_tier_three_traits() * 0.5) + (vampire_total_tier_four_traits_plus_potence() * 0.75) + (vampire_total_tier_five_traits_plus_cauldron() * 1) ) * (u_effect_intensity('effect_vampire_unholy_devastation') * 0.25 )"
803+
]
804+
}
805+
}
806+
]
807+
}
808+
]
809+
},
770810
{
771811
"type": "effect_type",
772812
"id": "effect_vampiric_resilience",

data/mods/Xedra_Evolved/mutations/vampire_trait_eocs.json

Lines changed: 81 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -849,6 +849,10 @@
849849
{ "u_assign_activity": "ACT_GENERIC_EOC", "duration": 0.25 },
850850
{ "math": [ "u_vitamin('human_blood_vitamin') -= 150" ] },
851851
{ "u_add_effect": "effect_vampiric_resilience", "duration": "PERMANENT" },
852+
{
853+
"if": { "u_has_trait": "VAMPIRIC_RESILIENCE_REFINEMENT_INVINCIBILITY" },
854+
"then": { "u_add_effect": "effect_vampire_resilience_flesh_of_marble", "duration": "PERMANENT" }
855+
},
852856
{ "u_message": "You feel a surge of power as blood fortifies your flesh.", "type": "good" },
853857
{
854858
"run_eocs": [ "EOC_VAMPIRIC_RESILIENCE_maintenance" ],
@@ -874,8 +878,9 @@
874878
"id": "EOC_VAMPIRIC_RESILIENCE_deactivated",
875879
"condition": { "u_has_effect": "effect_vampiric_resilience" },
876880
"effect": [
877-
{ "u_message": "Your muscles weaken as the stolen blood leaves them.", "type": "neutral" },
878-
{ "u_lose_effect": "effect_vampiric_resilience" }
881+
{ "u_message": "Your flesh loses its resilience as the stolen blood leaves it.", "type": "neutral" },
882+
{ "u_lose_effect": "effect_vampiric_resilience" },
883+
{ "u_lose_effect": "effect_vampire_resilience_flesh_of_marble" }
879884
]
880885
}
881886
]
@@ -923,6 +928,14 @@
923928
}
924929
]
925930
},
931+
{
932+
"type": "effect_on_condition",
933+
"id": "EOC_VAMPIRIC_RESILIENCE_FLESH_OF_MARBLE",
934+
"eoc_type": "EVENT",
935+
"required_event": "character_takes_damage",
936+
"condition": { "u_has_effect": "effect_vampire_resilience_flesh_of_marble" },
937+
"effect": [ { "u_lose_effect": "effect_vampire_resilience_flesh_of_marble" } ]
938+
},
926939
{
927940
"type": "effect_on_condition",
928941
"id": "EOC_VAMPIRE_SCENT_BLOOD_activated",
@@ -1463,6 +1476,15 @@
14631476
{ "u_assign_activity": "ACT_GENERIC_EOC", "duration": 2 },
14641477
{ "math": [ "u_vitamin('human_blood_vitamin') -= 750" ] },
14651478
{ "u_add_effect": "haste_vampire", "duration": "PERMANENT" },
1479+
{
1480+
"if": {
1481+
"and": [
1482+
{ "u_has_trait": "BLOODHASTE_REFINEMENT_WATER_RUN" },
1483+
{ "not": { "u_has_trait": "VAMPIRE_WEAKNESS_VAST_WATER_BURN" } }
1484+
]
1485+
},
1486+
"then": { "u_add_effect": "haste_vampire_water_running", "duration": "PERMANENT" }
1487+
},
14661488
{
14671489
"run_eocs": [ "EOC_BLOODHASTE_maintenance" ],
14681490
"time_in_future": {
@@ -1486,7 +1508,7 @@
14861508
{
14871509
"id": "EOC_BLOODHASTE_deactivated",
14881510
"condition": { "u_has_effect": "haste_vampire" },
1489-
"effect": [ { "u_lose_effect": "haste" }, { "u_lose_effect": "haste_vampire" } ]
1511+
"effect": [ { "u_lose_effect": "haste_vampire_water_running" }, { "u_lose_effect": "haste_vampire" } ]
14901512
}
14911513
]
14921514
}
@@ -1523,7 +1545,7 @@
15231545
"false_effect": [
15241546
{ "u_message": "You don't have enough blood to maintain your blood-driven speed.", "type": "bad" },
15251547
{ "u_lose_effect": "haste_vampire" },
1526-
{ "u_lose_effect": "haste" },
1548+
{ "u_lose_effect": "haste_vampire_water_running" },
15271549
{ "u_deactivate_trait": "BLOODHASTE" }
15281550
]
15291551
}
@@ -2769,5 +2791,60 @@
27692791
"type": "popup"
27702792
}
27712793
]
2794+
},
2795+
{
2796+
"type": "effect_on_condition",
2797+
"id": "EOC_VAMPIRE_UNHOLY_DEVASTATION_BONUSES",
2798+
"eoc_type": "EVENT",
2799+
"required_event": "character_smashes_tile",
2800+
"condition": { "u_has_trait": "VAMPIRIC_STRENGTH_REFINEMENT_SMASHING_TILES" },
2801+
"effect": [ { "u_add_effect": "effect_vampire_unholy_devastation", "duration": 2 } ]
2802+
},
2803+
{
2804+
"type": "effect_on_condition",
2805+
"id": "EOC_VAMPIRE_UNHOLY_DEVASTATION_BONUSES_REMOVE",
2806+
"eoc_type": "EVENT",
2807+
"required_event": "avatar_moves",
2808+
"condition": { "u_has_effect": "effect_vampire_unholy_devastation" },
2809+
"effect": [ { "u_lose_effect": "effect_vampire_unholy_devastation" } ]
2810+
},
2811+
{
2812+
"type": "effect_on_condition",
2813+
"id": "EOC_VAMPIRE_ZEPHYR_WATER_RUN",
2814+
"eoc_type": "EVENT",
2815+
"required_event": "avatar_moves",
2816+
"condition": { "and": [ { "u_has_effect": "haste_vampire" }, { "not": { "u_has_trait": "VAMPIRE_WEAKNESS_VAST_WATER_BURN" } } ] },
2817+
"effect": [
2818+
{
2819+
"if": { "u_has_effect": "haste_vampire_water_running" },
2820+
"then": {
2821+
"run_eocs": [
2822+
{
2823+
"id": "EOC_VAMPIRE_ZEPHYR_WATER_RUN_FOLLOWUP",
2824+
"condition": {
2825+
"and": [
2826+
{ "u_is_on_terrain_with_flag": "SWIMMABLE" },
2827+
{
2828+
"or": [
2829+
{ "compare_string": [ "walk", { "context_val": "movement_mode" } ] },
2830+
{ "compare_string": [ "crouch", { "context_val": "movement_mode" } ] },
2831+
{ "compare_string": [ "prone", { "context_val": "movement_mode" } ] }
2832+
]
2833+
}
2834+
]
2835+
},
2836+
"effect": [
2837+
{ "u_message": "You are moving too slowly and fall into the water.", "type": "bad" },
2838+
{ "u_lose_effect": "haste_vampire_water_running" }
2839+
]
2840+
}
2841+
]
2842+
},
2843+
"else": {
2844+
"if": { "not": { "u_is_on_terrain_with_flag": "SWIMMABLE" } },
2845+
"then": { "u_add_effect": "haste_vampire_water_running", "duration": "PERMANENT" }
2846+
}
2847+
}
2848+
]
27722849
}
27732850
]
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
[
2+
{
3+
"type": "mutation",
4+
"id": "VAMPIRIC_STRENGTH_REFINEMENT_SMASHING_TILES",
5+
"points": 3,
6+
"starting_trait": false,
7+
"purifiable": false,
8+
"valid": false,
9+
"player_display": false,
10+
"name": { "str": "Unholy Devastation" },
11+
"description": "You gain additional strength when smashing terrain when you have Vigor Mortis active."
12+
},
13+
{
14+
"type": "mutation",
15+
"id": "BLOODHASTE_REFINEMENT_WATER_RUN",
16+
"points": 3,
17+
"starting_trait": false,
18+
"purifiable": false,
19+
"valid": false,
20+
"player_display": false,
21+
"name": { "str": "Zephyr" },
22+
"description": "You can run across water when you have Blood-driven Speed active."
23+
},
24+
{
25+
"type": "mutation",
26+
"id": "VAMPIRIC_RESILIENCE_REFINEMENT_INVINCIBILITY",
27+
"points": 3,
28+
"starting_trait": false,
29+
"purifiable": false,
30+
"valid": false,
31+
"player_display": false,
32+
"name": { "str": "Flesh of Marble" },
33+
"description": "The first attack after activating Sanguine Resilience does no damage."
34+
},
35+
{
36+
"type": "mutation",
37+
"id": "VAMPIRE_HEIGHTENED_SENSES_REFINEMENT_SEE_INVISIBLE",
38+
"points": 3,
39+
"starting_trait": false,
40+
"purifiable": false,
41+
"valid": false,
42+
"player_display": false,
43+
"name": { "str": "Soulsight" },
44+
"description": "You can see invisible creatures.",
45+
"flags": [ "TRUE_SEEING" ]
46+
}
47+
]

data/mods/Xedra_Evolved/npc/vampire_mentor.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,12 @@
9595
"condition": {
9696
"and": [
9797
{ "not": { "u_has_any_trait": [ "VAMPIRE_ANATHEMA", "BLOODTHORNE_DRUID_SYMBIOTIC_PLANT" ] } },
98-
{ "not": { "u_know_recipe": "xe_vampire_blood_gift_research" } },
98+
{
99+
"or": [
100+
{ "not": { "u_know_recipe": "xe_vampire_blood_gift_research" } },
101+
{ "not": { "u_know_recipe": "xe_vampire_blood_gift_refinement_research" } }
102+
]
103+
},
99104
{ "compare_string": [ "yes", { "u_val": "told_about_trueness" } ] }
100105
]
101106
}
@@ -302,6 +307,7 @@
302307
"text": "Yes. I want more power.",
303308
"effect": [
304309
{ "u_learn_recipe": "xe_vampire_blood_gift_research" },
310+
{ "u_learn_recipe": "xe_vampire_blood_gift_refinement_research" },
305311
{ "u_learn_recipe": "xe_vampire_blood_weaknesses_reshuffle" }
306312
],
307313
"topic": "TALK_VAMPIRE_MENTOR_BLOOD_GIFT_RESEARCH_LEARNED"

0 commit comments

Comments
 (0)