Skip to content

Commit

Permalink
[Xedra Evolved] More Paraclesian restrictions (CleverRaven#75931)
Browse files Browse the repository at this point in the history
* Initial commit

* Homullus

* Salamander

* Generalized fae bans

* humnan -> human
  • Loading branch information
Standing-Storm authored Aug 25, 2024
1 parent 6383d26 commit 9bacf01
Show file tree
Hide file tree
Showing 6 changed files with 279 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,11 @@
"enchantments": [
{
"condition": { "and": [ "is_day", "u_is_outside" ] },
"values": [ { "value": "REGEN_HP", "multiply": 0.5 }, { "value": "MENDING_MODIFIER", "multiply": 1 } ],
"values": [
{ "value": "REGEN_HP", "multiply": 0.5 },
{ "value": "REGEN_HP_AWAKE", "multiply": 0.2 },
{ "value": "MENDING_MODIFIER", "multiply": 1 }
],
"ench_effects": [ { "effect": "effect_arvore_vitamin_bonus", "intensity": 1 } ]
}
],
Expand All @@ -429,6 +433,7 @@
"condition": { "and": [ "is_day", "u_is_outside" ] },
"values": [
{ "value": "REGEN_HP", "multiply": 0.5 },
{ "value": "REGEN_HP_AWAKE", "multiply": 0.2 },
{ "value": "REGEN_MANA", "multiply": 0.5 },
{ "value": "MENDING_MODIFIER", "multiply": 1 }
],
Expand All @@ -437,6 +442,35 @@
],
"//": "No messages so you aren't constantly spammed while you're walking in and out of buildings. Being a fae spirit, the arvore doesn't need uncovered arms or head or anything--simply being in the sun is enough."
},
{
"type": "mutation",
"id": "ARVORE_MOOD_CHANGES_WITH_SEASONS",
"name": { "str": "The Eternal Cycle" },
"points": 3,
"visibility": 0,
"ugliness": 0,
"description": "Your energy changes with the seasons: in spring and summer, you're more awake and need less sleep, and the reverse is true in autumn and winter.",
"prereqs": [ "ARVORE_SUN_NUTRIENTS", "ARVORE_SUN_NUTRIENTS_AND_MANA", "ARVORE_SUN_MANA_BONUS", "ARVORE_SUN_POWER_MANA_STATS" ],
"category": [ "ARVORE" ],
"enchantments": [
{
"condition": { "is_season": "spring" },
"values": [ { "value": "SLEEPINESS", "multiply": -0.1 }, { "value": "SLEEPINESS_REGEN", "multiply": 0.1 } ]
},
{
"condition": { "is_season": "summer" },
"values": [ { "value": "SLEEPINESS", "multiply": -0.25 }, { "value": "SLEEPINESS_REGEN", "multiply": 0.25 } ]
},
{
"condition": { "is_season": "autumn" },
"values": [ { "value": "SLEEPINESS", "multiply": 0.1 }, { "value": "SLEEPINESS_REGEN", "multiply": -0.1 } ]
},
{
"condition": { "is_season": "winter" },
"values": [ { "value": "SLEEPINESS", "multiply": 0.25 }, { "value": "SLEEPINESS_REGEN", "multiply": -0.25 } ]
}
]
},
{
"type": "mutation",
"id": "ARVORE_SUN_FOODS",
Expand Down Expand Up @@ -974,6 +1008,7 @@
"condition": { "and": [ "is_day", "u_is_outside" ] },
"values": [
{ "value": "REGEN_HP", "multiply": 0.5 },
{ "value": "REGEN_HP_AWAKE", "multiply": 0.2 },
{ "value": "REGEN_MANA", "multiply": 0.5 },
{ "value": "MAX_MANA", "multiply": 0.5 },
{ "value": "MENDING_MODIFIER", "multiply": 1 }
Expand All @@ -999,6 +1034,7 @@
"condition": { "and": [ "is_day", "u_is_outside" ] },
"values": [
{ "value": "REGEN_HP", "multiply": 0.5 },
{ "value": "REGEN_HP_AWAKE", "multiply": 0.2 },
{ "value": "REGEN_MANA", "multiply": 0.5 },
{ "value": "MAX_MANA", "multiply": 0.5 },
{ "value": "MENDING_MODIFIER", "multiply": 1 },
Expand Down
26 changes: 26 additions & 0 deletions data/mods/Xedra_Evolved/mutations/paraclesians/homullus_eocs.json
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,32 @@
},
"effect": [ { "u_add_trait": "HOMULLUS_MINIMIZED_MUTATIONS" } ]
},
{
"type": "effect_on_condition",
"id": "EOC_HOMULLUS_CUT_OFF_FURTHER_HOMULLUS_MUTATIONS",
"eoc_type": "EVENT",
"required_event": "character_consumes_item",
"condition": {
"and": [
{
"or": [
{ "compare_string": [ "iv_mutagen", { "context_val": "itype" } ] },
{ "compare_string": [ "mutagen", { "context_val": "itype" } ] }
]
},
{ "u_has_trait": "HOMULLUS_EXPANDED_MUTATIONS" }
]
},
"effect": [ { "u_add_trait": "HOMULLUS_NO_DOLL_MUTATIONS" } ]
},
{
"type": "effect_on_condition",
"id": "EOC_HOMULLUS_CUT_OFF_FURTHER_HOMULLUS_MUTATIONS_2",
"recurrence": "10 m",
"condition": { "u_has_trait": "HOMULLUS_NO_DOLL_MUTATIONS" },
"deactivate_condition": { "not": { "u_has_trait": "HOMULLUS_NO_DOLL_MUTATIONS" } },
"effect": [ { "math": [ "u_vitamin('mutagen_dollkin')", "=", "0" ] } ]
},
{
"type": "effect_on_condition",
"id": "EOC_HOMULLUS_DOLL_FORM_ON",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@
"visibility": 0,
"ugliness": 0,
"purifiable": false,
"description": "As a spirit of humanity, you lack the natural biology required for mutagens to function. However, your powers have grown far enough to allow you to use even the most abstract of human tools, allowing you to consume mutagens to change your body. Unlike humans, however, there are thresholds you will never be able to reach.",
"description": "As a spirit of humanity, you lack the natural biology required for mutagens to function. However, your powers have grown far enough to allow you to use even the most abstract of human tools, allowing you to consume mutagens to change your body. Unlike humans, however, there are thresholds you will never be able to reach, and should you choose this route, further development of your native spirit powers will be closed off to you.",
"threshreq": [ "THRESH_HOMULLUS" ],
"prereqs": [ "HOMULLUS_MINIMIZED_MUTATIONS" ],
"category": [ "HOMULLUS" ]
Expand All @@ -628,6 +628,48 @@
"changes_to": [ "HOMULLUS_EXPANDED_MUTATIONS" ],
"category": [ "HOMULLUS" ]
},
{
"type": "mutation",
"id": "HOMULLUS_NO_DOLL_MUTATIONS",
"name": "Homullus No Doll Mutations",
"//": "For Homullus who choose to consume mutagen, prevent them from mutating any more homullus traits.",
"valid": false,
"player_display": false,
"purifiable": false,
"points": 0,
"visibility": 0,
"ugliness": 0,
"description": "You have chosen the path of human mutation and further Homullus mutation is closed off to you. You should not see this in-game.",
"vitamin_rates": [ [ "mutagen_dollkin", 1 ] ],
"allowed_category": [
"ALPHA",
"BATRACHIAN",
"BEAST",
"BIRD",
"CATTLE",
"CEPHALOPOD",
"CHIMERA",
"CHIROPTERAN",
"CRUSTACEAN",
"ELFA",
"FELINE",
"FISH",
"GASTROPOD",
"INSECT",
"LIZARD",
"LUPINE",
"MEDICAL",
"MOUSE",
"PLANT",
"RABBIT",
"RAPTOR",
"RAT",
"SLIME",
"SPIDER",
"TROGLOBITE",
"URSINE"
]
},
{
"type": "mutation",
"id": "HOMULLUS_THE_HUNTER2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"id": "EOC_ARVORE_FAE_BAN_CUT_TREE",
"eoc_type": "EVENT",
"required_event": "cuts_tree",
"condition": { "u_has_trait": "THRESH_ARVORE" },
"condition": { "or": [ { "u_has_trait": "THRESH_ARVORE" }, { "u_has_trait": "ARVORE_NURTURING_THE_GREEN" } ] },
"effect": [
{ "run_eocs": "EOC_PARACLESIAN_BROKE_FAE_BAN" },
{ "queue_eocs": "EOC_PARACLESIAN_BROKE_FAE_BAN_PAIN", "time_in_future": 1 },
Expand Down Expand Up @@ -73,7 +73,7 @@
"required_event": "character_wakes_up",
"condition": {
"and": [
{ "u_has_trait": "THRESH_ARVORE" },
{ "or": [ { "u_has_trait": "THRESH_ARVORE" }, { "u_has_trait": "ARVORE_MOSS" } ] },
{
"or": [
{ "test_eoc": "EOC_CONDITION_HOMULLUS_NEAR_FACTION" },
Expand All @@ -92,6 +92,25 @@
}
]
},
{
"type": "effect_on_condition",
"id": "EOC_ARVORE_GAIN_ANTI_JUNK",
"eoc_type": "EVENT",
"required_event": "gains_mutation",
"//": "Automatically gain the Junkfood Intolerance trait when gaining the Solar Rejuvenation or Verdant Blood traits",
"condition": {
"and": [
{
"or": [
{ "compare_string": [ "ARVORE_SUN_NUTRIENTS", { "context_val": "trait" } ] },
{ "compare_string": [ "ARVORE_BLOOD", { "context_val": "trait" } ] }
]
},
{ "u_has_trait": "ARVORE" }
]
},
"effect": [ { "u_add_trait": "ANTIJUNK" } ]
},
{
"type": "effect_on_condition",
"id": "EOC_IERDE_FAE_BAN_DIDNT_SLEEP_UNDERGROUND",
Expand Down Expand Up @@ -158,6 +177,44 @@
}
]
},
{
"type": "effect_on_condition",
"id": "EOC_IERDE_FAE_BAN_GAIN_ANTIJUNK",
"eoc_type": "EVENT",
"required_event": "gains_mutation",
"//": "Automatically gain the Junkfood Intolerance traits when gaining the The Soil Knows Those Who Treat Upon It or the In the Earthmother's Embrace traits",
"condition": {
"and": [
{
"or": [
{ "compare_string": [ "IERDE_DETECT_NEARBY_MONSTERS_EARTH", { "context_val": "trait" } ] },
{ "compare_string": [ "IERDE_SINK_INTO_EARTH", { "context_val": "trait" } ] }
]
},
{ "u_has_trait": "IERDE" }
]
},
"effect": [ { "u_add_trait": "ANTIJUNK" } ]
},
{
"type": "effect_on_condition",
"id": "EOC_IERDE_FAE_BAN_GAIN_HEAVY_SLEEPER",
"eoc_type": "EVENT",
"required_event": "gains_mutation",
"//": "Automatically gain the Very Heavy Sleeper traits when gaining the Unceasing Strength of the Earth or the Blood of the Earth trait",
"condition": {
"and": [
{
"or": [
{ "compare_string": [ "IERDE_CARDIO2", { "context_val": "trait" } ] },
{ "compare_string": [ "IERDE_SLOW_BLEEDING", { "context_val": "trait" } ] }
]
},
{ "u_has_trait": "IERDE" }
]
},
"effect": [ { "u_add_trait": "HEAVYSLEEPER2" } ]
},
{
"type": "effect_on_condition",
"id": "EOC_HOMULLUS_FAE_BAN_KILL_HUMAN",
Expand Down Expand Up @@ -254,8 +311,7 @@
"required_event": "character_gains_effect",
"condition": {
"and": [
{ "u_has_trait": "THRESH_SALAMANDER" },
{ "u_has_trait": "SALAMANDER_SKIN_2" },
{ "or": [ { "u_has_trait": "THRESH_SALAMANDER" }, { "u_has_trait": "SALAMANDER_SKIN_2" } ] },
{ "compare_string": [ "wet", { "context_val": "effect" } ] }
]
},
Expand All @@ -268,14 +324,33 @@
}
]
},
{
"type": "effect_on_condition",
"id": "EOC_SALAMANDER_FAE_BAN_GAIN_PYROMANIA",
"eoc_type": "EVENT",
"required_event": "gains_mutation",
"//": "Automatically gain the Pyromania trait when gaining the Stove's Caress and One in the Sea or the Reading the Heartfires traits",
"condition": {
"and": [
{
"or": [
{ "compare_string": [ "SALAMANDER_COOKING_HEAT", { "context_val": "trait" } ] },
{ "compare_string": [ "SALAMANDER_HEAT_EYES2", { "context_val": "trait" } ] }
]
},
{ "u_has_trait": "SALAMANDER" }
]
},
"effect": [ { "u_add_trait": "PYROMANIA" } ]
},
{
"type": "effect_on_condition",
"id": "EOC_SYLPH_FAE_BAN_DIDNT_SLEEP_OUTSIDE",
"eoc_type": "EVENT",
"required_event": "character_wakes_up",
"condition": {
"and": [
{ "u_has_trait": "THRESH_SYLPH" },
{ "or": [ { "u_has_trait": "THRESH_SYLPH" }, { "u_has_trait": "SYLPH_DEX_BONUS_2" } ] },
{ "or": [ { "not": "u_is_outside" }, { "u_is_on_terrain_with_flag": "INDOORS" } ] }
]
},
Expand Down Expand Up @@ -335,6 +410,44 @@
}
]
},
{
"type": "effect_on_condition",
"id": "EOC_SYLPH_FAE_BAN_GAIN_ANTIJUNK",
"eoc_type": "EVENT",
"required_event": "gains_mutation",
"//": "Automatically gain the Junkfood Intolerance traits when gaining the Call the Children of the Winds or the Breathe Without Air traits",
"condition": {
"and": [
{
"or": [
{ "compare_string": [ "air_sprite", { "context_val": "trait" } ] },
{ "compare_string": [ "BREATHE_WO_AIR", { "context_val": "trait" } ] }
]
},
{ "u_has_trait": "SYLPH" }
]
},
"effect": [ { "u_add_trait": "ANTIJUNK" } ]
},
{
"type": "effect_on_condition",
"id": "EOC_SYLPH_FAE_BAN_GAIN_MOOD_SWINGS",
"eoc_type": "EVENT",
"required_event": "gains_mutation",
"//": "Automatically gain the Mood Swings trait when gaining the Ice-Clear Thoughts or the Born of a Gale traits",
"condition": {
"and": [
{
"or": [
{ "compare_string": [ "SYLPH_INT_BONUS_1", { "context_val": "trait" } ] },
{ "compare_string": [ "SLYPH_RESIST_COLD2", { "context_val": "trait" } ] }
]
},
{ "u_has_trait": "SYLPH" }
]
},
"effect": [ { "u_add_trait": "MOODSWINGS" } ]
},
{
"type": "effect_on_condition",
"id": "EOC_UNDINE_FAE_BAN_SLEEP_ON_LAND",
Expand All @@ -349,6 +462,44 @@
}
]
},
{
"type": "effect_on_condition",
"id": "EOC_UNDINE_FAE_BAN_GAIN_ANTIJUNK",
"eoc_type": "EVENT",
"required_event": "gains_mutation",
"//": "Automatically gain the Junkfood Intolerance traits when gaining the Cleansing the Poison Well or the Summon Rain traits",
"condition": {
"and": [
{
"or": [
{ "compare_string": [ "FOUL_WATER", { "context_val": "trait" } ] },
{ "compare_string": [ "SUMMON_RAIN", { "context_val": "trait" } ] }
]
},
{ "u_has_trait": "UNDINE" }
]
},
"effect": [ { "u_add_trait": "ANTIJUNK" } ]
},
{
"type": "effect_on_condition",
"id": "EOC_UNDINE_FAE_BAN_GAIN_LIGHTWEIGHT",
"eoc_type": "EVENT",
"required_event": "gains_mutation",
"//": "Automatically gain the Lightweight trait when gaining the One Foot in the River and One in the Sea or the Embrace of the Waters traits",
"condition": {
"and": [
{
"or": [
{ "compare_string": [ "SALTWATER_TO_FRESHWATER", { "context_val": "trait" } ] },
{ "compare_string": [ "UNDINE_SLEEP_WATER", { "context_val": "trait" } ] }
]
},
{ "u_has_trait": "UNDINE" }
]
},
"effect": [ { "u_add_trait": "LIGHTWEIGHT" } ]
},
{
"type": "effect_on_condition",
"id": "EOC_ARVORE_SYLPH_UNDINE_FAE_BAN_WEARING_IRON_OR_STEEL",
Expand Down
Loading

0 comments on commit 9bacf01

Please sign in to comment.