Skip to content

Commit

Permalink
[Xedra Evolved] Add waterwalking hedge magic spell (#75171)
Browse files Browse the repository at this point in the history
* Initial commit

* Running ends charm

* Running removes charm

* Remove errant spaces

* Rework avatar_move EoC so it's not spammed all the time
  • Loading branch information
Standing-Storm authored Jul 23, 2024
1 parent 29456b1 commit 12605df
Show file tree
Hide file tree
Showing 6 changed files with 112 additions and 6 deletions.
8 changes: 8 additions & 0 deletions data/mods/Xedra_Evolved/effects/effects.json
Original file line number Diff line number Diff line change
Expand Up @@ -1698,6 +1698,14 @@
"rating": "good",
"enchantments": [ { "values": [ { "value": "BLEED_STOP_BONUS", "multiply": 0.66 } ] } ]
},
{
"type": "effect_type",
"id": "effect_hedge_walk_on_water",
"name": [ "Walk Across the Flowing Waters" ],
"desc": [ "The waters are bearing you up." ],
"rating": "good",
"flags": [ "ITEM_WATERPROOFING", "WATERWALKING" ]
},
{
"type": "effect_type",
"id": "effect_skinchanged_penalties",
Expand Down
10 changes: 6 additions & 4 deletions data/mods/Xedra_Evolved/itemgroups/itemgroups.json
Original file line number Diff line number Diff line change
Expand Up @@ -397,11 +397,13 @@
"type": "item_group",
"subtype": "distribution",
"entries": [
{ "item": "spellbook_hedge_farm", "prob": 1 },
{ "item": "spellbook_hedge_farm", "prob": 4 },
{ "item": "spellbook_hedge_ward_demons", "prob": 1 },
{ "item": "spellbook_hedge_doctor_book", "prob": 1 },
{ "item": "spellbook_hedge_blood_book", "prob": 1 },
{ "item": "spellbook_hedge_ward_dreams", "prob": 1 }
{ "item": "spellbook_hedge_doctor_book", "prob": 3 },
{ "item": "spellbook_hedge_blood_book", "prob": 2 },
{ "item": "spellbook_hedge_ward_dreams", "prob": 3 },
{ "item": "spellbook_hedge_snare_changelings", "prob": 1 },
{ "item": "spellbook_hedge_bathhouse_midnight", "prob": 1 }
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,5 +109,26 @@
"symbol": "?",
"color": "white",
"use_action": { "type": "learn_spell", "spells": [ "hedge_clairvoyance_cone" ] }
},
{
"id": "spellbook_hedge_bathhouse_midnight",
"//": "divination spells are appropriate here too",
"type": "BOOK",
"category": "manuals",
"name": {
"str": "The Bathhouse at Midnight: An Historical Survey of Magic and Divination in Russia",
"str_pl": "copies of The Bathhouse at Midnight: An Historical Survey of Magic and Divination in Russia"
},
"description": "This encyclopediac tome by W. F. Ryan concerns a wide variety of folk magic practices in pre-modern Russia, including their social context, the way that the Church had to work against folk practices like leaving items on the altar for six weeks so they would gain protective powers, the dangers of being alone in the bathhouse, ways to find and keep a husband or wife, when to throw an axe handle over your shoulder when walking into the forest, and how the government mostly suppressed magic because magical power (real or imagined) would have been a threat to secular power. The description of some of these rituals are extremely detailed.",
"weight": "771 g",
"volume": "1357 ml",
"material": [ "paper" ],
"looks_like": "paper",
"symbol": "?",
"color": "dark_gray",
"use_action": {
"type": "learn_spell",
"spells": [ "hedge_clairvoyance_cone", "hedge_walk_on_water", "hedge_evil_eye_ward", "hedge_cure_cold_or_flu" ]
}
}
]
5 changes: 5 additions & 0 deletions data/mods/Xedra_Evolved/requirements/spell_components.json
Original file line number Diff line number Diff line change
Expand Up @@ -186,5 +186,10 @@
"type": "requirement",
"qualities": [ { "id": "SEW", "level": 2 } ],
"components": [ [ [ "skull_bear", 1 ] ], [ [ "animal_blood", 5 ] ], [ [ "raw_fur", 20 ] ], [ [ "sinew", 25 ] ] ]
},
{
"id": "spell_components_hedge_walk_on_water",
"type": "requirement",
"components": [ [ [ "alder_bark", 1 ], [ "tanbark", 1 ], [ "birchbark", 1 ], [ "willowbark", 1 ] ] ]
}
]
54 changes: 54 additions & 0 deletions data/mods/Xedra_Evolved/spells/hedge_magic_eocs.json
Original file line number Diff line number Diff line change
Expand Up @@ -330,5 +330,59 @@
{ "u_consume_item": "item_hedge_turn_into_bear", "count": 1 },
{ "u_spawn_item": "item_hedge_turn_into_bear_off", "suppress_message": true }
]
},
{
"type": "effect_on_condition",
"id": "EOC_HEDGE_WALK_ON_WATER",
"condition": { "u_is_on_terrain_with_flag": "SWIMMABLE" },
"effect": [
{
"u_message": "You drop the bark on the water and recite the words of the charm, and as you take your first step, the water feels firm under your feet.",
"type": "good"
},
{ "u_add_effect": "effect_hedge_walk_on_water", "duration": 1 }
],
"false_effect": [ { "u_message": "You must be standing on water or the charm will have no effect.", "type": "bad" } ]
},
{
"type": "effect_on_condition",
"id": "EOC_HEDGE_WALK_ON_WATER_CONTINUANCE",
"eoc_type": "EVENT",
"required_event": "avatar_moves",
"condition": { "u_has_effect": "effect_hedge_walk_on_water" },
"effect": [
{
"run_eocs": [
{
"id": "EOC_HEDGE_WALK_ON_WATER_CONTINUANCE_2",
"condition": { "u_is_on_terrain_with_flag": "SWIMMABLE" },
"effect": [
{
"if": { "math": [ "u_effect_duration('effect_hedge_walk_on_water')", "<=", "2" ] },
"then": [ { "u_add_effect": "effect_hedge_walk_on_water", "duration": 2 } ],
"else": [ { "u_add_effect": "effect_hedge_walk_on_water", "duration": 1 } ]
}
],
"false_effect": [
{ "u_message": "As you step on solid ground again, the charm fades.", "type": "neutral" },
{ "u_lose_effect": "effect_hedge_walk_on_water" }
]
}
]
}
]
},
{
"type": "effect_on_condition",
"id": "EOC_HEDGE_WALK_ON_WATER_RUNNING_CANCEL",
"eoc_type": "EVENT",
"required_event": "avatar_moves",
"condition": {
"and": [
{ "u_has_effect": "effect_hedge_walk_on_water" },
{ "compare_string": [ "run", { "context_val": "movement_mode" } ] }
]
},
"effect": [ { "u_lose_effect": "effect_hedge_walk_on_water" } ]
}
]
20 changes: 18 additions & 2 deletions data/mods/Xedra_Evolved/spells/hedge_magic_spells.json
Original file line number Diff line number Diff line change
Expand Up @@ -393,8 +393,24 @@
"shape": "blast",
"components": "spell_components_hedge_turn_into_bear",
"max_level": 1,
"min_damage": 1,
"max_damage": 1,
"base_casting_time": 720000
},
{
"id": "hedge_walk_on_water",
"type": "SPELL",
"name": "To Walk Across the Flowing Waters",
"description": "While standing with your feet in the water, recite this charm to have the water bear you up. You must keep moving at a steady pace, without running or stopping for more than a few moments, or the charm will fade.",
"message": "",
"flags": [ "VERBAL", "SOMATIC", "NO_FAIL" ],
"valid_targets": [ "self" ],
"difficulty": 1,
"spell_class": "HEDGE_MAGIC",
"skill": "survival",
"effect": "effect_on_condition",
"effect_str": "EOC_HEDGE_WALK_ON_WATER",
"shape": "blast",
"components": "spell_components_hedge_walk_on_water",
"max_level": 1,
"base_casting_time": 1000
}
]

0 comments on commit 12605df

Please sign in to comment.