diff --git a/data/mods/BombasticPerks/perkdata/quick_recovery.json b/data/mods/BombasticPerks/perkdata/quick_recovery.json new file mode 100644 index 0000000000000..4278f890745c6 --- /dev/null +++ b/data/mods/BombasticPerks/perkdata/quick_recovery.json @@ -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" } ] + } +] diff --git a/data/mods/BombasticPerks/perkdata/vengeful.json b/data/mods/BombasticPerks/perkdata/vengeful.json new file mode 100644 index 0000000000000..9cb93bc2aad30 --- /dev/null +++ b/data/mods/BombasticPerks/perkdata/vengeful.json @@ -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" } ] + } +] diff --git a/data/mods/BombasticPerks/perkmenu.json b/data/mods/BombasticPerks/perkmenu.json index 056c43a47b896..3528d796580b0 100644 --- a/data/mods/BombasticPerks/perkmenu.json +++ b/data/mods/BombasticPerks/perkmenu.json @@ -355,6 +355,24 @@ ], "topic": "TALK_PERK_MENU_SELECT" }, + { + "condition": { "not": { "u_has_trait": "perk_vengeful" } }, + "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_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 []", @@ -415,6 +433,24 @@ ], "topic": "TALK_PERK_MENU_SELECT" }, + { + "condition": { "not": { "u_has_trait": "perk_quick_recovery" } }, + "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_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 []", @@ -493,6 +529,21 @@ ], "topic": "TALK_PERK_MENU_SELECT" }, + { + "condition": { "not": { "u_has_trait": "perk_sleepy" } }, + "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_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 []", diff --git a/data/mods/BombasticPerks/perks.json b/data/mods/BombasticPerks/perks.json index 34b8d33ee31f1..fe1697901031b 100644 --- a/data/mods/BombasticPerks/perks.json +++ b/data/mods/BombasticPerks/perks.json @@ -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", @@ -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",