Skip to content

Commit 4176eaf

Browse files
[ Bombastic Perks ] Speedy Dex Perk (#82379)
* Speedy Dex Perk * Update data/mods/BombasticPerks/perks.json Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Apply suggestions from code review * Update data/mods/BombasticPerks/perks.json Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 67d02e6 commit 4176eaf

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

data/mods/BombasticPerks/perkmenu.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1657,6 +1657,25 @@
16571657
],
16581658
"topic": "TALK_PERK_MENU_SELECT_PLAYSTYLE"
16591659
},
1660+
{
1661+
"condition": { "not": { "u_has_trait": "perk_dexterous_speed" } },
1662+
"text": "Gain [<trait_name:perk_dexterous_speed>]",
1663+
"effect": [
1664+
{ "set_string_var": "<trait_name:perk_dexterous_speed>", "target_var": { "context_val": "trait_name" } },
1665+
{
1666+
"set_string_var": "<trait_description:perk_dexterous_speed>",
1667+
"target_var": { "context_val": "trait_description" }
1668+
},
1669+
{ "set_string_var": "perk_dexterous_speed", "target_var": { "context_val": "trait_id" } },
1670+
{
1671+
"set_string_var": "No Requirements",
1672+
"target_var": { "context_val": "trait_requirement_description" },
1673+
"i18n": true
1674+
},
1675+
{ "set_condition": "perk_condition", "condition": { "math": [ "0 == 0" ] } }
1676+
],
1677+
"topic": "TALK_PERK_MENU_SELECT_PLAYSTYLE"
1678+
},
16601679
{ "text": "Playstyle Perks: Stormwrought", "topic": "TALK_PERK_MENU_PLAYSTYLE_STORMWROUGHT" },
16611680
{ "text": "Lifestyle Perks", "topic": "TALK_PERK_MENU_MAIN" },
16621681
{ "text": "Settings", "topic": "TALK_PERK_MENU_CONFIG" },

data/mods/BombasticPerks/perks.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1179,6 +1179,26 @@
11791179
"activated_is_setup": false,
11801180
"activated_eocs": [ "EOC_forge_blood" ]
11811181
},
1182+
{
1183+
"type": "mutation",
1184+
"id": "perk_dexterous_speed",
1185+
"name": { "str": "Dexterous Speed" },
1186+
"points": 0,
1187+
"purifiable": false,
1188+
"valid": false,
1189+
"description": "You've found that you can move just a little bit quicker the more dexterous you are. Unfortunately, this applies comes at a loss to your max carry weight. Gain 2 speed for every point of DEX away from 8 and lose 4 kg of carry weight.",
1190+
"category": [ "perk" ],
1191+
"enchantments": [
1192+
{
1193+
"condition": "ALWAYS",
1194+
"values": [ { "value": "SPEED", "add": { "math": [ "max( 0, u_val('dexterity') - 8 ) * 2" ] } } ]
1195+
},
1196+
{
1197+
"condition": "ALWAYS",
1198+
"values": [ { "value": "CARRY_WEIGHT", "add": { "math": [ "min( 0, 8 - u_val('dexterity') ) * 4000" ] } } ]
1199+
}
1200+
]
1201+
},
11821202
{
11831203
"type": "mutation",
11841204
"id": "perk_portal_storm_mutator_bird",

0 commit comments

Comments
 (0)