Skip to content

Commit

Permalink
[Bombastic Perks] Add some new perks (CleverRaven#70481)
Browse files Browse the repository at this point in the history
* Initial commit

* Remove Active from easy sleeper
  • Loading branch information
Standing-Storm authored Dec 30, 2023
1 parent 4f28d96 commit ab02717
Show file tree
Hide file tree
Showing 4 changed files with 119 additions and 0 deletions.
16 changes: 16 additions & 0 deletions data/mods/BombasticPerks/perkdata/quick_recovery.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[
{
"type": "effect_on_condition",
"id": "EOC_PERK_QUICK_RECOVERY_INIT",
"eoc_type": "EVENT",
"required_event": "character_gains_effect",
"condition": {
"and": [
{ "u_has_trait": "perk_quick_recovery" },
{ "x_in_y_chance": { "x": 3, "y": 4 } },
{ "or": [ { "compare_string": [ "downed", { "context_val": "effect" } ] } ] }
]
},
"effect": [ { "u_lose_effect": "downed" } ]
}
]
26 changes: 26 additions & 0 deletions data/mods/BombasticPerks/perkdata/vengeful.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[
{
"type": "effect_type",
"id": "effect_perk_vengeful",
"rating": "good",
"int_dur_factor": "1 s",
"max_duration": "2 s",
"show_in_info": false
},
{
"type": "enchantment",
"id": "perk_ench_vengeful",
"name": { "str": "Vengeful" },
"description": "Oh, you aren't getting away with that.",
"condition": { "u_has_effect": "effect_perk_vengeful" },
"values": [ { "value": "MELEE_DAMAGE", "multiply": 0.15 }, { "value": "RANGED_DAMAGE", "multiply": 0.15 } ]
},
{
"type": "effect_on_condition",
"id": "EOC_PERK_VENGEFUL_TAKE_DAMAGE",
"eoc_type": "EVENT",
"required_event": "character_takes_damage",
"condition": { "u_has_trait": "perk_vengeful" },
"effect": [ { "u_add_effect": "effect_perk_vengeful", "duration": "2 seconds" } ]
}
]
51 changes: 51 additions & 0 deletions data/mods/BombasticPerks/perkmenu.json
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,24 @@
],
"topic": "TALK_PERK_MENU_SELECT"
},
{
"condition": { "not": { "u_has_trait": "perk_vengeful" } },
"text": "Gain [<trait_name:perk_vengeful>]",
"effect": [
{ "set_string_var": "<trait_name:perk_vengeful>", "target_var": { "context_val": "trait_name" } },
{
"set_string_var": "<trait_description:perk_vengeful>",
"target_var": { "context_val": "trait_description" }
},
{ "set_string_var": "perk_vengeful", "target_var": { "context_val": "trait_id" } },
{
"set_string_var": "Requires handguns 2",
"target_var": { "context_val": "trait_requirement_description" }
},
{ "set_condition": "perk_condition", "condition": { "math": [ "0", "==", "0" ] } }
],
"topic": "TALK_PERK_MENU_SELECT"
},
{
"condition": { "not": { "u_has_trait": "perk_tuck_and_roll" } },
"text": "Gain [<trait_name:perk_tuck_and_roll>]",
Expand Down Expand Up @@ -415,6 +433,24 @@
],
"topic": "TALK_PERK_MENU_SELECT"
},
{
"condition": { "not": { "u_has_trait": "perk_quick_recovery" } },
"text": "Gain [<trait_name:perk_quick_recovery>]",
"effect": [
{ "set_string_var": "<trait_name:perk_quick_recovery>", "target_var": { "context_val": "trait_name" } },
{
"set_string_var": "<trait_description:perk_quick_recovery>",
"target_var": { "context_val": "trait_description" }
},
{ "set_string_var": "perk_quick_recovery", "target_var": { "context_val": "trait_id" } },
{
"set_string_var": "Requires dexterity 10",
"target_var": { "context_val": "trait_requirement_description" }
},
{ "set_condition": "perk_condition", "condition": { "math": [ "u_val('dexterity_base')", ">=", "10" ] } }
],
"topic": "TALK_PERK_MENU_SELECT"
},
{
"condition": { "not": { "u_has_trait": "perk_hobbyist" } },
"text": "Gain [<trait_name:perk_hobbyist>]",
Expand Down Expand Up @@ -493,6 +529,21 @@
],
"topic": "TALK_PERK_MENU_SELECT"
},
{
"condition": { "not": { "u_has_trait": "perk_sleepy" } },
"text": "Gain [<trait_name:perk_sleepy>]",
"effect": [
{ "set_string_var": "<trait_name:perk_sleepy>", "target_var": { "context_val": "trait_name" } },
{
"set_string_var": "<trait_description:perk_sleepy>",
"target_var": { "context_val": "trait_description" }
},
{ "set_string_var": "perk_sleepy", "target_var": { "context_val": "trait_id" } },
{ "set_string_var": "No Requirements", "target_var": { "context_val": "trait_requirement_description" } },
{ "set_condition": "perk_condition", "condition": { "math": [ "0", "==", "0" ] } }
],
"topic": "TALK_PERK_MENU_SELECT"
},
{
"condition": { "not": { "u_has_trait": "perk_chainsmoker" } },
"text": "Gain [<trait_name:perk_chainsmoker>]",
Expand Down
26 changes: 26 additions & 0 deletions data/mods/BombasticPerks/perks.json
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,15 @@
"category": [ "perk" ],
"obtain_cost_multiplier": 0.75
},
{
"type": "mutation",
"id": "perk_vengeful",
"name": { "str": "Vengeful" },
"points": 0,
"description": "Oh, they're not getting away with THAT.\n\nYou do +15% damage for two turns after you're hit.",
"category": [ "perk" ],
"enchantments": [ "perk_ench_vengeful" ]
},
{
"type": "mutation",
"id": "perk_tuck_and_roll",
Expand Down Expand Up @@ -215,6 +224,23 @@
"category": [ "perk" ],
"enchantments": [ { "condition": "ALWAYS", "values": [ { "value": "SPEED", "multiply": 0.03 } ] } ]
},
{
"type": "mutation",
"id": "perk_quick_recovery",
"name": { "str": "Quick Recovery" },
"points": 0,
"description": "You get knocked down, but you get up again. There is a 75% chance when you are downed that you will stand up again immediately.",
"category": [ "perk" ]
},
{
"type": "mutation",
"id": "perk_sleepy",
"name": { "str": "Easy Sleeper" },
"points": 0,
"description": "You've always been able to fall asleep within a few minutes of closing your eyes, no matter what else is going on around you. You have a much easier time falling asleep.'",
"category": [ "perk" ],
"enchantments": [ { "condition": "ALWAYS", "values": [ { "value": "SLEEPY", "add": 15 } ] } ]
},
{
"type": "mutation",
"id": "perk_hobbyist",
Expand Down

0 comments on commit ab02717

Please sign in to comment.