Skip to content

Commit

Permalink
[Xedra Evolved] Hedge magic (#71012)
Browse files Browse the repository at this point in the history
* Initial commit

* Add witchlight

* To Bring Health to the Soil and Life to the Crops

* Add class definition

* To Bring Health to the Soil and Life to the Crops

* To Kindle the Flames

* Set skill Survival

* Fix warding charm transition

* Naming edits

* Add To Perceive the Mazzikin

* "effect": "flashbang"

* Add messages to each charm

* Add comestible to tea

* Add starting profession

* Fixes

* Remove matches from hedge magic knower

* Add missing spaces

* Fix To Befuddle As the Thunderstrike range + components

* Slightly reduce AoE

* More fixes
  • Loading branch information
Standing-Storm authored Mar 5, 2024
1 parent 0673c53 commit 03175a6
Show file tree
Hide file tree
Showing 10 changed files with 730 additions and 1 deletion.
27 changes: 27 additions & 0 deletions data/mods/Xedra_Evolved/effects/effects.json
Original file line number Diff line number Diff line change
Expand Up @@ -1267,6 +1267,33 @@
}
]
},
{
"type": "effect_type",
"id": "effect_hedge_nether_eye_paste",
"name": [ "Blood-and-Ash Paste" ],
"desc": [ "You rubbed the paste of blood and herbs and ashes on your eyes. It stings. A lot." ],
"rating": "mixed",
"enchantments": [ { "values": [ { "value": "SIGHT_RANGE_NETHER", "add": 40 } ] } ],
"limb_score_mods": [ { "limb_score": "vision", "modifier": 0.6 } ],
"base_mods": { "pain_min": [ 1 ], "pain_chance": [ 60 ], "pain_tick": [ 180 ] },
"flags": [ "EFFECT_LIMB_SCORE_MOD" ]
},
{
"type": "effect_type",
"id": "effect_hedge_cure_cold_or_flu",
"//": "Empty to hide effect",
"name": [ "" ],
"desc": [ "" ],
"removes_effects": [ "common_cold", "pre_common_cold", "flu", "pre_flu" ]
},
{
"type": "effect_type",
"id": "effect_hedge_magic_no_evil_eye",
"//": "Empty to hide effect",
"name": [ "" ],
"desc": [ "" ],
"removes_effects": [ "effect_evil_eye" ]
},
{
"type": "effect_type",
"id": "mutagen_plantkin",
Expand Down
12 changes: 12 additions & 0 deletions data/mods/Xedra_Evolved/items/ammo.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,5 +100,17 @@
"recoil": 900,
"effects": [ "INCENDIARY" ],
"flags": [ "ZERO_WEIGHT" ]
},
{
"id": "glamour_charge",
"type": "AMMO",
"name": { "str_sp": "glamour charge" },
"description": "Power used to fuel hedge magic.",
"price": "10 USD",
"price_postapoc": "10 USD",
"symbol": "=",
"ammo_type": "glamour_charge",
"color": "magenta",
"flags": [ "ZERO_WEIGHT" ]
}
]
6 changes: 6 additions & 0 deletions data/mods/Xedra_Evolved/items/ammo_type.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@
"name": "scraps of dreamdross",
"default": "scrap_dreamdross"
},
{
"type": "ammunition_type",
"id": "glamour_charge",
"name": "glamour",
"default": "glamour_charge"
},
{
"type": "ammunition_type",
"id": "9x21mm",
Expand Down
193 changes: 193 additions & 0 deletions data/mods/Xedra_Evolved/items/hedge_magic_items.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,193 @@
[
{
"id": "aura_ward_off_rain",
"type": "ARMOR",
"name": "Rain Ward",
"description": "Thanks to the words of the charm you spoke, you won't get wet.",
"weight": "0 g",
"volume": "0 ml",
"price": 0,
"symbol": "x",
"color": "white",
"flags": [
"AURA",
"OVERSIZE",
"ONLY_ONE",
"PADDED",
"INTEGRATED",
"ALLOWS_NATURAL_ATTACKS",
"TRADER_AVOID",
"NO_REPAIR",
"NO_TAKEOFF",
"ZERO_WEIGHT",
"NONCONDUCTIVE",
"TRANSPARENT",
"RAINPROOF"
],
"relic_data": { "passive_effects": [ { "has": "WORN", "condition": "ALWAYS", "values": [ { "value": "MAX_MANA", "add": 0 } ] } ] },
"armor": [
{
"encumbrance": 0,
"coverage": 100,
"covers": [ "leg_l", "leg_r", "torso", "arm_l", "arm_r", "hand_l", "hand_r", "head", "foot_l", "foot_r", "mouth", "eyes" ]
}
]
},
{
"id": "item_hedge_witchlight",
"type": "ARMOR",
"name": "Witchlight",
"description": "A bobbing ball of blueish-green light, just bright enough to read by.",
"weight": "0 g",
"volume": "0 ml",
"price": 0,
"symbol": "x",
"color": "yellow",
"flags": [
"LIGHT_10",
"SEMITANGIBLE",
"AURA",
"OVERSIZE",
"ONLY_ONE",
"PADDED",
"ALLOWS_NATURAL_ATTACKS",
"TRADER_AVOID",
"NO_REPAIR",
"NO_DROP",
"ZERO_WEIGHT",
"NONCONDUCTIVE",
"TRANSPARENT"
],
"relic_data": { "passive_effects": [ { "has": "WORN", "condition": "ALWAYS", "values": [ { "value": "MAX_MANA", "add": 0 } ] } ] },
"use_action": {
"type": "effect_on_conditions",
"description": "Dismiss the witchlight",
"effect_on_conditions": [
{
"id": "EOC_ITEM_HEDGE_WITCHLIGHT_DISMISS",
"effect": [ { "queue_eocs": "EOC_ITEM_HEDGE_WITCHLIGHT_DISMISS_ACTUAL", "time_in_future": 1 } ]
}
]
}
},
{
"type": "COMESTIBLE",
"id": "item_hedge_make_plants_grow",
"name": { "str_sp": "life of the crops" },
"weight": "0 g",
"color": "green",
"flags": [ "TRADER_AVOID", "ZERO_WEIGHT", "FERTILIZER" ],
"comestible_type": "FOOD",
"symbol": "°",
"quench": -10,
"healthy": -2,
"description": "Use this to fertilize your crops.",
"material": [ "powder" ],
"volume": "0 ml",
"category": "chems",
"fun": -15
},
{
"id": "hedge_fire_starter",
"type": "TOOL",
"name": { "str_sp": "To Kindle the Flames" },
"description": "The item that starts fires when using To Kindle the Flames. This should be summoned and deleted as part of the spell, so you should never actually see it.",
"weight": "0 g",
"volume": "0 ml",
"symbol": ",",
"color": "red",
"use_action": { "type": "firestarter", "moves": 5, "moves_slow": 5 },
"flags": [ "FIRE", "ZERO_WEIGHT" ]
},
{
"id": "item_hedge_see_fae_necklace",
"type": "TOOL_ARMOR",
"name": "Faesight Charm",
"description": "A small sack with herbs in it to warn you if the Fair Folk are nearby. You had better wear it under your clothes. You wouldn't want them to know you're avoiding them. It's awaiting you to speak the final words of the charm and activate it.",
"rand_charges": [ 120, 240, 360 ],
"turns_per_charge": 25,
"ammo": "glamour_charge",
"pocket_data": [ { "pocket_type": "MAGAZINE", "rigid": true, "ammo_restriction": { "glamour_charge": 360 } } ],
"weight": "100 g",
"volume": "50 ml",
"price": 5000,
"price_postapoc": 50,
"material": [ "leather", "veggy" ],
"color": "green",
"symbol": ",",
"flags": [ "ONE_PER_LAYER", "SKINTIGHT", "NO_UNLOAD", "NO_RELOAD", "MUNDANE" ],
"use_action": {
"type": "transform",
"need_charges": 1,
"active": true,
"target": "item_hedge_see_fae_necklace_on",
"msg": "You recite that last part of the charm.",
"need_worn": true
},
"relic_data": {
"passive_effects": [ { "has": "WORN", "condition": "ACTIVE", "values": [ { "value": "SIGHT_RANGE_FAE", "add": 20 } ] } ]
}
},
{
"id": "item_hedge_see_fae_necklace_on",
"type": "TOOL_ARMOR",
"name": { "str": "Faesight Charm (active)", "str_pl": "Faesight Charms (active)" },
"description": "A small sack with herbs in it to warn you if the Fair Folk are nearby. You had better wear it under your clothes. You wouldn't want them to know you're avoiding them.",
"turns_per_charge": 25,
"ammo": "glamour_charge",
"pocket_data": [ { "pocket_type": "MAGAZINE", "rigid": true, "ammo_restriction": { "glamour_charge": 360 } } ],
"weight": "100 g",
"volume": "50 ml",
"material": [ "leather", "veggy" ],
"color": "green",
"symbol": ",",
"flags": [ "ONE_PER_LAYER", "SKINTIGHT", "NO_UNLOAD", "NO_RELOAD" ],
"revert_to": "item_hedge_see_fae_necklace_done",
"revert_msg": "Your otherworldly senses fade.",
"relic_data": {
"passive_effects": [ { "has": "WORN", "condition": "ACTIVE", "values": [ { "value": "SIGHT_RANGE_FAE", "add": 20 } ] } ]
}
},
{
"id": "item_hedge_see_fae_necklace_done",
"type": "TOOL_ARMOR",
"name": "Faesight Charm",
"description": "A small sack with herbs in it to warn you if the Fair Folk are nearby. You had better wear it under your clothes. You wouldn't want them to know you're avoiding them. This charm seems lifeless somehow, its energy spent.",
"weight": "100 g",
"volume": "50 ml",
"material": [ "leather", "veggy" ],
"color": "green",
"symbol": ",",
"flags": [ "ONE_PER_LAYER", "SKINTIGHT", "NO_UNLOAD", "NO_RELOAD", "MUNDANE" ],
"relic_data": { "passive_effects": [ { "has": "WORN", "condition": "ALWAYS", "values": [ { "value": "MAX_MANA", "add": 0 } ] } ] }
},
{
"id": "item_hedge_nether_eye_paste",
"name": { "str_sp": "Blood-and-Ash Paste" },
"description": "A disgusting mixture of blood, ashes, and certain herbs. Using it will allow you to see otherworldly creatures even through walls or in darkness.",
"type": "COMESTIBLE",
"comestible_type": "MED",
"weight": "265 g",
"volume": "250 ml",
"price": 200,
"price_postapoc": 100,
"spoils_in": "10 days",
"fun": -5,
"symbol": "q",
"color": "blue",
"flags": [ "EATEN_COLD" ],
"phase": "solid",
"use_action": {
"type": "effect_on_conditions",
"description": "Rub the paste on your eyes.",
"effect_on_conditions": [ "EOC_HEDGE_SEE_NETHER_EYE_PASTE" ]
}
},
{
"type": "COMESTIBLE",
"id": "item_hedge_cure_cold_or_flu",
"copy-from": "tea",
"name": { "str": "Curative tea" },
"description": "Tea with herbs, iron, and a bit of magick. If you're sick, there's nothing better for your body than this."
}
]
10 changes: 10 additions & 0 deletions data/mods/Xedra_Evolved/mutations/classes.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,15 @@
"enchantments": [ "BONUS_INVENTOR" ],
"cancels": [ "DREAMSMITH" ],
"vitamin_rates": [ [ "creative_spark", -64800 ] ]
},
{
"type": "mutation",
"id": "HEDGE_MAGIC",
"name": "Hedgecraft",
"points": 0,
"description": "The craft of the wise, provenance of cunning men, wise women, soothsayers, knowers, herb-witches, and curse-lifters throughout history. With the proper components, and at the proper times and places, they can perform miracles.",
"starting_trait": false,
"purifiable": false,
"valid": false
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@
]
},
"effect": [
{ "u_spawn_item": "undine_waters_map" },
{ "u_spawn_item": "undine_waters_map", "suppress_message": true },
{
"u_run_inv_eocs": "random",
"search_data": [ { "id": "undine_waters_map" } ],
Expand Down
36 changes: 36 additions & 0 deletions data/mods/Xedra_Evolved/player/professions.json
Original file line number Diff line number Diff line change
Expand Up @@ -642,5 +642,41 @@
"female": { "entries": [ { "item": "chestwrap" } ] }
},
"flags": [ "SCEN_ONLY" ]
},
{
"type": "profession",
"id": "hedge_magic_knower",
"name": { "male": "Hedge Wizard", "female": "Hedge Witch" },
"description": "In the years and decades leading up to the Cataclysm, things got weirder and weirder. The government tried their best to cover it up but they couldn't entirely stop all knowledge from leaking out. You were one of the people who responded to the weirdness by becoming weird yourself; you spent time combing through old books and found some of the charms and spells written in them actually worked. When you had the right ingredients and were in the right place, you could make the impossible possible. Maybe lighting a fire without a match won't help you kill a zombie, but it's kept you warm and safe when you're sure other survivors had to shiver as the night closed in.",
"points": 5,
"traits": [ "HEDGE_MAGIC" ],
"skills": [ { "level": 2, "name": "cooking" }, { "level": 1, "name": "survival" }, { "level": 2, "name": "deduction" } ],
"proficiencies": [ "prof_food_prep" ],
"spells": [
{ "id": "hedge_ward_off_rain", "level": 1 },
{ "id": "hedge_make_plants_grow", "level": 1 },
{ "id": "hedge_light_fire", "level": 1 }
],
"items": {
"both": {
"entries": [
{ "item": "jeans" },
{ "item": "longshirt" },
{ "item": "socks" },
{ "item": "sneakers" },
{ "item": "backpack" },
{ "item": "pockknife" },
{ "item": "water_clean" },
{ "item": "wristwatch" },
{ "group": "charged_smart_phone" },
{ "item": "leaves", "count": 4 },
{ "item": "cotton_patchwork", "count": 4 },
{ "item": "ash", "count": 48 },
{ "item": "soybean_seed", "count": 4 }
]
},
"male": { "entries": [ { "item": "boxer_shorts" } ] },
"female": { "entries": [ { "item": "bra" }, { "item": "panties" } ] }
}
}
]
Loading

0 comments on commit 03175a6

Please sign in to comment.