-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2c47a81
commit dd092e5
Showing
3 changed files
with
93 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
[ | ||
{ | ||
"type": "effect_type", | ||
"id": "effect_perk_grit_your_teeth_cooldown", | ||
"//": "No name or description to hide effect", | ||
"name": [ "" ], | ||
"desc": [ "" ], | ||
"rating": "bad" | ||
}, | ||
{ | ||
"type": "effect_on_condition", | ||
"id": "EOC_PERK_GRIT_YOUR_TEETH", | ||
"condition": { "not": { "u_has_effect": "effect_perk_grit_your_teeth_cooldown" } }, | ||
"effect": [ | ||
{ "math": [ "u_grit_your_teeth_pain_value", "=", "u_pain()" ] }, | ||
{ | ||
"u_add_effect": "effect_perk_grit_your_teeth_cooldown", | ||
"duration": { "math": [ "u_grit_your_teeth_pain_value * 60" ] } | ||
}, | ||
{ "run_eocs": "EOC_PERK_GRIT_YOUR_TEETH_2" } | ||
], | ||
"false_effect": [ { "u_message": "You need more time to collect yourself before you can grit your teeth again.", "type": "mixed" } ] | ||
}, | ||
{ | ||
"type": "effect_on_condition", | ||
"id": "EOC_PERK_GRIT_YOUR_TEETH_2", | ||
"condition": { "math": [ "u_grit_your_teeth_pain_value", ">=", "62" ] }, | ||
"effect": [ | ||
{ "math": [ "u_grit_your_teeth_pain_value_removed", "=", "u_pain() / 2" ] }, | ||
{ "math": [ "u_pain()", "-=", "u_grit_your_teeth_pain_value_removed" ] }, | ||
{ "queue_eocs": "EOC_PERK_GRIT_YOUR_TEETH_DEACTIVATE", "time_in_future": 180 } | ||
], | ||
"false_effect": [ | ||
{ | ||
"run_eocs": { | ||
"id": "EOC_PERK_GRIT_YOUR_TEETH_3", | ||
"condition": { "math": [ "u_grit_your_teeth_pain_value", ">=", "30" ] }, | ||
"effect": [ | ||
{ "math": [ "u_grit_your_teeth_pain_value_removed", "=", "30" ] }, | ||
{ "math": [ "u_pain()", "-=", "u_grit_your_teeth_pain_value_removed" ] }, | ||
{ "queue_eocs": "EOC_PERK_GRIT_YOUR_TEETH_DEACTIVATE", "time_in_future": 180 } | ||
], | ||
"false_effect": [ | ||
{ "math": [ "u_grit_your_teeth_pain_value_removed", "=", "u_pain()" ] }, | ||
{ "math": [ "u_pain()", "==", "0" ] }, | ||
Check failure on line 45 in data/mods/BombasticPerks/perkdata/grit_your_teeth.json GitHub Actions / Basic Build and Test (Clang 10, Ubuntu, Curses)
|
||
{ "queue_eocs": "EOC_PERK_GRIT_YOUR_TEETH_DEACTIVATE", "time_in_future": 180 } | ||
] | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "effect_on_condition", | ||
"id": "EOC_PERK_GRIT_YOUR_TEETH_DEACTIVATE", | ||
"condition": { "u_has_effect": "effect_perk_grit_your_teeth_cooldown" }, | ||
"effect": [ { "math": [ "u_pain()", "+=", "u_grit_your_teeth_pain_value_removed" ] } ] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters