Skip to content

Commit f34aa51

Browse files
Initial commit (#80620)
1 parent 55665cf commit f34aa51

File tree

4 files changed

+38
-7
lines changed

4 files changed

+38
-7
lines changed

data/mods/Xedra_Evolved/mutations/mutations.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -694,8 +694,7 @@
694694
"valid": false,
695695
"name": { "str": "Learn from the Children of the Night" },
696696
"description": "You call out to the creatures that inhabit the night. Wolves, bats, rats and more. They tell you about what terrain surrounds you.",
697-
"active": true,
698-
"activated_eocs": [ "EOC_COMMUNE_NIGHT_MAP" ]
697+
"spells_learned": [ [ "vampire_commune_with_night_spell", 1 ] ]
699698
},
700699
{
701700
"type": "mutation",

data/mods/Xedra_Evolved/mutations/vampire_trait_eocs.json

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -945,13 +945,19 @@
945945
{
946946
"type": "effect_on_condition",
947947
"id": "EOC_COMMUNE_NIGHT_MAP",
948-
"condition": { "and": [ { "math": [ "u_val('pos_z') >= 0" ] }, { "not": "is_day" }, "u_is_outside" ] },
948+
"condition": { "math": [ "u_vitamin('human_blood_vitamin') >= -500" ] },
949949
"effect": [
950-
{ "u_cast_spell": { "id": "vampire_map_real" } },
951-
{ "math": [ "u_vitamin('human_blood_vitamin')", "-=", "100" ] },
952-
{ "u_message": "The children of the night tell you what features of the map are nearby." }
950+
{
951+
"if": { "and": [ { "math": [ "u_val('pos_z') >= 0" ] }, { "not": "is_day" }, "u_is_outside" ] },
952+
"then": [
953+
{ "u_cast_spell": { "id": "vampire_map_real" } },
954+
{ "math": [ "u_vitamin('human_blood_vitamin')", "-=", "100" ] },
955+
{ "u_message": "The children of the night tell you what features of the map are nearby." }
956+
],
957+
"else": [ { "u_message": "Without the ability to howl into the wilds of the night, there is no response." } ]
958+
}
953959
],
954-
"false_effect": [ { "u_message": "Without the ability to howl into the wilds of the night, there is no response." } ]
960+
"false_effect": [ { "u_message": "You don't have enough blood to summon the creatures of the night.", "type": "bad" } ]
955961
},
956962
{
957963
"type": "effect_on_condition",

data/mods/Xedra_Evolved/obsoletion_and_migration/eocs.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,14 @@
6565
}
6666
]
6767
},
68+
{
69+
"type": "effect_on_condition",
70+
"id": "EOC_VAMPIRE_COMMUNE_WITH_NIGHT_UPDATE_GAME_BEGIN",
71+
"eoc_type": "EVENT",
72+
"required_event": "game_begin",
73+
"condition": { "u_has_trait": "COMMUNE_NIGHT" },
74+
"effect": [ { "math": [ "u_spell_level('vampire_commune_with_night_spell') = 0" ] } ]
75+
},
6876
{
6977
"type": "effect_on_condition",
7078
"id": "EOC_VAMPIRE_BLOOD_UPDATE_GAME_BEGIN",

data/mods/Xedra_Evolved/spells/vampire_spells.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,24 @@
8989
"base_casting_time": 100,
9090
"difficulty": 5
9191
},
92+
{
93+
"id": "vampire_commune_with_night_spell",
94+
"type": "SPELL",
95+
"name": "Learn from the Children of the Night",
96+
"description": "Speak to nearby night-creatures; rats, bats, wolves, and so on. They will tell you the layout of your surrounding area.\n\n<color_light_red>Blood Cost:</color> 100 ml (<u_val:blood_amount_for_graph> ml current).",
97+
"message": "",
98+
"teachable": false,
99+
"magic_type": "xe_vampire_blood_powers",
100+
"effect": "effect_on_condition",
101+
"effect_str": "EOC_COMMUNE_NIGHT_MAP",
102+
"shape": "blast",
103+
"valid_targets": [ "self" ],
104+
"flags": [ "NO_HANDS", "SILENT", "NO_FAIL" ],
105+
"skill": "deduction",
106+
"spell_class": "VAMPIRE_BLOOD_ARTS",
107+
"base_casting_time": 12000,
108+
"difficulty": 5
109+
},
92110
{
93111
"id": "vampire_magic_for_blood_spell",
94112
"type": "SPELL",

0 commit comments

Comments
 (0)