Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Standing-Storm committed Feb 22, 2024
1 parent cd892ca commit 917a26e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 16 deletions.
24 changes: 12 additions & 12 deletions data/mods/BombasticPerks/perkmenu.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"dynamic_line": "Lifestyle Perks:\nLevel <u_val:current_level>.\n<u_val:num_perks> perk points to spend.\nCurrent EXP: <u_val:available_exp>.\nEXP to next level: <u_val:exp_to_perk>.",
"responses": [
{
"condition": { "not": { "u_has_trait": "perk_STR_UP" } },
"condition": { "and": [ { "not": { "u_has_trait": "perk_STR_UP" } }, { "not": { "u_has_trait": "perk_STR_UP_2" } } ] },
"text": "Gain [<trait_name:perk_STR_UP>]",
"effect": [
{ "set_string_var": "<trait_name:perk_STR_UP>", "target_var": { "context_val": "trait_name" } },
Expand All @@ -19,12 +19,12 @@
"target_var": { "context_val": "trait_requirement_description" },
"i18n": true
},
{ "set_condition": "perk_condition", "condition": { "math": [ "0", "==", "0" ] } }
{ "set_condition": "perk_condition", "condition": { "not": { "u_has_trait": "perk_STR_UP_2" } } }
],
"topic": "TALK_PERK_MENU_SELECT"
},
{
"condition": { "not": { "u_has_trait": "perk_STR_UP_2" } },
"condition": { "and": [ { "u_has_trait": "perk_STR_UP" }, { "not": { "u_has_trait": "perk_STR_UP_2" } } ] },
"text": "Gain [<trait_name:perk_STR_UP_2>]",
"effect": [
{ "set_string_var": "<trait_name:perk_STR_UP_2>", "target_var": { "context_val": "trait_name" } },
Expand All @@ -42,7 +42,7 @@
"topic": "TALK_PERK_MENU_SELECT"
},
{
"condition": { "not": { "u_has_trait": "perk_DEX_UP" } },
"condition": { "and": [ { "not": { "u_has_trait": "perk_DEX_UP" } }, { "not": { "u_has_trait": "perk_DEX_UP_2" } } ] },
"text": "Gain [<trait_name:perk_DEX_UP>]",
"effect": [
{ "set_string_var": "<trait_name:perk_DEX_UP>", "target_var": { "context_val": "trait_name" } },
Expand All @@ -56,12 +56,12 @@
"target_var": { "context_val": "trait_requirement_description" },
"i18n": true
},
{ "set_condition": "perk_condition", "condition": { "math": [ "0", "==", "0" ] } }
{ "set_condition": "perk_condition", "condition": { "not": { "u_has_trait": "perk_DEX_UP_2" } } }
],
"topic": "TALK_PERK_MENU_SELECT"
},
{
"condition": { "not": { "u_has_trait": "perk_DEX_UP_2" } },
"condition": { "and": [ { "u_has_trait": "perk_DEX_UP" }, { "not": { "u_has_trait": "perk_DEX_UP_2" } } ] },
"text": "Gain [<trait_name:perk_DEX_UP_2>]",
"effect": [
{ "set_string_var": "<trait_name:perk_DEX_UP_2>", "target_var": { "context_val": "trait_name" } },
Expand All @@ -79,7 +79,7 @@
"topic": "TALK_PERK_MENU_SELECT"
},
{
"condition": { "not": { "u_has_trait": "perk_INT_UP" } },
"condition": { "and": [ { "not": { "u_has_trait": "perk_INT_UP" } }, { "not": { "u_has_trait": "perk_INT_UP_2" } } ] },
"text": "Gain [<trait_name:perk_INT_UP>]",
"effect": [
{ "set_string_var": "<trait_name:perk_INT_UP>", "target_var": { "context_val": "trait_name" } },
Expand All @@ -93,12 +93,12 @@
"target_var": { "context_val": "trait_requirement_description" },
"i18n": true
},
{ "set_condition": "perk_condition", "condition": { "math": [ "0", "==", "0" ] } }
{ "set_condition": "perk_condition", "condition": { "not": { "u_has_trait": "perk_INT_UP_2" } } }
],
"topic": "TALK_PERK_MENU_SELECT"
},
{
"condition": { "not": { "u_has_trait": "perk_INT_UP_2" } },
"condition": { "and": [ { "u_has_trait": "perk_INT_UP" }, { "not": { "u_has_trait": "perk_INT_UP_2" } } ] },
"text": "Gain [<trait_name:perk_INT_UP_2>]",
"effect": [
{ "set_string_var": "<trait_name:perk_INT_UP_2>", "target_var": { "context_val": "trait_name" } },
Expand All @@ -116,7 +116,7 @@
"topic": "TALK_PERK_MENU_SELECT"
},
{
"condition": { "not": { "u_has_trait": "perk_PER_UP" } },
"condition": { "and": [ { "not": { "u_has_trait": "perk_PER_UP" } }, { "not": { "u_has_trait": "perk_PER_UP_2" } } ] },
"text": "Gain [<trait_name:perk_PER_UP>]",
"effect": [
{ "set_string_var": "<trait_name:perk_PER_UP>", "target_var": { "context_val": "trait_name" } },
Expand All @@ -130,12 +130,12 @@
"target_var": { "context_val": "trait_requirement_description" },
"i18n": true
},
{ "set_condition": "perk_condition", "condition": { "math": [ "0", "==", "0" ] } }
{ "set_condition": "perk_condition", "condition": { "not": { "u_has_trait": "perk_PER_UP_2" } } }
],
"topic": "TALK_PERK_MENU_SELECT"
},
{
"condition": { "not": { "u_has_trait": "perk_PER_UP_2" } },
"condition": { "and": [ { "u_has_trait": "perk_PER_UP" }, { "not": { "u_has_trait": "perk_PER_UP_2" } } ] },
"text": "Gain [<trait_name:perk_PER_UP_2>]",
"effect": [
{ "set_string_var": "<trait_name:perk_PER_UP_2>", "target_var": { "context_val": "trait_name" } },
Expand Down
12 changes: 8 additions & 4 deletions data/mods/BombasticPerks/perks.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@
"type": "mutation",
"id": "perk_STR_UP_2",
"name": { "str": "Even Stronger" },
"points": 2,
"points": 0,
"description": "You HAVE been working out. +2 Strength.",
"prereqs": [ "perk_STR_UP" ],
"category": [ "perk" ],
"enchantments": [ { "condition": "ALWAYS", "values": [ { "value": "STRENGTH", "add": 2 } ] } ]
},
Expand All @@ -46,8 +47,9 @@
"type": "mutation",
"id": "perk_DEX_UP_2",
"name": { "str": "Even Faster" },
"points": 2,
"points": 0,
"description": "You HAVE been doing cardio. +2 Dexterity.",
"prereqs": [ "perk_DEX_UP" ],
"category": [ "perk" ],
"enchantments": [ { "condition": "ALWAYS", "values": [ { "value": "DEXTERITY", "add": 2 } ] } ]
},
Expand All @@ -65,8 +67,9 @@
"type": "mutation",
"id": "perk_INT_UP_2",
"name": { "str": "Even Smarter" },
"points": 2,
"points": 0,
"description": "You HAVE been reading. +2 Intelligence.",
"prereqs": [ "perk_INT_UP" ],
"category": [ "perk" ],
"enchantments": [ { "condition": "ALWAYS", "values": [ { "value": "INTELLIGENCE", "add": 2 } ] } ]
},
Expand All @@ -84,8 +87,9 @@
"type": "mutation",
"id": "perk_PER_UP_2",
"name": { "str": "Even Sharper" },
"points": 2,
"points": 0,
"description": "You HAVE been staring out into the middle distance. +2 Perception.",
"prereqs": [ "perk_PER_UP" ],
"category": [ "perk" ],
"enchantments": [ { "condition": "ALWAYS", "values": [ { "value": "PERCEPTION", "add": 2 } ] } ]
},
Expand Down

0 comments on commit 917a26e

Please sign in to comment.