Skip to content

Commit

Permalink
[XE] Add cryptid hunting + two cryptids (#77199)
Browse files Browse the repository at this point in the history
* Add the cryptids and their abilities

* First bunch of fixes

* first part of the cryptid mapgen + more fixes

* Finalize the mapgen

* fixes for 19H-Man's main ability

* Add the cryptid hunter profession + their cryptid-finding maps

* Fix the typo

* Linting

* Fix the error that has shown up in the tests

* Update data/mods/Xedra_Evolved/missions.json

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

* Fixing the mission error, attempt 2

* Update data/mods/Xedra_Evolved/missions.json

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

* Fix the missions again

* Update data/mods/Xedra_Evolved/missions.json

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

* add double spaces

* remove some double spaces

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Maleclypse <[email protected]>
  • Loading branch information
3 people authored Nov 1, 2024
1 parent 1e022d2 commit e854fb9
Show file tree
Hide file tree
Showing 16 changed files with 1,143 additions and 0 deletions.
36 changes: 36 additions & 0 deletions data/mods/Xedra_Evolved/effects/effects.json
Original file line number Diff line number Diff line change
Expand Up @@ -2469,6 +2469,42 @@
],
"flags": [ "EFFECT_LIMB_SCORE_MOD" ]
},
{
"type": "effect_type",
"id": "effect_sleep_shield_check",
"name": [ "Promises of undisrupted sleep" ],
"desc": [ "I wish you a good night." ],
"apply_message": "You could swear that this man wished you a good night.",
"remove_message": "",
"rating": "good",
"max_duration": "3 seconds",
"show_intensity": false,
"max_intensity": 1
},
{
"type": "effect_type",
"id": "effect_sleep_shield",
"name": [ "Undisrupted sleep" ],
"desc": [ "Sleep well. Nothing but you can disrupt your sleep." ],
"apply_message": "As you fall asleep, you feel safer than you ever were.",
"remove_message": "As you wake up, the feeling of safety quickly fades away.",
"rating": "good",
"max_duration": "3 days",
"show_intensity": false,
"max_intensity": 1,
"flags": [ "INVISIBLE", "NO_SCENT", "PAIN_IMMUNE", "BLIND", "DEAF", "LEVITATION" ],
"enchantments": [
{
"values": [
{ "value": "SLEEPY", "add": 9999 },
{ "value": "CLIMATE_CONTROL_HEAT", "add": 500 },
{ "value": "CLIMATE_CONTROL_CHILL", "add": 500 },
{ "value": "FORCEFIELD", "add": 1 }
]
}
],
"removes_effects": [ "grabbed", "bleed" ]
},
{
"type": "effect_type",
"id": "effect_lilin_aoe_daze",
Expand Down
11 changes: 11 additions & 0 deletions data/mods/Xedra_Evolved/enchantments/armor.json
Original file line number Diff line number Diff line change
Expand Up @@ -159,5 +159,16 @@
{ "value": "CLIMATE_CONTROL_CHILL", "add": 10 },
{ "value": "BONUS_DODGE", "add": 1 }
]
},
{
"id": "ench_sevenoclock_coat",
"type": "enchantment",
"has": "WORN",
"condition": { "or": [ { "u_has_effect": "lying_down" }, { "u_has_effect": "sleep" } ] },
"values": [
{ "value": "CLIMATE_CONTROL_HEAT", "add": 1000 },
{ "value": "CLIMATE_CONTROL_CHILL", "add": 1000 },
{ "value": "SLEEPY", "add": 9999 }
]
}
]
54 changes: 54 additions & 0 deletions data/mods/Xedra_Evolved/eocs/misc_eoc.json
Original file line number Diff line number Diff line change
Expand Up @@ -277,5 +277,59 @@
"false_eocs": [ ]
}
]
},
{
"type": "effect_on_condition",
"id": "EOC_SLEEP_NEAR_SEVENOCLOCK",
"eoc_type": "EVENT",
"required_event": "character_attempt_to_fall_asleep",
"condition": { "u_has_effect": "effect_sleep_shield_check" },
"effect": [ { "run_eocs": [ "EOC_SLEEP_SHIELD_SEVENOCLOCK", "EOC_MINIMUM_TIME_ASLEEP" ] } ]
},
{
"type": "effect_on_condition",
"id": "EOC_MINIMUM_TIME_ASLEEP",
"condition": { "math": [ "u_val('sleepiness')", "<=", "100" ] },
"effect": [ { "math": [ "u_val('sleepiness')", "=", "100" ] } ]
},
{
"type": "effect_on_condition",
"id": "EOC_SLEEP_SHIELD_SEVENOCLOCK",
"condition": { "not": { "math": [ "u_val('pos_z')", "==", "10" ] } },
"effect": [
{
"run_eocs": {
"id": "EOC_SLEEP_SHIELD_SEVENOCLOCK_2",
"effect": [
{ "u_add_effect": "sleep", "duration": "8 hours" },
{ "u_add_effect": "effect_hedge_no_nightmares", "duration": "8 hours" },
{ "u_add_effect": "effect_sleep_shield", "duration": "72 hours" },
{ "u_location_variable": { "u_val": "SLEEP_SHIELD_location" }, "min_radius": 0, "max_radius": 0 },
{
"u_location_variable": { "u_val": "SLEEP_SHIELD_destination" },
"min_radius": 0,
"max_radius": 0,
"z_adjust": 10,
"z_override": true
},
{ "u_teleport": { "u_val": "SLEEP_SHIELD_destination" }, "force": true }
]
}
}
],
"false_effect": [
{
"u_message": "Distrustful of the shenanigans you used to bring him at such a high altitude, the Man of the Nineteenth Hour refuses to shield you!",
"type": "bad"
}
]
},
{
"type": "effect_on_condition",
"id": "EOC_WAKE_UP_FROM_SLEEP_SHIELD",
"eoc_type": "EVENT",
"required_event": "character_wakes_up",
"condition": { "u_has_effect": "effect_sleep_shield" },
"effect": [ { "u_lose_effect": "effect_sleep_shield" }, { "u_teleport": { "u_val": "SLEEP_SHIELD_location" }, "force": true } ]
}
]
62 changes: 62 additions & 0 deletions data/mods/Xedra_Evolved/furniture_and_terrain/furniture.json
Original file line number Diff line number Diff line change
Expand Up @@ -274,5 +274,67 @@
"coverage": 85,
"flags": [ "MINEABLE", "NOITEM", "TRANSPARENT", "BLOCKSDOOR", "PERMEABLE" ],
"bash": { "str_min": 20, "str_max": 50, "sound_fail": "smash!", "items": [ { "item": "rock", "count": [ 20, 100 ] } ] }
},
{
"type": "furniture",
"id": "f_sevenoclock_track",
"name": "Bloody footsteps",
"description": "A trail of old footsteps, still visible despite the blood and rain. Examine it to track its source.",
"symbol": "l",
"required_str": -1,
"move_cost_mod": 0,
"color": "brown",
"coverage": 0,
"flags": [ "NOITEM", "TRANSPARENT", "PERMEABLE" ],
"examine_action": {
"type": "effect_on_condition",
"effect_on_conditions": [
{
"id": "EOC_SEVENOCLOCK_ALREADY_TRACKED",
"condition": { "math": [ "u_tracked_sevenoclock", "==", "1" ] },
"effect": [ { "u_message": "You already know where these footprints lead." } ]
},
{
"id": "EOC_SEVENOCLOCK_TRACK",
"condition": { "math": [ "u_tracked_sevenoclock", "==", "0" ] },
"effect": [
{ "u_message": "You carefully examine the footprints, determining where they lead." },
{ "assign_mission": "MISSION_SEVENOCLOCK" },
{ "math": [ "u_tracked_sevenoclock", "=", "1" ] }
]
}
]
}
},
{
"type": "furniture",
"id": "f_deathworm_track",
"name": "Suspicious hole",
"description": "A hole in the ground, bearing acid burns. Examine it to track its source.",
"symbol": "o",
"required_str": -1,
"move_cost_mod": 0,
"color": "brown",
"coverage": 0,
"flags": [ "NOITEM", "TRANSPARENT", "PERMEABLE" ],
"examine_action": {
"type": "effect_on_condition",
"effect_on_conditions": [
{
"id": "EOC_DEATHWORM_ALREADY_TRACKED",
"condition": { "math": [ "u_tracked_deathworm", "==", "1" ] },
"effect": [ { "u_message": "You already know where this hole leads." } ]
},
{
"id": "EOC_DEATHWORM_TRACK",
"condition": { "math": [ "u_tracked_deathworm", "==", "0" ] },
"effect": [
{ "u_message": "You carefully examine the hole, determining where it leads." },
{ "assign_mission": "MISSION_DEATHWORM" },
{ "math": [ "u_tracked_deathworm", "=", "1" ] }
]
}
]
}
}
]
16 changes: 16 additions & 0 deletions data/mods/Xedra_Evolved/itemgroups/monster_drops.json
Original file line number Diff line number Diff line change
Expand Up @@ -516,5 +516,21 @@
{ "drop": "triffid_heart_chunk", "type": "flesh", "mass_ratio": 0.2 },
{ "drop": "veggy", "type": "offal", "mass_ratio": 0.3 }
]
},
{
"id": "sevenoclock_death_drops",
"type": "item_group",
"subtype": "collection",
"entries": [
{ "item": "hat_fur" },
{ "item": "sevenoclock_coat" },
{ "item": "swag_bag" },
{ "item": "cane" },
{ "item": "bone_human", "count": [ 3, 15 ] },
{ "item": "human_meat_scrap", "count": [ 10, 40 ] },
{ "item": "pants", "variant": "pants_black" },
{ "item": "dress_shoes" },
{ "item": "union_suit" }
]
}
]
53 changes: 53 additions & 0 deletions data/mods/Xedra_Evolved/items/armor/armor.json
Original file line number Diff line number Diff line change
Expand Up @@ -1321,5 +1321,58 @@
],
"melee_damage": { "bash": 4 },
"relic_data": { "passive_effects": [ { "id": "ench_verdant_boots" } ] }
},
{
"id": "sevenoclock_coat",
"type": "ARMOR",
"name": { "str": "coat of the timely sleeper" },
"description": "A old-fashioned padded coat with deep pockets. As you touch it, you feel that this coat could allow you to fall asleep whenever and wherever you want.",
"weight": "1340 g",
"volume": "6750 ml",
"price": "14000 USD",
"price_postapoc": "70 USD 50 cent",
"material": [ "cotton" ],
"symbol": "[",
"looks_like": "coat_rain",
"color": "light_red",
"armor": [
{ "covers": [ "torso" ], "coverage": 100, "encumbrance": [ 8, 17 ] },
{ "covers": [ "arm_l", "arm_r" ], "coverage": 100, "encumbrance": [ 8, 11 ] }
],
"pocket_data": [
{
"pocket_type": "CONTAINER",
"max_contains_volume": "1250 ml",
"max_contains_weight": "3 kg",
"max_item_length": "21 cm",
"moves": 80
},
{
"pocket_type": "CONTAINER",
"max_contains_volume": "1250 ml",
"max_contains_weight": "3 kg",
"max_item_length": "21 cm",
"moves": 80
},
{
"pocket_type": "CONTAINER",
"max_contains_volume": "900 ml",
"max_contains_weight": "1 kg",
"max_item_length": "13 cm",
"moves": 120
},
{
"pocket_type": "CONTAINER",
"max_contains_volume": "900 ml",
"max_contains_weight": "1 kg",
"max_item_length": "13 cm",
"moves": 120
}
],
"warmth": 70,
"material_thickness": 2,
"environmental_protection": 1,
"flags": [ "VARSIZE", "POCKETS", "COLLAR", "ALARMCLOCK", "OUTER" ],
"relic_data": { "passive_effects": [ { "id": "ench_sevenoclock_coat" } ] }
}
]
101 changes: 101 additions & 0 deletions data/mods/Xedra_Evolved/items/book_lore.json
Original file line number Diff line number Diff line change
Expand Up @@ -161,5 +161,106 @@
{ "u_roll_remainder": [ "bait_abyssal_hunger" ], "type": "recipe" },
{ "u_add_var": "you_know_vampire_mentor_recipes", "value": "yes" }
]
},
{
"id": "deathworm_map",
"//": "The maps and notes are intended to share the same name, so the player won't know what they'll hunt before the game starts.",
"type": "GENERIC",
"category": "books",
"name": "map to the cryptid",
"description": "The map on which you wrote the cryptid's location.",
"symbol": ",",
"color": "white",
"weight": "30 g",
"volume": "10 ml",
"use_action": [
{
"type": "effect_on_conditions",
"menu_text": "Read",
"description": "Read the map.",
"effect_on_conditions": [
{
"id": "EOC_DEATHWORM_MAP_ALREADY_TRACKED",
"condition": { "math": [ "u_tracked_deathworm", "==", "1" ] },
"effect": [ { "u_message": "You already know where this map leads." } ]
},
{
"id": "EOC_DEATHWORM_MAP_TRACK",
"condition": { "math": [ "u_tracked_deathworm", "==", "0" ] },
"effect": [
{ "u_message": "You reference your map with your location, determining the path to take to find the cryptid." },
{ "assign_mission": "MISSION_DEATHWORM" },
{ "math": [ "u_tracked_deathworm", "=", "1" ] }
]
}
]
}
]
},
{
"type": "GENERIC",
"id": "deathworm_note",
"//": "The notes are intended to be basic but telling some info, as they are the closest to a consensus reached on creatures defined by being nigh-impossible to find.",
"category": "books",
"symbol": ",",
"color": "white",
"name": { "str": "notes about the cryptid" },
"description": "The notes you have taken about the cryptid you're hunting.\nAlso known as the mongolian death worm, the Olgoi-khorkhoi is a massive acid-spewing burrowing worm. Finding acid-resistant gear will prove useful to survive the encounter. According to most of the credible stories you've read, the lethal poison covering its skin is nothing but exaggerations.",
"price": "0 cent",
"price_postapoc": "0 cent",
"material": [ "paper" ],
"flags": [ "TRADER_AVOID" ],
"weight": "30 g",
"volume": "10 ml"
},
{
"id": "sevenoclock_map",
"//": "The maps and notes are intended to share the same name, so the player won't know what they'll hunt before the game starts.",
"type": "GENERIC",
"category": "books",
"name": "map to the cryptid",
"description": "The map on which you wrote the cryptid's location.",
"symbol": ",",
"color": "white",
"weight": "30 g",
"volume": "10 ml",
"use_action": [
{
"type": "effect_on_conditions",
"menu_text": "Read",
"description": "Read the map.",
"effect_on_conditions": [
{
"id": "EOC_SEVENOCLOCK_MAP_ALREADY_TRACKED",
"condition": { "math": [ "u_tracked_sevenoclock", "==", "1" ] },
"effect": [ { "u_message": "You already know where this map leads." } ]
},
{
"id": "EOC_SEVENOCLOCK_MAP_TRACK",
"condition": { "math": [ "u_tracked_sevenoclock", "==", "0" ] },
"effect": [
{ "u_message": "You reference your map with your location, determining the path to take to find the cryptid." },
{ "assign_mission": "MISSION_SEVENOCLOCK" },
{ "math": [ "u_tracked_sevenoclock", "=", "1" ] }
]
}
]
}
]
},
{
"type": "GENERIC",
"id": "sevenoclock_note",
"category": "books",
"symbol": ",",
"color": "white",
"name": { "str": "notes about the cryptid" },
"description": "The notes you have taken about the cryptid you're hunting.\nThe man of the Nineteenth Hour is peaceful for most of the day but becomes incredibly violent against those who are still awake when he enters his active phase. Some stories tell that his presence shields those who are sleeping against everything that could disturb their sleep.",
"price": "0 cent",
"price_postapoc": "0 cent",
"material": [ "paper" ],
"flags": [ "TRADER_AVOID" ],
"weight": "30 g",
"volume": "10 ml"
}
]
Loading

0 comments on commit e854fb9

Please sign in to comment.