From 9c7b71836a359e222abeee8b3cf7f1ed2cb8ff94 Mon Sep 17 00:00:00 2001 From: Termineitor244 Date: Thu, 2 Dec 2021 13:54:26 -0600 Subject: [PATCH] Portal dependent scenario (#52968) Co-authored-by: Eric <52087122+Ramza13@users.noreply.github.com> --- data/json/effects.json | 65 +++ data/json/items/armor/cloaks.json | 2 +- data/json/mutations/mutations.json | 20 + .../portal_dependent_effect_on_condition.json | 454 ++++++++++++++++++ data/json/professions.json | 29 ++ data/json/scenarios.json | 13 + data/json/snippets/effect_on_conditions.json | 125 +++++ data/mods/MMA/scenarios.json | 8 + 8 files changed, 715 insertions(+), 1 deletion(-) create mode 100644 data/json/portal_dependent_effect_on_condition.json create mode 100644 data/mods/MMA/scenarios.json diff --git a/data/json/effects.json b/data/json/effects.json index 0058c1017d701..f247f81b72589 100644 --- a/data/json/effects.json +++ b/data/json/effects.json @@ -2414,6 +2414,71 @@ "desc": [ "You've been struck by lightning, and feel… different." ], "base_mods": { "speed_mod": [ 50 ] } }, + { + "type": "effect_type", + "id": "pd_str_bad", + "name": [ "Muscle Vanishment", "Muscle Dissapearance" ], + "desc": [ "You feel as if your muscles are not quite there.", "You feel as if your muscles are not in your body." ], + "max_intensity": 2, + "rating": "bad", + "int_dur_factor": "50 m", + "base_mods": { "str_mod": [ -1 ] }, + "scaling_mods": { "str_mod": [ -2 ] }, + "miss_messages": [ [ "Your lack of strength stops you!", 1 ] ] + }, + { + "type": "effect_type", + "id": "pd_dex_bad", + "name": [ "Weak Grasp", "Inexistent Grasp" ], + "desc": [ "You seem to have problems touching things.", "You feel as if your hands just pass through matter." ], + "max_intensity": 2, + "rating": "bad", + "int_dur_factor": "50 m", + "base_mods": { "dex_mod": [ -1 ] }, + "scaling_mods": { "dex_mod": [ -2 ] }, + "miss_messages": [ [ "Your attacks don't seem to touch your enemies!", 1 ] ] + }, + { + "type": "effect_type", + "id": "pd_per_bad", + "name": [ "Distorted Vision", "Otherworldly Vision" ], + "desc": [ + "You have problems distinguishing shapes and colors.", + "You seem to see slightly different realities every time you blink." + ], + "max_intensity": 2, + "rating": "bad", + "int_dur_factor": "50 m", + "base_mods": { "per_mod": [ -1 ] }, + "scaling_mods": { "per_mod": [ -2 ] }, + "miss_messages": [ [ "You can't distinguish up from down!", 1 ] ] + }, + { + "type": "effect_type", + "id": "pd_int_bad", + "name": [ "Wandering Mind", "Foreign Mind" ], + "desc": [ "Your thoughts seem to wander around on their own.", "Foreign thoughts seem to invade your mind." ], + "max_intensity": 2, + "rating": "bad", + "int_dur_factor": "50 m", + "base_mods": { "int_mod": [ -1 ] }, + "scaling_mods": { "int_mod": [ -2 ] }, + "miss_messages": [ [ "You suddenly think you shouldn't do that!", 1 ] ] + }, + { + "type": "effect_type", + "id": "pd_rejection", + "name": [ "World Rejection", "Dimensional Rejection" ], + "desc": [ + "Faint sparks surround your every move, your body aches more with every passing second.", + "Sparks swarm around you, your body hurts and even the air seems to reject your existence." + ], + "max_intensity": 2, + "rating": "bad", + "int_dur_factor": "7 m", + "base_mods": { "pain_min": [ 1 ], "pain_chance": [ 20 ] }, + "scaling_mods": { "hurt_min": [ 1 ], "hurt_chance": [ 25 ], "cough_chance": [ 30 ] } + }, { "type": "effect_type", "id": "grown_of_fuse", diff --git a/data/json/items/armor/cloaks.json b/data/json/items/armor/cloaks.json index 09723c6ba0e71..1548700214cf2 100644 --- a/data/json/items/armor/cloaks.json +++ b/data/json/items/armor/cloaks.json @@ -141,7 +141,7 @@ "symbol": "[", "looks_like": "robe", "color": "brown", - "warmth": 50, + "warmth": 5, "material_thickness": 0.3, "environmental_protection": 5, "flags": [ "OVERSIZE", "OUTER", "HELMET_COMPAT" ], diff --git a/data/json/mutations/mutations.json b/data/json/mutations/mutations.json index ec18aea65d392..78c627328d3f6 100644 --- a/data/json/mutations/mutations.json +++ b/data/json/mutations/mutations.json @@ -292,6 +292,26 @@ } ] }, + { + "type": "mutation", + "id": "PORTAL_DEPENDENT", + "name": { "str": "Portal Dependent" }, + "points": -8, + "description": "Your body is not quite there. You feel as if part of you remained behind with the portal storm. You will suffer severely when in lack of portal storms unless you find a way to anchor yourself in the world.", + "valid": false, + "starting_trait": false, + "purifiable": false + }, + { + "type": "mutation", + "id": "REALITY_GRASP", + "name": { "str": "Stabilized in Reality" }, + "points": 0, + "description": "You have regained some substance and have stabilized somewhat, lack of portal storms will not affect you as strongly as before.", + "valid": false, + "starting_trait": false, + "purifiable": false + }, { "type": "mutation", "id": "OPTIMISTIC", diff --git a/data/json/portal_dependent_effect_on_condition.json b/data/json/portal_dependent_effect_on_condition.json new file mode 100644 index 0000000000000..daf60c6aedd38 --- /dev/null +++ b/data/json/portal_dependent_effect_on_condition.json @@ -0,0 +1,454 @@ +[ + { + "type": "effect_on_condition", + "id": "EOC_PORTAL_DEPENDENT_EFFECTS_ACCEPTANCE", + "//": "Mainly good effects, since your unstable grasp on reality will strengthen with the distorted reality of the portal storms.", + "recurrence_min": "15 minutes", + "recurrence_max": "50 minutes", + "condition": { + "and": [ + { "u_has_trait": "PORTAL_DEPENDENT" }, + { "is_weather": "portal_storm" }, + { "not": { "u_has_worn_with_flag": "DIMENSIONAL_ANCHOR" } } + ] + }, + "deactivate_condition": { "not": { "or": [ { "u_has_trait": "PORTAL_DEPENDENT" }, { "is_weather": "portal_storm" } ] } }, + "effect": { + "set_queue_effect_on_condition": [ + { + "id": "EOC_PDEPENDENT_STRONG_WEAK_EFFECTS_ACCEPTANCE", + "condition": { + "compare_int": [ { "global_val": "var", "var_name": "ps_str", "type": "weather", "context": "ps" }, { "const": 8 } ], + "op": ">" + }, + "effect": { + "set_weighted_list_eocs": [ + [ "EOC_PORTAL_DEPENDENT_MESSAGES_GOOD", 10 ], + [ "EOC_PORTAL_DEPENDENT_MORALE_GOOD", 6 ], + [ "EOC_PORTAL_DEPENDENT_FOCUS_GOOD", 3 ], + [ "EOC_PORTAL_DEPENDENT_ACCEPTANCE", 1 ] + ] + }, + "false_effect": { + "set_weighted_list_eocs": [ + [ "EOC_PORTAL_DEPENDENT_MESSAGES_GOOD", 10 ], + [ "EOC_PORTAL_DEPENDENT_MORALE_GOOD", 5 ], + [ "EOC_PORTAL_DEPENDENT_FOCUS_GOOD", 2 ] + ] + } + } + ] + } + }, + { + "type": "effect_on_condition", + "id": "EOC_PORTAL_DEPENDENT_MORALE_GOOD", + "//": "Morale buff for feeling connected to your original reality/wavelength.", + "condition": { "not": { "u_has_effect": "sleep" } }, + "effect": [ + { "u_message": "You feel like in home.", "type": "good" }, + { + "u_add_morale": "morale_feeling_good", + "bonus": 10, + "max_bonus": 20, + "duration": "60 minutes", + "decay_start": "60 minutes" + } + ] + }, + { + "type": "effect_on_condition", + "id": "EOC_PORTAL_DEPENDENT_ACCEPTANCE", + "//": "Some small effects as you feel yourself more stable.", + "condition": { "not": { "u_has_trait": "REALITY_GRASP" } }, + "effect": { + "set_queue_effect_on_condition": [ + { + "id": "EOC_PORTAL_DEPENDENT_ACCEPTANCE_TIMER", + "condition": { "days_since_cataclysm": 60 }, + "effect": { + "set_weighted_list_eocs": [ + [ "EOC_PORTAL_DEPENDENT_ACCEPTANCE_1", 4 ], + [ "EOC_PORTAL_DEPENDENT_ACCEPTANCE_2", 3 ], + [ "EOC_PORTAL_DEPENDENT_ACCEPTANCE_3", 2 ], + [ "EOC_PORTAL_DEPENDENT_ACCEPTANCE_4", 1 ] + ] + }, + "false_effect": { "set_weighted_list_eocs": [ [ "EOC_PORTAL_DEPENDENT_ACCEPTANCE_1", 2 ], [ "EOC_PORTAL_DEPENDENT_ACCEPTANCE_2", 1 ] ] } + } + ] + } + }, + { + "type": "effect_on_condition", + "id": "EOC_PORTAL_DEPENDENT_ACCEPTANCE_1", + "//": "Your feel faintly more accepted by the world, it could be related with the decay of reality in here.", + "effect": [ + { "u_message": "You suddenly feel a weight you didn't know you had, being lift over you.", "type": "good" }, + { "arithmetic": [ { "u_val": "pain" }, "-=", { "const": 5 } ] } + ] + }, + { + "type": "effect_on_condition", + "id": "EOC_PORTAL_DEPENDENT_ACCEPTANCE_2", + "//": "Your feel more accepted by the world, it could be related with the decay of reality in here.", + "effect": [ + { + "u_message": "You suddenly feel less tired and with more energy, as if something that was pulling of you is now gone.", + "type": "good" + }, + { "arithmetic": [ { "u_val": "fatigue" }, "-=", { "const": 20 } ] }, + { "arithmetic": [ { "u_val": "stamina" }, "+=", { "const": 20 } ] } + ] + }, + { + "type": "effect_on_condition", + "id": "EOC_PORTAL_DEPENDENT_ACCEPTANCE_3", + "//": "Your feel even more accepted by the world, it could be related with the decay of reality in here.", + "effect": [ + { "u_message": "You suddenly feel as if invisible shackles were being loosened in your ankles.", "type": "good" }, + { + "u_add_morale": "morale_feeling_good", + "bonus": 20, + "max_bonus": 40, + "duration": "60 minutes", + "decay_start": "60 minutes" + } + ] + }, + { + "type": "effect_on_condition", + "id": "EOC_PORTAL_DEPENDENT_ACCEPTANCE_4", + "//": "Your feel greatly more accepted by the world, your body partially stabilizes itself in this reality if you are outside.", + "effect": { + "set_queue_effect_on_condition": [ + { + "id": "EOC_PORTAL_DEPENDENT_ACCEPTANCE_OUTSIDE", + "condition": "u_is_outside", + "effect": [ + { + "u_message": "You suddenly feel a warm embrace by your surroundings, it does not lasts long, but you now feel a weak connection with the world around you.", + "type": "good" + }, + { "u_add_trait": "REALITY_GRASP" } + ], + "false_effect": { + "u_message": "You suddenly feel a warm embrace by your surroundings, you feel like something is about to change inside you but the embrace seems to lack strenght and stops just before you could grasp it… You now feel a strong need to go out and jump into the portal storm.", + "type": "warning" + } + } + ] + } + }, + { + "type": "effect_on_condition", + "id": "EOC_PORTAL_DEPENDENT_FOCUS_GOOD", + "//": "Your mind gains focus as an effect of your connection with the portal storms.", + "condition": { "not": { "u_has_effect": "sleep" } }, + "effect": [ + { "u_message": "Everything suddenly feels more clear now.", "type": "good" }, + { "arithmetic": [ { "u_val": "focus" }, "+=", { "const": 10 } ] } + ] + }, + { + "type": "effect_on_condition", + "id": "EOC_PORTAL_DEPENDENT_MESSAGES_GOOD", + "//": "Messages about good things that you hear/see related to your condition.", + "condition": { "and": [ { "not": { "u_has_effect": "sleep" } }, "u_can_see" ] }, + "effect": [ { "u_message": "PORTAL_DEPENDENT_MESSAGES_VARIED_GOOD", "snippet": true, "type": "good" } ] + }, + { + "type": "effect_on_condition", + "id": "EOC_PORTAL_DEPENDENT_EFFECTS_REJECTION", + "//": "This should be mainly bad effects, since your unstable grasp on reality will further weaken when the reality stabilizes in lack of portal storms.", + "recurrence_min": "15 minutes", + "recurrence_max": "100 minutes", + "condition": { + "and": [ + { "u_has_trait": "PORTAL_DEPENDENT" }, + { "not": { "is_weather": "portal_storm" } }, + { "not": { "u_has_worn_with_flag": "DIMENSIONAL_ANCHOR" } } + ] + }, + "deactivate_condition": { "or": [ { "not": { "u_has_trait": "PORTAL_DEPENDENT" } }, { "is_weather": "portal_storm" } ] }, + "effect": { + "set_queue_effect_on_condition": [ + { + "id": "EOC_PDEPENDENT_STRONG_WEAK_EFFECTS_REJECTION", + "condition": { "not": { "u_has_trait": "REALITY_GRASP" } }, + "effect": { + "set_weighted_list_eocs": [ + [ "EOC_PORTAL_DEPENDENT_MESSAGES_BAD", 18 ], + [ "EOC_PORTAL_DEPENDENT_MORALE_BAD", 6 ], + [ "EOC_PORTAL_DEPENDENT_FOCUS_BAD", 5 ], + [ "EOC_PORTAL_DEPENDENT_SHAKES", 4 ], + [ "EOC_PORTAL_DEPENDENT_NAUSEA", 4 ], + [ "EOC_PORTAL_DEPENDENT_STUN", 3 ], + [ "EOC_PORTAL_DEPENDENT_DOWNED", 3 ], + [ "EOC_PORTAL_DEPENDENT_STATS_BAD", 3 ], + [ "EOC_PORTAL_TELEPORT_STUCK_START", 3 ], + [ "EOC_PORTAL_DEPENDENT_PAIN", 2 ], + [ "EOC_PORTAL_DEPENDENT_PAIN_CONSTANT", 1 ], + [ "EOC_PORTAL_DEPENDENT_DAMAGE_CONSTANT", 1 ] + ] + }, + "false_effect": { + "set_weighted_list_eocs": [ + [ "EOC_PORTAL_DEPENDENT_MESSAGES_BAD", 10 ], + [ "EOC_PORTAL_DEPENDENT_MORALE_BAD", 3 ], + [ "EOC_PORTAL_DEPENDENT_FOCUS_BAD", 2 ], + [ "EOC_PORTAL_DEPENDENT_SHAKES", 1 ], + [ "EOC_PORTAL_DEPENDENT_NAUSEA", 1 ] + ] + } + } + ] + } + }, + { + "type": "effect_on_condition", + "id": "EOC_PORTAL_DEPENDENT_MORALE_BAD", + "//": "Morale debuff for feeling rejected by this reality.", + "condition": { "not": { "u_has_effect": "sleep" } }, + "effect": [ + { "u_message": "You suddenly feel like you shouldn't be here.", "type": "bad" }, + { + "u_add_morale": "morale_feeling_bad", + "bonus": -10, + "max_bonus": -30, + "duration": "40 minutes", + "decay_start": "10 minutes" + } + ] + }, + { + "type": "effect_on_condition", + "id": "EOC_PORTAL_DEPENDENT_FOCUS_BAD", + "//": "Your mind losses focus as an effect of your unstable condition.", + "condition": { "not": { "u_has_effect": "sleep" } }, + "effect": [ + { + "u_message": "You try to recall what you were going to do, but you can't focus your actions for some reason.", + "type": "bad" + }, + { "arithmetic": [ { "u_val": "focus" }, "-=", { "const": 10 } ] } + ] + }, + { + "type": "effect_on_condition", + "id": "EOC_PORTAL_DEPENDENT_STATS_BAD", + "//": "Stats debuffs as consequence of your unstable condition.", + "condition": { "not": { "u_has_effect": "sleep" } }, + "effect": [ + { + "set_queue_effect_on_condition": [ + { + "id": "EOC_PORTAL_DEPENDENT_STATS_EFFECTS", + "effect": { + "set_weighted_list_eocs": [ + [ "EOC_PORTAL_DEPENDENT_STR_BAD", 1 ], + [ "EOC_PORTAL_DEPENDENT_DEX_BAD", 1 ], + [ "EOC_PORTAL_DEPENDENT_PER_BAD", 1 ], + [ "EOC_PORTAL_DEPENDENT_INT_BAD", 1 ] + ] + } + } + ] + } + ] + }, + { + "type": "effect_on_condition", + "id": "EOC_PORTAL_DEPENDENT_STR_BAD", + "//": "Strength debuff as consequence of your unstable condition.", + "condition": { "not": { "u_has_effect": "sleep" } }, + "effect": [ + { "u_message": "You suddenly need more strength to interact with your surroundings.", "type": "bad" }, + { "u_add_effect": "pd_str_bad", "duration": "50 minutes" }, + { + "set_queue_effect_on_condition": [ { "id": "EOC_PORTAL_DEPENDENT_MESSAGES_STR_BAD" } ], + "time_in_future_min": "10 minutes", + "time_in_future_max": "40 minutes" + } + ] + }, + { + "type": "effect_on_condition", + "id": "EOC_PORTAL_DEPENDENT_DEX_BAD", + "//": "Dextery debuff as consequence of your unstable condition.", + "condition": { "not": { "u_has_effect": "sleep" } }, + "effect": [ + { "u_message": "You suddenly fail to grab your own hand.", "type": "bad" }, + { "u_add_effect": "pd_dex_bad", "duration": "50 minutes" }, + { + "set_queue_effect_on_condition": [ { "id": "EOC_PORTAL_DEPENDENT_MESSAGES_DEX_BAD" } ], + "time_in_future_min": "10 minutes", + "time_in_future_max": "40 minutes" + } + ] + }, + { + "type": "effect_on_condition", + "id": "EOC_PORTAL_DEPENDENT_PER_BAD", + "//": "Perception debuff as consequence of your unstable condition.", + "condition": { "not": { "u_has_effect": "sleep" } }, + "effect": [ + { "u_message": "You blink one time and now everything seems bigger.", "type": "bad" }, + { "u_add_effect": "pd_per_bad", "duration": "50 minutes" }, + { + "set_queue_effect_on_condition": [ { "id": "EOC_PORTAL_DEPENDENT_MESSAGES_PER_BAD" } ], + "time_in_future_min": "10 minutes", + "time_in_future_max": "40 minutes" + } + ] + }, + { + "type": "effect_on_condition", + "id": "EOC_PORTAL_DEPENDENT_INT_BAD", + "//": "Intelligence debuff as consequence of your unstable condition.", + "condition": { "not": { "u_has_effect": "sleep" } }, + "effect": [ + { "u_message": "You stop yourself to think, but you can't seem to remember about what.", "type": "bad" }, + { "u_add_effect": "pd_int_bad", "duration": "50 minutes" }, + { + "set_queue_effect_on_condition": [ { "id": "EOC_PORTAL_DEPENDENT_MESSAGES_INT_BAD" } ], + "time_in_future_min": "10 minutes", + "time_in_future_max": "40 minutes" + } + ] + }, + { + "type": "effect_on_condition", + "id": "EOC_PORTAL_DEPENDENT_SHAKES", + "//": "Occasional shakes as consequence of your unstable condition.", + "condition": { "not": { "u_has_effect": "sleep" } }, + "effect": [ + { "u_message": "You feel anxious for no reason.", "type": "bad" }, + { "u_add_effect": "shakes", "duration": "5 minutes" } + ] + }, + { + "type": "effect_on_condition", + "id": "EOC_PORTAL_DEPENDENT_NAUSEA", + "//": "Occasional nausea as consequence of your unstable condition.", + "effect": [ + { "u_message": "You suddenly feel as if your stomach and its contents are fighting.", "type": "bad" }, + { "u_add_effect": "nausea", "duration": "5 minutes", "intensity": 2 } + ] + }, + { + "type": "effect_on_condition", + "id": "EOC_PORTAL_DEPENDENT_STUN", + "//": "The world doesn't like your presence, stunning you for a moment.", + "effect": [ + { "u_message": "You feel rejected by the world for a brief moment.", "type": "bad" }, + { "u_add_effect": "stunned", "duration": 1 } + ] + }, + { + "type": "effect_on_condition", + "id": "EOC_PORTAL_DEPENDENT_DOWNED", + "//": "Your body lacks physical substance for a moment, tripping you.", + "condition": { "not": { "u_has_effect": "sleep" } }, + "effect": [ + { "u_message": "You suddenly feel like the ground is sucking you!", "type": "bad" }, + { "u_add_effect": "downed", "duration": 1 } + ] + }, + { + "type": "effect_on_condition", + "id": "EOC_PORTAL_DEPENDENT_DAMAGE_CONSTANT", + "//": "Your body is being strongly rejected for a few minutes.", + "condition": { "not": { "u_has_effect": "sleep" } }, + "effect": [ + { + "u_message": "Your vision suddenly fills with sparks, your body hurts and you feel alone in the world.", + "type": "bad" + }, + { "u_add_effect": "pd_rejection", "duration": "15 minutes", "intensity": 2 } + ] + }, + { + "type": "effect_on_condition", + "id": "EOC_PORTAL_DEPENDENT_PAIN_CONSTANT", + "//": "Your body is being faintly rejected for a few minutes.", + "condition": { "not": { "u_has_effect": "sleep" } }, + "effect": [ + { + "u_message": "Faint sparks surround your body and you suffer with every action you take, as if you weren't intended to do them.", + "type": "bad" + }, + { "u_add_effect": "pd_rejection", "duration": "7 minutes" } + ] + }, + { + "type": "effect_on_condition", + "id": "EOC_PORTAL_DEPENDENT_PAIN", + "//": "The world rejects you with violence for a second, this is intended to occur even while sleeping.", + "effect": [ + { + "u_message": "Faint sparks suddenly appear and disappear around you, as if rejecting your very existence.", + "type": "bad" + }, + { "arithmetic": [ { "u_val": "pain" }, "+=", { "const": 10 } ] } + ] + }, + { + "type": "effect_on_condition", + "id": "EOC_PORTAL_DEPENDENT_MESSAGES_BAD", + "//": "Messages about strange/bad things that you hear/see/feel/dream related to your condition.", + "effect": { + "set_queue_effect_on_condition": [ + { + "id": "EOC_PORTAL_DEPENDENT_MESSAGES_BAD_AWAKE", + "condition": { "not": { "u_has_effect": "sleep" } }, + "effect": { + "set_weighted_list_eocs": [ + [ "EOC_PORTAL_DEPENDENT_MESSAGES_VARIED_BAD", 1 ], + [ "EOC_PORTAL_DEPENDENT_MESSAGES_STR_BAD", 1 ], + [ "EOC_PORTAL_DEPENDENT_MESSAGES_DEX_BAD", 1 ], + [ "EOC_PORTAL_DEPENDENT_MESSAGES_PER_BAD", 1 ], + [ "EOC_PORTAL_DEPENDENT_MESSAGES_INT_BAD", 1 ] + ] + }, + "false_effect": [ { "u_message": "PORTAL_DEPENDENT_MESSAGES_DREAMS", "snippet": true, "type": "mixed" } ] + } + ] + } + }, + { + "type": "effect_on_condition", + "id": "EOC_PORTAL_DEPENDENT_MESSAGES_VARIED_BAD", + "//": "Varied messages about strange/bad things that you hear/see related to your condition.", + "condition": { "and": [ { "not": { "u_has_effect": "sleep" } }, "u_can_see" ] }, + "effect": [ { "u_message": "PORTAL_DEPENDENT_MESSAGES_VARIED_BAD", "snippet": true, "type": "mixed" } ] + }, + { + "type": "effect_on_condition", + "id": "EOC_PORTAL_DEPENDENT_MESSAGES_STR_BAD", + "//": "Messages about strange/bad things that you feel in your body related to your condition.", + "condition": { "and": [ { "not": { "u_has_effect": "sleep" } }, "u_can_see" ] }, + "effect": [ { "u_message": "PORTAL_DEPENDENT_MESSAGES_STR_BAD", "snippet": true, "type": "mixed" } ] + }, + { + "type": "effect_on_condition", + "id": "EOC_PORTAL_DEPENDENT_MESSAGES_DEX_BAD", + "//": "Messages about strange/bad things that you suffer with your hands related to your condition.", + "condition": { "and": [ { "not": { "u_has_effect": "sleep" } }, "u_can_see" ] }, + "effect": [ { "u_message": "PORTAL_DEPENDENT_MESSAGES_DEX_BAD", "snippet": true, "type": "mixed" } ] + }, + { + "type": "effect_on_condition", + "id": "EOC_PORTAL_DEPENDENT_MESSAGES_PER_BAD", + "//": "Messages about strange/bad things that you perceive because of your condition.", + "condition": { "and": [ { "not": { "u_has_effect": "sleep" } }, "u_can_see" ] }, + "effect": [ { "u_message": "PORTAL_DEPENDENT_MESSAGES_PER_BAD", "snippet": true, "type": "mixed" } ] + }, + { + "type": "effect_on_condition", + "id": "EOC_PORTAL_DEPENDENT_MESSAGES_INT_BAD", + "//": "Messages about strange/bad things that you think/feel/do related to your mental condition.", + "condition": { "and": [ { "not": { "u_has_effect": "sleep" } }, "u_can_see" ] }, + "effect": [ { "u_message": "PORTAL_DEPENDENT_MESSAGES_INT_BAD", "snippet": true, "type": "mixed" } ] + } +] diff --git a/data/json/professions.json b/data/json/professions.json index c574fce2a90fb..ae1caabbc148e 100644 --- a/data/json/professions.json +++ b/data/json/professions.json @@ -4114,5 +4114,34 @@ "male": [ "boxer_shorts" ], "female": [ "bra", "panties" ] } + }, + { + "type": "profession", + "id": "portal_traveler", + "name": "Portal Traveler", + "description": "You were abducted from your home, taken hostage and used as a test subject in a lab. The last test soon came, you were dressed in strange clothes and sent to a room where you started to feel… different, you lost your conscience and woke up in this place.", + "points": 2, + "items": { + "both": { + "items": [ "xedra_enviro_suit", "socks", "union_suit" ], + "entries": [ + { "item": "mask_gas", "ammo-item": "gasfilter_m", "charges": 5 }, + { + "item": "light_minus_battery_cell", + "ammo-item": "battery", + "charges": 20, + "container-item": "rad_monitor" + }, + { + "item": "medium_atomic_battery_cell", + "ammo-item": "battery", + "charges": 20, + "container-item": "broken_dimensional_anchor" + }, + { "item": "xedra_seismograph", "custom-flags": [ "auto_wield" ] } + ] + } + }, + "flags": [ "SCEN_ONLY" ] } ] diff --git a/data/json/scenarios.json b/data/json/scenarios.json index 8a75a93843b4e..c50d6de38a77b 100644 --- a/data/json/scenarios.json +++ b/data/json/scenarios.json @@ -691,6 +691,19 @@ "allowed_locs": [ "sloc_shelter_a", "sloc_shelter_b", "sloc_shelter_c" ], "eoc": [ "scenario_quick_portal_storm" ] }, + { + "type": "scenario", + "id": "portal_dependent", + "name": "Challenge - Portal Dependent", + "points": -8, + "description": "You were caught on a huge and unstable portal storm. You feel… different.", + "forced_traits": [ "PORTAL_DEPENDENT" ], + "flags": [ "CHALLENGE", "LONE_START" ], + "start_name": "Field", + "allowed_locs": [ "sloc_field", "sloc_forest", "sloc_desert_island" ], + "eoc": [ "scenario_strong_portal_storm" ], + "professions": [ "portal_traveler", "churl", "true_foodperson", "unemployed", "naked" ] + }, { "type": "scenario", "id": "Mansion", diff --git a/data/json/snippets/effect_on_conditions.json b/data/json/snippets/effect_on_conditions.json index 4fec86bae1f4e..543e2e9cd6c32 100644 --- a/data/json/snippets/effect_on_conditions.json +++ b/data/json/snippets/effect_on_conditions.json @@ -225,6 +225,131 @@ "a confident voice saying \"This world is half eaten, but there are others yet untouched in the infinte. It is unlikely you will find the way through the chaos out here to them, but much more likely than you surviving in this dead world.\"" ] }, + { + "type": "snippet", + "category": "PORTAL_DEPENDENT_MESSAGES_VARIED_GOOD", + "text": [ + "You suddenly smell the most delicious aroma in the world.", + "Some sparks appear and seem to dance around you for a brief moment.", + "Some sparks appear in front of you for a brief moment. They seem to become white and beautiful birds before disappearing.", + "Some sparks appear in front of you for a brief moment. They seem to take your shape and wave at you before disappearing.", + "Some sparks appear in front of you for a brief moment. They seem to form a smiling face before disappearing.", + "Some sparks appear in front of you for a brief moment. They seem to form your own face and blink at you before disappearing.", + "Some sparks appear to be following one of your fingers. You draw a smile in the air and the sparks take its shape.", + "You raise your arms and some sparks appear. You move them up and down and the sparks seem to become beautiful wings.", + "Your hand seems to become full of vitality for a brief moment.", + "For a split second one of your fingers seems to glow in phosphorescent lights. You move them around and the lights seem like that of a disco ball.", + "For a moment all sounds around you sound stronger, as if attracted by you.", + "For a moment your voice seems to reach further.", + "For a moment you hear a beautiful voice from far away.", + "For a moment your voice seems to invoke dancing sparks.", + "For a moment you feel calm all around you. Maybe portal storms are not so bad.", + "For a moment you feel like this weather is protecting you.", + "For a moment you feel like you can regain something lost if you just wait here.", + "For a moment you feel like you should enjoy portal storms.", + "For a moment you feel like you would regret it if you are not outside with this beautiful weather.", + "For a moment you feel like you can become something else if you continue like this." + ] + }, + { + "type": "snippet", + "category": "PORTAL_DEPENDENT_MESSAGES_VARIED_BAD", + "text": [ + "Your sense of smell suddenly stops working. It returns after a second.", + "Some sparks appear in front of you for a brief moment.", + "Some sparks appear in front of you for a brief moment. They seem to take human shape before disappearing.", + "Some sparks appear in front of you for a brief moment. They seem to take your shape before disappearing.", + "Some sparks appear in front of you for a brief moment. They seem to form an agonizing face before disappearing.", + "Some sparks appear in front of you for a brief moment. They seem to form your own face and scream before disappearing.", + "Some sparks appear to be following one of your fingers for a few seconds.", + "You raise your hand and some sparks appear. But when you drop it the sparks disappear. Weird.", + "Your hand suddenly seems foreign to you.", + "For a split second one of your fingers seems to glow in phosphorescent lights.", + "For a moment all sound disappears around you, as if escaping from you.", + "For a moment you can no longer hear your own voice.", + "For a moment your voice seems to sound far away.", + "For a moment your voice seems like someone else's." + ] + }, + { + "type": "snippet", + "category": "PORTAL_DEPENDENT_MESSAGES_STR_BAD", + "text": [ + "You feel heavier for a brief moment.", + "You feel lighter for a brief moment.", + "Your arm stops moving for a brief moment.", + "Your muscles ache for a brief moment.", + "For a split second you feel a hole in your arm.", + "For a split second you feel as if touching an alien texture.", + "For a moment your strength disappears and you are unable to raise your arm.", + "You suddenly feel as if walking on the moon." + ] + }, + { + "type": "snippet", + "category": "PORTAL_DEPENDENT_MESSAGES_DEX_BAD", + "text": [ + "For a moment your hand seems to get stuck in something. You search around but can't find what it was.", + "For a split second your hand seems to disappear in the air.", + "Your right hand suddendly trasspasses your left hand. You separate them immediately.", + "Your left hand suddenly gets stuck in your right hand. After a second you are able to separate them again.", + "For a split second your left and right hands seem to switch places.", + "You try to touch your own face with your hand, but you can't feel the touch.", + "You suddenly feel as if the wind passes through your skin and meat until reaching your bones.", + "You suddenly feel like you can't exert strength in your own hand." + ] + }, + { + "type": "snippet", + "category": "PORTAL_DEPENDENT_MESSAGES_PER_BAD", + "text": [ + "Things seem bigger for a moment. You blink and they look normal again.", + "For a split second the colors around you seem inverted.", + "For a split second everything seems green.", + "For a split second everything seems red.", + "For a split second everything seems blue.", + "For a split second everything seems to be made of pixels.", + "For a split second you see your old home. The vision it's replaced by faint sparks after you blink.", + "For a split second you see an old friend smiling. The vision fades after you blink but not before your friend seems to start screaming." + ] + }, + { + "type": "snippet", + "category": "PORTAL_DEPENDENT_MESSAGES_INT_BAD", + "text": [ + "You suddenly thought of a happy family playing in the woods. A second later you realize you don't know the people you were thinking about.", + "You suddenly think of some kids having fun in the beach. A second later you realize the kids didn't have faces and the beach was purple.", + "You suddenly seem to remember your own wedding. A second later you realize the wedding was not yours and the bride was a squid-looking alien.", + "You suddenly seem to remember playing with your friends at the fields before all of this. A second later you realize the fields around you were crawling with alien vermin.", + "You suddenly have the urge to lick your own hand. A second later the urge fades.", + "You suddenly feel like the whole world is a video game. You dismiss the notion after a moment.", + "You suddenly feel like if your entire being was being controlled by someone else. The sensation fades after a moment.", + "You suddenly question whether zombies are bad. Maybe they just need a hug. The thought fades quickly and you shudder from it.", + "You suddenly went right when you wanted to go left.", + "Your right hand suddenly slaps your left hand. Weird.", + "Your left hand suddenly tries to strangle your right hand. Weird." + ] + }, + { + "type": "snippet", + "category": "PORTAL_DEPENDENT_MESSAGES_DREAMS", + "text": [ + "You dream that a great darkness surrounds you and wants to rip you apart.", + "You dream of hunting small animals, the animals drop candy and you feel reinvigorated by eating them.", + "You dream of yourself, sleeping, while a world of sparks dance around you.", + "You dream of yourself, sleeping, while a giant pair of eyes watch over you, waiting for you to wake up.", + "You dream of yourself, there are strings attached to your body and you move like a puppet.", + "You dream of yourself in a field in the middle of a portal storm, you seem to be uniting with the world.", + "You dream of yourself in a house in the middle of a portal storm, you seem to be sad and alone.", + "You dream of a different version of yourself, there is blood in your mouth and your moves lack intelligence.", + "You dream of a different version of yourself, you are as big as a tree and fight similarly giant zombies.", + "You dream of a different version of yourself, you speak a language you have never heard and move in ways you should never had.", + "You dream of a family you never had, on a house you never knew.", + "You dream of traveling through an empty road under the moonlight, the only problem being that there are 2 moons on the sky, one blue and one green.", + "You dream of a ruined city, with crumbling buildings and foreign symbols.", + "You dream of a portal opening in the middle of nowhere. You feel a strange calling from within." + ] + }, { "type": "snippet", "category": "", diff --git a/data/mods/MMA/scenarios.json b/data/mods/MMA/scenarios.json new file mode 100644 index 0000000000000..ad7fd3a10dea2 --- /dev/null +++ b/data/mods/MMA/scenarios.json @@ -0,0 +1,8 @@ +[ + { + "copy-from": "portal_dependent", + "type": "scenario", + "extend": { "professions": [ "mma_battle_angel" ] }, + "id": "portal_dependent" + } +]