Skip to content

Commit

Permalink
[Xedra Evolved] If you habitually murder the Fair Folk they all hate …
Browse files Browse the repository at this point in the history
…you (#79269)

* Initial commit

* Change trait name

* Add Boann's reaction

* Dogs bay when they see you

* Add witchwood sword

* Add biological damage to the Huntsman's attacks

* Add reduced healing to huntsman's attacks

* Implement suggestions from code review
  • Loading branch information
Standing-Storm authored Jan 21, 2025
1 parent 953dbcf commit 0230a96
Show file tree
Hide file tree
Showing 11 changed files with 451 additions and 89 deletions.
38 changes: 38 additions & 0 deletions data/mods/Xedra_Evolved/effects/effects.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,44 @@
"scaling_mods": { "hurt_chance": [ 1 ], "pain_chance": [ 1 ] },
"show_in_info": true
},
{
"type": "effect_type",
"id": "effect_wild_hunt_illumination",
"name": [ "Witchfire" ],
"desc": [ "You are surrounded by an eldritch glow." ],
"apply_message": "",
"remove_message": "The glow around you fades.",
"base_mods": { "dodge_mod": [ -2 ] },
"enchantments": [ { "values": [ { "value": "LUMINATION", "add": 10 } ] } ]
},
{
"type": "effect_type",
"id": "effect_reduced_healing",
"name": [ "Painful Wounds" ],
"desc": [ "Your wounds ache." ],
"apply_message": "The cut begins to burn!",
"remove_message": "The ache from your wounds finally fades.",
"base_mods": { "pain_min": [ 1 ], "pain_chance": [ 5 ], "pain_max_val": [ 15 ], "pain_tick": [ 60 ] },
"enchantments": [ { "values": [ { "value": "REGEN_HP", "multiply": -0.6 } ] } ]
},
{
"type": "effect_type",
"id": "wild_hunt_dazed",
"name": [ "Dazed" ],
"desc": [ "You're visibly shaken up, and are having a hard time focusing on what's going on around you." ],
"rating": "bad",
"max_intensity": 10,
"max_duration": "10 m",
"int_add_val": 2,
"scaling_mods": { "speed_mod": [ -5 ] },
"show_in_info": true,
"limb_score_mods": [
{ "limb_score": "balance", "modifier": 0.65 },
{ "limb_score": "reaction", "modifier": 0.5 },
{ "limb_score": "vision", "modifier": 0.85 }
],
"flags": [ "EFFECT_LIMB_SCORE_MOD" ]
},
{
"type": "effect_type",
"id": "vamp_blood_weave",
Expand Down
98 changes: 98 additions & 0 deletions data/mods/Xedra_Evolved/eocs/alchemy_eocs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
[
{
"type": "effect_on_condition",
"id": "become_fire_fae",
"condition": { "not": { "u_has_flag": "MUTATION_THRESHOLD" } },
"effect": [
{
"u_message": "You imbibed the concoction and you feel your soul merge with an alien power, becoming attuned to fire.",
"type": "good"
},
{ "u_add_trait": "SALAMANDER" },
{ "u_learn_recipe": "mutagen_flamekin" },
{ "u_learn_recipe": "charred_sacrifice" }
],
"false_effect": [ { "u_message": "The power attempts to take hold, but is rebuffed by something sinister within you." } ]
},
{
"type": "effect_on_condition",
"id": "become_doll_fae",
"condition": { "not": { "u_has_flag": "MUTATION_THRESHOLD" } },
"//": "Each potion is one trait",
"effect": [
{ "u_message": "As you imbibe the concoction, you feel the stolen power fusing with your essence." },
{
"if": { "not": { "u_has_any_trait": [ "FALSE_ARVORE_HATRED" ] } },
"then": { "u_add_trait": "FALSE_HOMULLUS_HATRED" },
"else": { "u_add_trait": "FAE_ENMITY" }
},
{ "math": [ "u_vitamin('mutagen_dollkin')", "+=", "500" ] },
{ "math": [ "u_vitamin('mutagen')", "+=", "1000" ] },
{ "u_mutate": 0 },
{ "math": [ "u_vitamin('mutagen_dollkin')", "-=", "500" ] },
{ "math": [ "u_vitamin('mutagen')", "-=", "1000" ] }
],
"false_effect": [ { "u_message": "The power attempts to take hold, but is rebuffed by something sinister within you." } ]
},
{
"type": "effect_on_condition",
"id": "become_air_fae",
"condition": { "not": { "u_has_flag": "MUTATION_THRESHOLD" } },
"effect": [
{
"u_message": "You imbibed the concoction and you feel your soul merge with an alien power, becoming attuned to the winds."
},
{ "u_add_trait": "SYLPH" },
{ "u_learn_recipe": "mutagen_airkin" },
{ "u_learn_recipe": "ethereal_draught" }
],
"false_effect": [ { "u_message": "The power attempts to take hold, but is rebuffed by something sinister within you." } ]
},
{
"type": "effect_on_condition",
"id": "become_water_fae",
"condition": { "not": { "u_has_flag": "MUTATION_THRESHOLD" } },
"effect": [
{
"u_message": "You imbibed the concoction and you feel your soul merge with an alien power, becoming attuned to the waters."
},
{ "u_add_trait": "UNDINE" },
{ "u_learn_recipe": "mutagen_waterkin" },
{ "u_learn_recipe": "cerulean_poultice" }
],
"false_effect": [ { "u_message": "The power attempts to take hold, but is rebuffed by something sinister within you." } ]
},
{
"type": "effect_on_condition",
"id": "become_earth_fae",
"condition": { "not": { "u_has_flag": "MUTATION_THRESHOLD" } },
"effect": [
{
"u_message": "You imbibed the concoction and you feel your soul merge with an alien power, becoming attuned to the earth."
},
{ "u_add_trait": "IERDE" },
{ "u_learn_recipe": "mutagen_earthkin" },
{ "u_learn_recipe": "cthonic_poultice" }
],
"false_effect": [ { "u_message": "The power attempts to take hold, but is rebuffed by something sinister within you." } ]
},
{
"type": "effect_on_condition",
"id": "become_plant_fae",
"condition": { "not": { "u_has_flag": "MUTATION_THRESHOLD" } },
"effect": [
{ "u_message": "As you imbibe the concoction, you feel the stolen power fusing with your essence." },
{
"if": { "not": { "u_has_any_trait": [ "FALSE_HOMULLUS_HATRED" ] } },
"then": { "u_add_trait": "FALSE_ARVORE_HATRED" },
"else": { "u_add_trait": "FAE_ENMITY" }
},
{ "math": [ "u_vitamin('mutagen_plantkin')", "+=", "500" ] },
{ "math": [ "u_vitamin('mutagen')", "+=", "1000" ] },
{ "u_mutate": 0 },
{ "math": [ "u_vitamin('mutagen_plantkin')", "-=", "500" ] },
{ "math": [ "u_vitamin('mutagen')", "-=", "1000" ] }
],
"false_effect": [ { "u_message": "The power attempts to take hold, but is rebuffed by something sinister within you." } ]
}
]
13 changes: 13 additions & 0 deletions data/mods/Xedra_Evolved/itemgroups/itemgroups.json
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,19 @@
{ "item": "banner_thunderous_rush", "prob": 20 }
]
},
{
"type": "item_group",
"id": "bannerlord_armor",
"subtype": "collection",
"entries": [
{ "item": "mt_chainmail_arms", "prob": 45 },
{ "item": "mt_chainmail_hood", "prob": 45 },
{ "item": "mt_chainmail_hands", "prob": 45 },
{ "item": "mt_chainmail_legs", "prob": 45 },
{ "item": "mt_chainmail_vest", "prob": 45 },
{ "item": "mt_chainmail_feet", "prob": 45 }
]
},
{
"type": "item_group",
"id": "redcap_armor",
Expand Down
21 changes: 21 additions & 0 deletions data/mods/Xedra_Evolved/itemgroups/monster_drops.json
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,27 @@
{ "item": "scrap_dreamdross", "prob": 75, "count": [ 12, 24 ] }
]
},
{
"id": "changeling_wild_hunt_death_drops",
"type": "item_group",
"subtype": "collection",
"entries": [
{
"collection": [
{ "group": "gossamer_upper_body", "prob": 70, "damage": [ 1, 4 ] },
{ "group": "gossamer_lower_body", "prob": 70, "damage": [ 1, 4 ] },
{ "group": "gossamer_outerwear", "prob": 25, "damage": [ 1, 4 ] },
{ "item": "loincloth_gossamer", "damage": [ 1, 4 ] },
{ "group": "gossamer_socks", "prob": 25, "damage": [ 1, 4 ] },
{ "group": "fae_furs", "prob": 10, "damage": [ 0, 4 ] }
]
},
{ "group": "bannerlord_armor", "prob": 50, "damage": [ 0, 4 ] },
{ "item": "wild_huntsman_hunting_blade", "prob": 25, "damage": [ 0, 5 ] },
{ "item": "baldric", "prob": 100 },
{ "item": "scrap_dreamdross", "prob": 75, "count": [ 12, 24 ] }
]
},
{
"id": "default_zombie_children_clothes",
"type": "item_group",
Expand Down
28 changes: 28 additions & 0 deletions data/mods/Xedra_Evolved/items/melee.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,34 @@
"passive_effects": [ { "has": "WIELD", "condition": "ALWAYS", "values": [ { "value": "ATTACK_SPEED", "add": -20 } ] } ]
}
},
{
"id": "wild_huntsman_hunting_blade",
"type": "GENERIC",
"name": { "str": "witchwood sword" },
"copy-from": "ch_arming_sword",
"looks_like": "bokken",
"description": "This sword is made all of a single piece of wood and so black any details are lost. Some kind of shimmering leather is wrapped around the grip.",
"material": [ { "type": "wood", "portion": 1 } ],
"price": "1 kUSD 350 USD",
"price_postapoc": "500 USD",
"proportional": { "melee_damage": { "stab": 0.9 } },
"extend": { "flags": [ "WOODEN_WEAPON", "NO_REPAIR", "RELIC_PINK" ] },
"delete": { "flags": "CONDUCTIVE" },
"relative": { "melee_damage": { "biological": 5 } },
"relic_data": {
"passive_effects": [
{
"has": "WIELD",
"condition": "ALWAYS",
"values": [
{ "value": "BONUS_BLOCK", "add": 1 },
{ "value": "ATTACK_SPEED", "add": -10 },
{ "value": "WEAKPOINT_ACCURACY", "multiply": 1 }
]
}
]
}
},
{
"id": "redcap_club",
"type": "GENERIC",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,93 +119,5 @@
{ "u_add_effect": "mental_exhaustion", "intensity": 1, "duration": "384 hours" }
],
"false_effect": [ { "u_message": "Your thoughts are too scattered to unearth more secrets of the universe." } ]
},
{
"type": "effect_on_condition",
"id": "become_fire_fae",
"condition": { "not": { "u_has_flag": "MUTATION_THRESHOLD" } },
"effect": [
{
"u_message": "You imbibed the concoction and you feel your soul merge with an alien power, becoming attuned to fire.",
"type": "good"
},
{ "u_add_trait": "SALAMANDER" },
{ "u_learn_recipe": "mutagen_flamekin" },
{ "u_learn_recipe": "charred_sacrifice" }
],
"false_effect": [ { "u_message": "The power attempts to take hold, but is rebuffed by something sinister within you." } ]
},
{
"type": "effect_on_condition",
"id": "become_doll_fae",
"condition": { "not": { "u_has_flag": "MUTATION_THRESHOLD" } },
"//": "Each potion is one trait",
"effect": [
{ "u_message": "As you imbibe the concoction, you feel the stolen power fusing with your essence." },
{ "u_add_trait": "FALSE_HOMULLUS_HATRED" },
{ "math": [ "u_vitamin('mutagen_dollkin')", "+=", "500" ] },
{ "math": [ "u_vitamin('mutagen')", "+=", "1000" ] },
{ "u_mutate": 0 },
{ "math": [ "u_vitamin('mutagen_dollkin')", "-=", "500" ] },
{ "math": [ "u_vitamin('mutagen')", "-=", "1000" ] }
],
"false_effect": [ { "u_message": "The power attempts to take hold, but is rebuffed by something sinister within you." } ]
},
{
"type": "effect_on_condition",
"id": "become_air_fae",
"condition": { "not": { "u_has_flag": "MUTATION_THRESHOLD" } },
"effect": [
{
"u_message": "You imbibed the concoction and you feel your soul merge with an alien power, becoming attuned to the winds."
},
{ "u_add_trait": "SYLPH" },
{ "u_learn_recipe": "mutagen_airkin" },
{ "u_learn_recipe": "ethereal_draught" }
],
"false_effect": [ { "u_message": "The power attempts to take hold, but is rebuffed by something sinister within you." } ]
},
{
"type": "effect_on_condition",
"id": "become_water_fae",
"condition": { "not": { "u_has_flag": "MUTATION_THRESHOLD" } },
"effect": [
{
"u_message": "You imbibed the concoction and you feel your soul merge with an alien power, becoming attuned to the waters."
},
{ "u_add_trait": "UNDINE" },
{ "u_learn_recipe": "mutagen_waterkin" },
{ "u_learn_recipe": "cerulean_poultice" }
],
"false_effect": [ { "u_message": "The power attempts to take hold, but is rebuffed by something sinister within you." } ]
},
{
"type": "effect_on_condition",
"id": "become_earth_fae",
"condition": { "not": { "u_has_flag": "MUTATION_THRESHOLD" } },
"effect": [
{
"u_message": "You imbibed the concoction and you feel your soul merge with an alien power, becoming attuned to the earth."
},
{ "u_add_trait": "IERDE" },
{ "u_learn_recipe": "mutagen_earthkin" },
{ "u_learn_recipe": "cthonic_poultice" }
],
"false_effect": [ { "u_message": "The power attempts to take hold, but is rebuffed by something sinister within you." } ]
},
{
"type": "effect_on_condition",
"id": "become_plant_fae",
"condition": { "not": { "u_has_flag": "MUTATION_THRESHOLD" } },
"effect": [
{ "u_message": "As you imbibe the concoction, you feel the stolen power fusing with your essence." },
{ "u_add_trait": "FALSE_ARVORE_HATRED" },
{ "math": [ "u_vitamin('mutagen_plantkin')", "+=", "500" ] },
{ "math": [ "u_vitamin('mutagen')", "+=", "1000" ] },
{ "u_mutate": 0 },
{ "math": [ "u_vitamin('mutagen_plantkin')", "-=", "500" ] },
{ "math": [ "u_vitamin('mutagen')", "-=", "1000" ] }
],
"false_effect": [ { "u_message": "The power attempts to take hold, but is rebuffed by something sinister within you." } ]
}
]
Loading

0 comments on commit 0230a96

Please sign in to comment.