Skip to content

Commit

Permalink
[Xedra Evolved] Add playable Lilin with appropriate scenario (#77178)
Browse files Browse the repository at this point in the history
* Initial commit

* Lilin are immune to vampirism

* Add advancement system

* Cap ruach based on power level

* Add Of Beautiful Form/Without Blemish

* Update spellchecker

* Add Might of the Nephilim

* Add Reaping the Whirlwind

* Add Alukah's Daughter

* Add The Night Hunter

* Add On Silent Wings

* Add Thick Clouds A Covering

* prereq adjustments

* Add ruach draining effect EoCs

* Start with some ruach

* Fix all on-load errors

* Fix fear statement, add trust removal statement

* Fix Might of the Nephilim maintenance

* Draining makes NPCs sleepy

* Various edits

* Fix damage-type-causing EoCs

* Also check for lack of effect when applying Ra'ab

* Nether monsters are ruach-neutral on average

* Show intensity for Ra'ab

* Also lower target npc_value with repeated draining

* Update src/npctalk.cpp

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Value is 1 in 3

* Fix spacing

* Add missing deduction skill to Thick Clouds a Covering

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
Standing-Storm and github-actions[bot] authored Oct 22, 2024
1 parent 8f226e5 commit 8b12815
Show file tree
Hide file tree
Showing 15 changed files with 1,425 additions and 14 deletions.
179 changes: 179 additions & 0 deletions data/mods/Xedra_Evolved/effects/effects.json
Original file line number Diff line number Diff line change
Expand Up @@ -2035,6 +2035,13 @@
"desc": [ "You are gaining Fair Folk powers. This should only be visible for a moment." ],
"max_intensity": 3
},
{
"type": "effect_type",
"id": "mutagen_lilin",
"name": [ "Lilin Mutation" ],
"desc": [ "You are gaining Lilin powers. This should only be visible for a moment." ],
"max_intensity": 3
},
{
"type": "effect_type",
"id": "effect_changeling_invisibility",
Expand Down Expand Up @@ -2281,5 +2288,177 @@
"desc": [
"Triggering your abilities that way has taken their toll on you. You cannot save yourself from death that way a second time yet."
]
},
{
"type": "effect_type",
"id": "effect_lilin_vampire_immune",
"//": "Hidden effects, prevents you from being vampirized",
"name": [ "" ],
"desc": [ "" ],
"removes_effects": [ "vampire_virus" ]
},
{
"type": "effect_type",
"id": "effect_gained_lilin_power",
"//": "Hidden effects, prevents you from gaining more lilin powers too quickly",
"name": [ "" ],
"desc": [ "" ]
},
{
"type": "effect_type",
"id": "effect_lilin_temmporary_glorious",
"//": "Hidden effects, tracking whether you have EOC_LILIN_TEMPORARY_GLORIOUS active",
"name": [ "" ],
"desc": [ "" ]
},
{
"type": "effect_type",
"id": "effect_lilin_ruach_drain_side_effects",
"name": [ "Ruach-drained" ],
"desc": [ "A lilit has drained away some of your life-force." ],
"max_intensity": 14,
"int_decay_step": -1,
"int_decay_tick": 259200,
"show_in_info": true
},
{
"type": "effect_type",
"id": "effect_lilin_no_ruach",
"name": [ { "str": "Ra'ab", "//~": "Biblical Hebrew for 'famine' or 'starvation'" } ],
"desc": [ "You are out of ruach and gradually weakening." ],
"rating": "bad",
"max_intensity": 28,
"int_decay_step": 1,
"int_decay_tick": 86400,
"show_intensity": true,
"//2": "Increases in intensity once per day",
"base_mods": {
"pain_min": [ 1 ],
"pain_max": [ 2 ],
"pain_max_val": [ 10 ],
"pain_chance": [ 45 ],
"pain_tick": [ 300 ],
"health_min": [ -1 ],
"health_max": [ 2 ],
"health_chance": [ 45 ],
"health_tick": [ 600 ]
},
"scaling_mods": { "pain_max_val": [ 5 ], "pain_chance": [ -1 ], "pain_tick": [ -6 ], "health_chance": [ -1 ], "health_tick": [ -12 ] },
"enchantments": [
{
"condition": "ALWAYS",
"values": [
{ "value": "HUNGER", "multiply": { "math": [ "u_effect_intensity('effect_lilin_no_ruach') * 0.05" ] } },
{ "value": "THIRST", "multiply": { "math": [ "u_effect_intensity('effect_lilin_no_ruach') * 0.05" ] } },
{ "value": "SLEEPINESS", "multiply": { "math": [ "u_effect_intensity('effect_lilin_no_ruach') * 0.05" ] } },
{
"value": "REGEN_HP",
"multiply": { "math": [ "max((u_effect_intensity('effect_lilin_no_ruach') * -0.04), -1)" ] }
},
{
"value": "REGEN_STAMINA",
"multiply": { "math": [ "max((u_effect_intensity('effect_lilin_no_ruach') * -0.04), -0.95)" ] }
},
{
"value": "REGEN_MANA",
"multiply": { "math": [ "max((u_effect_intensity('effect_lilin_no_ruach') * -0.04), -0.95)" ] }
}
]
}
],
"limb_score_mods": [
{ "limb_score": "balance", "modifier": 0.96, "scaling": -0.035 },
{ "limb_score": "breathing", "modifier": 1.0, "scaling": -0.035 },
{ "limb_score": "lift", "modifier": 0.96, "scaling": -0.035 },
{ "limb_score": "grip", "modifier": 0.96, "scaling": -0.035 },
{ "limb_score": "reaction", "modifier": 0.95, "scaling": -0.035 },
{ "limb_score": "block", "modifier": 1.0, "scaling": -0.035 },
{ "limb_score": "vision", "modifier": 1.0, "scaling": -0.035 }
],
"flags": [ "EFFECT_LIMB_SCORE_MOD" ]
},
{
"type": "effect_type",
"id": "effect_lilin_attribute_bonuses",
"name": [ { "str": "Might of the Nephilim" } ],
"desc": [ "You are enhancing your physical abilities." ],
"rating": "good",
"enchantments": [
{
"condition": { "u_has_trait": "LILIN_ATTRIBUTE_BONUSES_STRENGTH" },
"values": [
{
"value": "STRENGTH",
"add": {
"math": [
"1 + (u_has_trait('LILIN_ATTRIBUTE_BONUSES_STRENGTH') * 1) + (u_has_trait('LILIN_ATTRIBUTE_BONUSES_DEXTERITY') * 1) + (u_has_trait('LILIN_ATTRIBUTE_BONUSES_PERCEPTION') * 1) + (u_has_trait('THRESH_LILIN') * 2)"
]
}
}
]
},
{
"condition": { "u_has_trait": "LILIN_ATTRIBUTE_BONUSES_DEXTERITY" },
"values": [
{
"value": "DEXTERITY",
"add": {
"math": [
"1 + (u_has_trait('LILIN_ATTRIBUTE_BONUSES_STRENGTH') * 1) + (u_has_trait('LILIN_ATTRIBUTE_BONUSES_DEXTERITY') * 1) + (u_has_trait('LILIN_ATTRIBUTE_BONUSES_PERCEPTION') * 1) + (u_has_trait('THRESH_LILIN') * 2)"
]
}
},
{ "value": "BONUS_DODGE", "add": 1 }
]
},
{
"condition": { "u_has_trait": "LILIN_ATTRIBUTE_BONUSES_PERCEPTION" },
"values": [
{
"value": "PERCEPTION",
"add": {
"math": [
"1 + (u_has_trait('LILIN_ATTRIBUTE_BONUSES_STRENGTH') * 1) + (u_has_trait('LILIN_ATTRIBUTE_BONUSES_DEXTERITY') * 1) + (u_has_trait('LILIN_ATTRIBUTE_BONUSES_PERCEPTION') * 1) + (u_has_trait('THRESH_LILIN') * 2)"
]
}
}
]
}
]
},
{
"type": "effect_type",
"id": "effect_lilin_speed_boost",
"name": [ { "str": "Reaping the Whirlwind" } ],
"desc": [ "You are moving incredibly quickly." ],
"rating": "good",
"enchantments": [
{
"values": [
{ "value": "MOVE_COST", "multiply": -0.5 },
{ "value": "ATTACK_SPEED", "multiply": -0.66 },
{ "value": "BONUS_DODGE", "add": 1 },
{ "value": "DODGE_CHANCE", "add": { "math": [ "2 + (u_has_trait('THRESH_LILIN') * 2)" ] } },
{ "value": "RANGE_DODGE", "add": { "math": [ "0.25 + (u_has_trait('THRESH_LILIN') * 0.25)" ] } }
]
}
]
},
{
"type": "effect_type",
"id": "effect_lilin_limb_score_bonuses_at_night",
"name": [ { "str": "The Night Hunter" } ],
"desc": [ "Now they will know why they fear the night." ],
"rating": "good",
"limb_score_mods": [
{ "limb_score": "balance", "modifier": 1.2 },
{ "limb_score": "breathing", "modifier": 1.5 },
{ "limb_score": "lift", "modifier": 1.25 },
{ "limb_score": "grip", "modifier": 1.25 },
{ "limb_score": "reaction", "modifier": 1.35 },
{ "limb_score": "block", "modifier": 1.3 },
{ "limb_score": "vision", "modifier": 1.5 }
],
"flags": [ "EFFECT_LIMB_SCORE_MOD" ]
}
]
7 changes: 7 additions & 0 deletions data/mods/Xedra_Evolved/eocs/scenario_specific.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@
"eoc_type": "SCENARIO_SPECIFIC",
"effect": [ { "u_add_effect": "vampire_virus", "intensity": 1, "duration": "PERMANENT" } ]
},
{
"type": "effect_on_condition",
"id": "scenario_lilin_starting_ruach",
"//": "Starts you off with some ruach so you don't begin starving immediately",
"eoc_type": "SCENARIO_SPECIFIC",
"effect": [ { "math": [ "u_vitamin('lilin_ruach_vitamin')", "+=", "rng(550,850) " ] } ]
},
{
"type": "effect_on_condition",
"id": "scenario_paraclesian_birth",
Expand Down
9 changes: 9 additions & 0 deletions data/mods/Xedra_Evolved/mutations/mutation_category.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,15 @@
"vitamin": "mutagen_fair_folk_commoner_trow",
"memorial_message": "Empty your heart of its mortal dream."
},
{
"type": "mutation_category",
"id": "LILIN",
"name": "Lilin",
"threshold_mut": "THRESH_LILIN",
"mutagen_message": "",
"vitamin": "mutagen_lilin",
"memorial_message": "The dawn breaks, and the owl lays down for its final rest."
},
{
"type": "mutation_type",
"id": "STOMACH"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -781,13 +781,13 @@
"type": "mutation",
"id": "PRETTY",
"copy-from": "PRETTY",
"extend": { "category": [ "HOMULLUS", "FAIR_FOLK_NOBLE", "FAIR_FOLK_COMMONER_SELKIE" ] }
"extend": { "category": [ "HOMULLUS", "FAIR_FOLK_NOBLE", "FAIR_FOLK_COMMONER_SELKIE", "LILIN" ] }
},
{
"type": "mutation",
"id": "BEAUTIFUL",
"copy-from": "BEAUTIFUL",
"extend": { "category": [ "HOMULLUS", "FAIR_FOLK_NOBLE", "FAIR_FOLK_COMMONER_SELKIE" ] }
"extend": { "category": [ "HOMULLUS", "FAIR_FOLK_NOBLE", "FAIR_FOLK_COMMONER_SELKIE", "LILIN" ] }
},
{
"type": "mutation",
Expand Down
15 changes: 5 additions & 10 deletions data/mods/Xedra_Evolved/mutations/playable_changeling.json
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,8 @@
"FAIR_FOLK_COMMONER_BROWNIE",
"FAIR_FOLK_COMMONER_POOKA",
"FAIR_FOLK_COMMONER_SELKIE",
"FAIR_FOLK_COMMONER_TROW"
"FAIR_FOLK_COMMONER_TROW",
"LILIN"
]
}
},
Expand All @@ -252,16 +253,10 @@
"FAIR_FOLK_COMMONER_BROWNIE",
"FAIR_FOLK_COMMONER_POOKA",
"FAIR_FOLK_COMMONER_SELKIE",
"FAIR_FOLK_COMMONER_TROW"
"FAIR_FOLK_COMMONER_TROW",
"LILIN"
]
},
"threshreq": [
"THRESH_FAIR_FOLK_NOBLE",
"THRESH_FAIR_FOLK_COMMONER_BROWNIE",
"THRESH_FAIR_FOLK_COMMONER_POOKA",
"THRESH_FAIR_FOLK_COMMONER_SELKIE",
"THRESH_FAIR_FOLK_COMMONER_TROW"
]
}
},
{
"type": "mutation",
Expand Down
55 changes: 54 additions & 1 deletion data/mods/Xedra_Evolved/mutations/temporary.json
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,56 @@
"override_look": { "id": "mon_cougar", "tile_category": "monster" },
"integrated_armor": [ "integrated_fangs", "integrated_feline_fur", "integrated_claws" ]
},
{
"type": "mutation",
"id": "TURN_INTO_OWL_TRAITS",
"name": { "str": "Owl Form" },
"points": 98,
"description": "You are am owl. This provides the actual effects of owl form. Should not be player-visible.",
"starting_trait": false,
"purifiable": false,
"valid": false,
"player_display": false,
"//": "The second enchantment, as well as bodytemp modifiers, takes into account the effects of the mutations added by the first enchantment, whose own enchantments do not transfer over due to bug #74994. If that bug is fixed, it can be deleted.",
"bodytemp_modifiers": [ 500, 1200 ],
"enchantments": [
{
"condition": "ALWAYS",
"values": [
{ "value": "MAX_HP", "multiply": -0.75 },
{ "value": "SPEED", "multiply": 0.1 },
{ "value": "MELEE_DAMAGE", "multiply": -0.95 },
{ "value": "DEXTERITY", "add": 6 },
{ "value": "PERCEPTION", "add": 6 },
{ "value": "NIGHT_VIS", "add": 8 },
{ "value": "CRAFTING_SPEED_MULTIPLIER", "multiply": -1000 }
],
"ench_effects": [ { "effect": "effect_vampire_bat_form_levitation", "intensity": 1 } ],
"skills": [ { "value": "dodge", "add": 4 } ],
"mutations": [ "BIRD_EYE", "DOWN", "EAGLEEYED", "LIGHTEATER" ]
},
{
"condition": "ALWAYS",
"values": [
{ "value": "PERCEPTION", "add": 4 },
{ "value": "BODYTEMP_SLEEP", "add": 0.5 },
{ "value": "OVERMAP_SIGHT", "add": 4 },
{ "value": "METABOLISM", "multiply": -0.333 }
]
},
{
"condition": "u_has_weapon",
"values": [ { "value": "MELEE_DAMAGE", "multiply": -1 }, { "value": "RANGE", "multiply": -1 } ]
},
{
"condition": { "u_is_on_terrain": "t_open_air" },
"values": [ { "value": "MOVE_COST", "multiply": -0.6 }, { "value": "FOOTSTEP_NOISE", "multiply": -1 } ]
}
],
"flags": [ "LEVITATION", "MUTE", "NO_SPELLCASTING", "TEMPORARY_SHAPESHIFT", "SHAPESHIFT_SIZE_TINY" ],
"//2": "override below is because apparently we have no owls in the game",
"override_look": { "id": "mon_albino_penguin", "tile_category": "monster" }
},
{
"type": "mutation",
"id": "TURN_INTO_RAVEN_TRAITS",
Expand Down Expand Up @@ -324,7 +374,10 @@
"condition": "u_has_weapon",
"values": [ { "value": "MELEE_DAMAGE", "multiply": -1 }, { "value": "RANGE", "multiply": -1 } ]
},
{ "condition": { "u_is_on_terrain": "t_open_air" }, "values": [ { "value": "MOVE_COST", "multiply": -0.6 } ] }
{
"condition": { "u_is_on_terrain": "t_open_air" },
"values": [ { "value": "MOVE_COST", "multiply": -0.6 }, { "value": "FOOTSTEP_NOISE", "multiply": -1 } ]
}
],
"flags": [ "LEVITATION", "MUTE", "NO_SPELLCASTING", "TEMPORARY_SHAPESHIFT", "SHAPESHIFT_SIZE_TINY" ],
"override_look": { "id": "mon_raven", "tile_category": "monster" }
Expand Down
Loading

0 comments on commit 8b12815

Please sign in to comment.