From f3bcc4da70c2281c5f4dc817bc5a2a6294745c4c Mon Sep 17 00:00:00 2001 From: Standing-Storm <120433252+Standing-Storm@users.noreply.github.com> Date: Fri, 26 Jul 2024 23:07:23 -0500 Subject: [PATCH] [Bombastic Perks] Sword and sorcery-esque perks (#75136) * Initial commit * Add In a Crimson Mist * Remove category --- .../BombasticPerks/perkdata/eagle_eyes.json | 10 +++ .../BombasticPerks/perkdata/mighty_thews.json | 14 +++ .../perkdata/pantherish_grace.json | 14 +++ .../perkdata/rage_against_the_unnatural.json | 72 ++++++++++++++++ data/mods/BombasticPerks/perkmenu.json | 85 +++++++++++++++++++ data/mods/BombasticPerks/perks.json | 46 ++++++++++ 6 files changed, 241 insertions(+) create mode 100644 data/mods/BombasticPerks/perkdata/eagle_eyes.json create mode 100644 data/mods/BombasticPerks/perkdata/mighty_thews.json create mode 100644 data/mods/BombasticPerks/perkdata/pantherish_grace.json create mode 100644 data/mods/BombasticPerks/perkdata/rage_against_the_unnatural.json diff --git a/data/mods/BombasticPerks/perkdata/eagle_eyes.json b/data/mods/BombasticPerks/perkdata/eagle_eyes.json new file mode 100644 index 0000000000000..6bd4bb03d184b --- /dev/null +++ b/data/mods/BombasticPerks/perkdata/eagle_eyes.json @@ -0,0 +1,10 @@ +[ + { + "type": "effect_type", + "id": "effect_perk_eagle_eyes", + "name": [ "" ], + "desc": [ "" ], + "limb_score_mods": [ { "limb_score": "vision", "modifier": 1.25 }, { "limb_score": "night_vis", "modifier": 1.25 } ], + "flags": [ "EFFECT_LIMB_SCORE_MOD" ] + } +] diff --git a/data/mods/BombasticPerks/perkdata/mighty_thews.json b/data/mods/BombasticPerks/perkdata/mighty_thews.json new file mode 100644 index 0000000000000..db295d142cee7 --- /dev/null +++ b/data/mods/BombasticPerks/perkdata/mighty_thews.json @@ -0,0 +1,14 @@ +[ + { + "type": "effect_type", + "id": "effect_perk_mighty_thews", + "name": [ "" ], + "desc": [ "" ], + "limb_score_mods": [ + { "limb_score": "lift", "modifier": 1.05 }, + { "limb_score": "manip", "modifier": 1.05 }, + { "limb_score": "grip", "modifier": 1.05 } + ], + "flags": [ "EFFECT_LIMB_SCORE_MOD" ] + } +] diff --git a/data/mods/BombasticPerks/perkdata/pantherish_grace.json b/data/mods/BombasticPerks/perkdata/pantherish_grace.json new file mode 100644 index 0000000000000..c82dd702a7d2c --- /dev/null +++ b/data/mods/BombasticPerks/perkdata/pantherish_grace.json @@ -0,0 +1,14 @@ +[ + { + "type": "effect_type", + "id": "effect_perk_pantherish_grace", + "name": [ "" ], + "desc": [ "" ], + "limb_score_mods": [ + { "limb_score": "reaction", "modifier": 1.05 }, + { "limb_score": "balance", "modifier": 1.05 }, + { "limb_score": "footing", "modifier": 1.05 } + ], + "flags": [ "EFFECT_LIMB_SCORE_MOD" ] + } +] diff --git a/data/mods/BombasticPerks/perkdata/rage_against_the_unnatural.json b/data/mods/BombasticPerks/perkdata/rage_against_the_unnatural.json new file mode 100644 index 0000000000000..b93d57c335a41 --- /dev/null +++ b/data/mods/BombasticPerks/perkdata/rage_against_the_unnatural.json @@ -0,0 +1,72 @@ +[ + { + "type": "effect_on_condition", + "id": "EOC_perk_rage_against_the_unnatural_nether_list", + "condition": { + "math": [ + "u_monsters_nearby('mon_albino_penguin', 'mon_amigara_horror', 'mon_blank', 'mon_blood_sacrifice', 'mon_breather', 'mon_breather_hub', 'mon_shrapnel_swarm', 'mon_structural_spur', 'mon_void_spider', 'mon_void_spider_maw', 'mon_void_spider_limb', 'mon_void_spider_spiderling', 'mon_void_spider_spiderling_skewered', 'mon_darkman', 'mon_dog_thing', 'mon_flaming_eye', 'mon_flying_polyp', 'mon_star_vampire', 'mon_star_vampire_coiling', 'mon_unseen_hunter', 'mon_gozu', 'mon_gracke', 'mon_headless_dog_thing', 'mon_tindalos', 'mon_hound_tindalos', 'mon_hound_tindalos_afterimage', 'mon_human_snail', 'mon_hunting_horror', 'mon_kreck', 'mon_shadow', 'mon_shadow_snake', 'mon_shoggoth', 'mon_thing', 'mon_twisted_body', 'mon_yugg', 'mon_vortex', 'mon_shifting_mass', 'mon_impossible_shape', 'mon_absence', 'mon_giant_appendage', 'mon_flatlander', 'mon_memory', 'mon_swarm_structure', 'mon_twisting_blade', 'mon_archunk_weak', 'mon_archunk_medium', 'mon_archunk_strong', 'mon_pale_reflection', 'mon_twisted_reflection', 'mon_dark_reflection', 'mon_better_half', 'mon_XEDRA_officer', 'mon_XEDRA_soldier', 'mon_tainted_shadow', 'mon_hallucinator', 'mon_guilt', 'mon_sloth', 'mon_hanging_roper', 'mon_carrion_grub', 'mon_nether_spearfisher', 'mon_nether_leech', 'mon_nether_fish', 'mon_nether_unviable_butterfly', 'mon_nether_unviable_root', 'mon_nether_unviable_stomper', 'mon_nether_unviable_bug', 'mon_nether_unviable_chunk', 'radius': 1, 'attitude': 'both')", + ">", + "0" + ] + }, + "effect": [ ] + }, + { + "type": "effect_on_condition", + "id": "EOC_perk_rage_against_the_unnatural_checker_monster", + "eoc_type": "EVENT", + "required_event": "character_melee_attacks_monster", + "condition": { + "and": [ + { "u_has_trait": "perk_rage_against_unnatural" }, + { "test_eoc": "EOC_perk_rage_against_the_unnatural_nether_list" }, + { "not": { "npc_has_species": "NETHER" } } + ] + }, + "effect": [ { "u_add_effect": "effect_perk_rage_against_the_unnatural_penalty", "duration": { "math": [ "3 + rand(9)" ] } } ] + }, + { + "type": "effect_on_condition", + "id": "EOC_perk_rage_against_the_unnatural_checker_character", + "eoc_type": "EVENT", + "required_event": "character_melee_attacks_character", + "condition": { + "and": [ { "u_has_trait": "perk_rage_against_unnatural" }, { "test_eoc": "EOC_perk_rage_against_the_unnatural_nether_list" } ] + }, + "effect": [ { "u_add_effect": "effect_perk_rage_against_the_unnatural_penalty", "duration": { "math": [ "3 + rand(9)" ] } } ] + }, + { + "type": "effect_on_condition", + "id": "EOC_perk_rage_against_the_unnatural_checker_monster_ranged", + "eoc_type": "EVENT", + "required_event": "character_ranged_attacks_monster", + "condition": { + "and": [ + { "u_has_trait": "perk_rage_against_unnatural" }, + { "test_eoc": "EOC_perk_rage_against_the_unnatural_nether_list" }, + { "not": { "npc_has_species": "NETHER" } } + ] + }, + "effect": [ { "u_add_effect": "effect_perk_rage_against_the_unnatural_penalty", "duration": { "math": [ "3 + rand(9)" ] } } ] + }, + { + "type": "effect_on_condition", + "id": "EOC_perk_rage_against_the_unnatural_checker_character_ranged", + "eoc_type": "EVENT", + "required_event": "character_ranged_attacks_character", + "condition": { + "and": [ { "u_has_trait": "perk_rage_against_unnatural" }, { "test_eoc": "EOC_perk_rage_against_the_unnatural_nether_list" } ] + }, + "effect": [ { "u_add_effect": "effect_perk_rage_against_the_unnatural_penalty", "duration": { "math": [ "3 + rand(9)" ] } } ] + }, + { + "type": "effect_type", + "id": "effect_perk_rage_against_the_unnatural_penalty", + "name": [ "Red Rage" ], + "desc": [ "You are filled with a furious rage that is sending your swings wide." ], + "apply_message": "Crimson clouds your vision as a rage fills you at the presence of these hell-spawn. You must slay them! It is they who should feel the sting of your blade, not the rabble!", + "max_duration": "1 m", + "rating": "bad", + "base_mods": { "hit_mod": [ -5 ], "dodge_mod": [ -2 ] } + } +] diff --git a/data/mods/BombasticPerks/perkmenu.json b/data/mods/BombasticPerks/perkmenu.json index 7bafc02d45b09..224bdcde79caf 100644 --- a/data/mods/BombasticPerks/perkmenu.json +++ b/data/mods/BombasticPerks/perkmenu.json @@ -174,6 +174,72 @@ ], "topic": "TALK_PERK_MENU_SELECT" }, + { + "condition": { "not": { "u_has_trait": "perk_mighty_thews" } }, + "text": "Gain []", + "effect": [ + { "set_string_var": "", "target_var": { "context_val": "trait_name" } }, + { + "set_string_var": "", + "target_var": { "context_val": "trait_description" } + }, + { "set_string_var": "perk_mighty_thews", "target_var": { "context_val": "trait_id" } }, + { + "set_string_var": "Requires strength 13", + "target_var": { "context_val": "trait_requirement_description" }, + "i18n": true + }, + { + "set_condition": "perk_condition", + "condition": { "math": [ "u_val('strength_base') + u_val('strength_bonus')", ">=", "13" ] } + } + ], + "topic": "TALK_PERK_MENU_SELECT" + }, + { + "condition": { "not": { "u_has_trait": "perk_pantherish_grace" } }, + "text": "Gain []", + "effect": [ + { "set_string_var": "", "target_var": { "context_val": "trait_name" } }, + { + "set_string_var": "", + "target_var": { "context_val": "trait_description" } + }, + { "set_string_var": "perk_pantherish_grace", "target_var": { "context_val": "trait_id" } }, + { + "set_string_var": "Requires dexerity 13", + "target_var": { "context_val": "trait_requirement_description" }, + "i18n": true + }, + { + "set_condition": "perk_condition", + "condition": { "math": [ "u_val('dexterity_base') + u_val('dexterity_bonus')", ">=", "13" ] } + } + ], + "topic": "TALK_PERK_MENU_SELECT" + }, + { + "condition": { "not": { "u_has_trait": "perk_eagle_eyes" } }, + "text": "Gain []", + "effect": [ + { "set_string_var": "", "target_var": { "context_val": "trait_name" } }, + { + "set_string_var": "", + "target_var": { "context_val": "trait_description" } + }, + { "set_string_var": "perk_eagle_eyes", "target_var": { "context_val": "trait_id" } }, + { + "set_string_var": "Requires preception 13", + "target_var": { "context_val": "trait_requirement_description" }, + "i18n": true + }, + { + "set_condition": "perk_condition", + "condition": { "math": [ "u_val('perception_base') + u_val('perception_bonus')", ">=", "13" ] } + } + ], + "topic": "TALK_PERK_MENU_SELECT" + }, { "condition": { "not": { "u_has_trait": "perk_holdout_pocket" } }, "text": "Gain []", @@ -1238,6 +1304,25 @@ ], "topic": "TALK_PERK_MENU_SELECT_PLAYSTYLE" }, + { + "condition": { "not": { "u_has_trait": "perk_rage_against_unnatural" } }, + "text": "Gain []", + "effect": [ + { "set_string_var": "", "target_var": { "context_val": "trait_name" } }, + { + "set_string_var": "", + "target_var": { "context_val": "trait_description" } + }, + { "set_string_var": "perk_rage_against_unnatural", "target_var": { "context_val": "trait_id" } }, + { + "set_string_var": "No Requirements", + "target_var": { "context_val": "trait_requirement_description" }, + "i18n": true + }, + { "set_condition": "perk_condition", "condition": { "math": [ "0", "==", "0" ] } } + ], + "topic": "TALK_PERK_MENU_SELECT_PLAYSTYLE" + }, { "condition": { "not": { "u_has_trait": "perk_nocturnal" } }, "text": "Gain []", diff --git a/data/mods/BombasticPerks/perks.json b/data/mods/BombasticPerks/perks.json index 7a754e7401984..8178694faf5e8 100644 --- a/data/mods/BombasticPerks/perks.json +++ b/data/mods/BombasticPerks/perks.json @@ -105,6 +105,33 @@ "activated_eocs": [ "EOC_perk_sight_beyond_sight_ON" ], "deactivated_eocs": [ "EOC_perk_sight_beyond_sight_ON" ] }, + { + "type": "mutation", + "id": "perk_mighty_thews", + "name": { "str": "Mighty Thews" }, + "points": 0, + "purifiable": false, + "description": "Your rippling muscles enable you to split the skulls of your enemies. +5% to Lifting, Grip, and Manipulator limb scores.", + "enchantments": [ { "condition": "ALWAYS", "ench_effects": [ { "effect": "effect_perk_mighty_thews", "intensity": 1 } ] } ] + }, + { + "type": "mutation", + "id": "perk_pantherish_grace", + "name": { "str": "Pantherish Grace" }, + "points": 0, + "purifiable": false, + "description": "Your movements bring to mind a multitude of cat-based metaphors. +5% to Balance, Footing, and Reaction limb scores.", + "enchantments": [ { "condition": "ALWAYS", "ench_effects": [ { "effect": "effect_perk_pantherish_grace", "intensity": 1 } ] } ] + }, + { + "type": "mutation", + "id": "perk_eagle_eyes", + "name": { "str": "Eagle Eyes" }, + "points": 0, + "purifiable": false, + "description": "Your sharp gazes misses little. +25% to Vision and Night Vision limb scores.", + "enchantments": [ { "condition": "ALWAYS", "ench_effects": [ { "effect": "effect_perk_eagle_eyes", "intensity": 1 } ] } ] + }, { "type": "mutation", "id": "perk_holdout_pocket", @@ -777,6 +804,25 @@ "description": "You've always been greatly affected by the phases of the moon. During a full moon, you gain a +3 bonus to all stats. During a waxing moon, you gain a +1 bonus to all stats, and during a new moon, you suffer a -2 penalty to all stats.", "category": [ "perk" ] }, + { + "type": "mutation", + "id": "perk_rage_against_unnatural", + "name": { "str": "In a Crimson Mist" }, + "points": 0, + "purifiable": false, + "description": "Far from being terrified or even unnerved by the creatures of the Nether, their presence fills you with atavistic killing fury. You do +35% melee damage when in melee combat with Nether beings and take 15% less damage from all sources, but if you attack any other target when there is a Nether-beast to slay, you suffer a large penalty to your accuracy.", + "enchantments": [ + { + "condition": { + "and": [ + { "test_eoc": "EOC_perk_rage_against_the_unnatural_nether_list" }, + { "not": { "u_has_effect": "effect_perk_rage_against_the_unnatural_penalty" } } + ] + }, + "values": [ { "value": "MELEE_DAMAGE", "multiply": 0.35 }, { "value": "ARMOR_ALL", "multiply": -0.15 } ] + } + ] + }, { "type": "mutation", "id": "perk_nocturnal",