Skip to content

Commit 09e528f

Browse files
authored
Merge pull request #80660 from Standing-Storm/enervated-blood
[Xedra Evolved] Implemented Enervated blood level for dhampirs
2 parents f34aa51 + 1cf6274 commit 09e528f

File tree

2 files changed

+72
-1
lines changed

2 files changed

+72
-1
lines changed

data/mods/Xedra_Evolved/effects/effects.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -603,6 +603,37 @@
603603
"name": [ "Empowered Blood" ],
604604
"desc": [ "Your blood hums with power, allowing you to access more of your vampiric abilities." ]
605605
},
606+
{
607+
"type": "effect_type",
608+
"id": "effect_dhampir_enervated_blood",
609+
"name": [ "Enervated Blood" ],
610+
"desc": [
611+
"You have used up much of the power in your blood, and are slightly listless as a result. In addition, some of your vampiric powers will not function as well, or at all, until the power returns to your blood."
612+
],
613+
"enchantments": [
614+
{
615+
"values": [
616+
{
617+
"value": "HUNGER",
618+
"multiply": { "math": [ "0.05 + clamp(( (u_vitamin('human_blood_vitamin') + 500) * 0.001), 0, 1)" ] }
619+
},
620+
{
621+
"value": "THIRST",
622+
"multiply": { "math": [ "0.05 + clamp(( (u_vitamin('human_blood_vitamin') + 500) * 0.001), 0, 1)" ] }
623+
},
624+
{
625+
"value": "SLEEPINESS",
626+
"multiply": { "math": [ "0.05 + clamp(( (u_vitamin('human_blood_vitamin') + 500) * 0.001), 0, 1)" ] }
627+
},
628+
{
629+
"value": "REGEN_STAMINA",
630+
"multiply": { "math": [ "-0.025 + clamp(( (u_vitamin('human_blood_vitamin') + 500) * -0.00025), -0.5, 0)" ] }
631+
}
632+
]
633+
}
634+
],
635+
"removes_effects": [ "withering" ]
636+
},
606637
{
607638
"type": "effect_type",
608639
"id": "effect_dhampir_fall_one_story",

data/mods/Xedra_Evolved/mutations/mutations.json

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,10 @@
195195
"condition": { "math": [ "u_vitamin('human_blood_vitamin')", ">=", "1800" ] },
196196
"ench_effects": [ { "effect": "effect_dhampir_slow_blood_loss", "intensity": 1 } ]
197197
},
198+
{
199+
"condition": { "math": [ "u_vitamin('human_blood_vitamin')", "<", "0" ] },
200+
"ench_effects": [ { "effect": "effect_dhampir_enervated_blood", "intensity": 1 } ]
201+
},
198202
{
199203
"condition": { "math": [ "u_vitamin('human_blood_vitamin')", ">", "0" ] },
200204
"ench_effects": [ { "effect": "effect_dhampir_empowered_blood_indicator", "intensity": 1 } ]
@@ -603,6 +607,14 @@
603607
"deactivated_eocs": [ "EOC_VAMPIRIC_STRENGTH_deactivated" ],
604608
"enchantments": [
605609
{
610+
"condition": {
611+
"or": [
612+
{ "u_has_trait": "VAMPIRE" },
613+
{
614+
"and": [ { "u_has_trait": "DHAMPIR_TRAIT" }, { "not": { "u_has_effect": "effect_dhampir_enervated_blood" } } ]
615+
}
616+
]
617+
},
606618
"values": [ { "value": "STRENGTH", "add": { "math": [ "1 + u_has_trait('VAMPIRE4') + (u_has_trait('BLOOD_DRINKER') * 2)" ] } } ]
607619
}
608620
]
@@ -622,6 +634,14 @@
622634
"deactivated_eocs": [ "EOC_VAMPIRIC_RESILIENCE_deactivated" ],
623635
"enchantments": [
624636
{
637+
"condition": {
638+
"or": [
639+
{ "u_has_trait": "VAMPIRE" },
640+
{
641+
"and": [ { "u_has_trait": "DHAMPIR_TRAIT" }, { "not": { "u_has_effect": "effect_dhampir_enervated_blood" } } ]
642+
}
643+
]
644+
},
625645
"incoming_damage_mod": [
626646
{ "type": "bash", "multiply": -0.05 },
627647
{ "type": "stab", "multiply": -0.02 },
@@ -661,7 +681,19 @@
661681
"valid": false,
662682
"name": { "str": "Silent as Death" },
663683
"description": "Your movements don't make nearby as much noise as they used to.",
664-
"enchantments": [ { "values": [ { "value": "FOOTSTEP_NOISE", "multiply": -1 } ] } ]
684+
"enchantments": [
685+
{
686+
"condition": {
687+
"or": [
688+
{ "u_has_trait": "VAMPIRE" },
689+
{
690+
"and": [ { "u_has_trait": "DHAMPIR_TRAIT" }, { "not": { "u_has_effect": "effect_dhampir_enervated_blood" } } ]
691+
}
692+
]
693+
},
694+
"values": [ { "value": "FOOTSTEP_NOISE", "multiply": -1 } ]
695+
}
696+
]
665697
},
666698
{
667699
"type": "mutation",
@@ -760,6 +792,14 @@
760792
"deactivated_eocs": [ "EOC_VAMPIRIC_DODGE_deactivate" ],
761793
"enchantments": [
762794
{
795+
"condition": {
796+
"or": [
797+
{ "u_has_trait": "VAMPIRE" },
798+
{
799+
"and": [ { "u_has_trait": "DHAMPIR_TRAIT" }, { "not": { "u_has_effect": "effect_dhampir_enervated_blood" } } ]
800+
}
801+
]
802+
},
763803
"values": [ { "value": "DEXTERITY", "add": { "math": [ "1 + u_has_trait('VAMPIRE4') + (u_has_trait('BLOOD_DRINKER') * 2)" ] } } ]
764804
}
765805
]

0 commit comments

Comments
 (0)