Skip to content

Commit

Permalink
[Bombastic Perks] Sword and sorcery-esque perks (#75136)
Browse files Browse the repository at this point in the history
* Initial commit

* Add In a Crimson Mist

* Remove category
  • Loading branch information
Standing-Storm authored Jul 27, 2024
1 parent 3faf4c8 commit f3bcc4d
Show file tree
Hide file tree
Showing 6 changed files with 241 additions and 0 deletions.
10 changes: 10 additions & 0 deletions data/mods/BombasticPerks/perkdata/eagle_eyes.json
Original file line number Diff line number Diff line change
@@ -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" ]
}
]
14 changes: 14 additions & 0 deletions data/mods/BombasticPerks/perkdata/mighty_thews.json
Original file line number Diff line number Diff line change
@@ -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" ]
}
]
14 changes: 14 additions & 0 deletions data/mods/BombasticPerks/perkdata/pantherish_grace.json
Original file line number Diff line number Diff line change
@@ -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" ]
}
]
72 changes: 72 additions & 0 deletions data/mods/BombasticPerks/perkdata/rage_against_the_unnatural.json
Original file line number Diff line number Diff line change
@@ -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 ] }
}
]
85 changes: 85 additions & 0 deletions data/mods/BombasticPerks/perkmenu.json
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,72 @@
],
"topic": "TALK_PERK_MENU_SELECT"
},
{
"condition": { "not": { "u_has_trait": "perk_mighty_thews" } },
"text": "Gain [<trait_name:perk_mighty_thews>]",
"effect": [
{ "set_string_var": "<trait_name:perk_mighty_thews>", "target_var": { "context_val": "trait_name" } },
{
"set_string_var": "<trait_description:perk_mighty_thews>",
"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 [<trait_name:perk_pantherish_grace>]",
"effect": [
{ "set_string_var": "<trait_name:perk_mighty_thews>", "target_var": { "context_val": "trait_name" } },
{
"set_string_var": "<trait_description:perk_pantherish_grace>",
"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 [<trait_name:perk_eagle_eyes>]",
"effect": [
{ "set_string_var": "<trait_name:perk_eagle_eyes>", "target_var": { "context_val": "trait_name" } },
{
"set_string_var": "<trait_description:perk_eagle_eyes>",
"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 [<trait_name:perk_holdout_pocket>]",
Expand Down Expand Up @@ -1238,6 +1304,25 @@
],
"topic": "TALK_PERK_MENU_SELECT_PLAYSTYLE"
},
{
"condition": { "not": { "u_has_trait": "perk_rage_against_unnatural" } },
"text": "Gain [<trait_name:perk_rage_against_unnatural>]",
"effect": [
{ "set_string_var": "<trait_name:perk_rage_against_unnatural>", "target_var": { "context_val": "trait_name" } },
{
"set_string_var": "<trait_description:perk_rage_against_unnatural>",
"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 [<trait_name:perk_nocturnal>]",
Expand Down
46 changes: 46 additions & 0 deletions data/mods/BombasticPerks/perks.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit f3bcc4d

Please sign in to comment.