-
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.
Merge pull request #70085 from John-Candlebury/afs-medical
Aftershock combat drugs
- Loading branch information
Showing
10 changed files
with
177 additions
and
5 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,38 @@ | ||
[ | ||
{ | ||
"//": "This ensures the effect dissapears if the player gets hit in combat or the antiseptic wears off", | ||
"type": "effect_on_condition", | ||
"id": "EOC_AFS_MEDIGEL_REMOVE", | ||
"eoc_type": "EVENT", | ||
"required_event": "character_loses_effect", | ||
"condition": { | ||
"and": [ | ||
{ "compare_string": [ "disinfected", { "context_val": "effect" } ] }, | ||
{ "u_has_effect": "afs_medigel_eff", "bodypart": { "context_val": "bodypart" } } | ||
] | ||
}, | ||
"effect": [ { "u_lose_effect": "afs_medigel_eff" } ] | ||
}, | ||
{ | ||
"type": "effect_on_condition", | ||
"id": "EOC_AFS_MEDIGEL_ADD", | ||
"eoc_type": "EVENT", | ||
"required_event": "character_gains_effect", | ||
"condition": { | ||
"and": [ { "u_has_effect": "afs_medigel_eff_trigger" }, { "compare_string": [ "disinfected", { "context_val": "effect" } ] } ] | ||
}, | ||
"effect": [ | ||
{ "set_string_var": { "context_val": "bodypart" }, "target_var": { "u_val": "heal_part" } }, | ||
{ "u_add_effect": "afs_medigel_eff", "duration": "3 days", "target_part": { "u_val": "heal_part" } } | ||
] | ||
}, | ||
{ | ||
"type": "effect_on_condition", | ||
"//": "The instant use effects of stimpacks", | ||
"id": "EOC_AFS_STIMPACK", | ||
"eoc_type": "EVENT", | ||
"required_event": "character_consumes_item", | ||
"condition": { "compare_string": [ "afs_stimpack", { "context_val": "itype" } ] }, | ||
"effect": [ { "math": [ "u_pain()", "-=", "80" ] }, { "math": [ "u_val('stamina')", "+=", "2500" ] } ] | ||
} | ||
] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[ | ||
{ | ||
"id": "afs_ifak", | ||
"type": "item_group", | ||
"subtype": "collection", | ||
"container-item": "ifak_pouch", | ||
"items": [ | ||
{ "item": "medical_tape", "charges": 20 }, | ||
{ "item": "tourniquet_upper" }, | ||
{ "group": "quikclot_bag_plastic_5" }, | ||
{ "item": "bandages", "count": 9 }, | ||
{ "item": "medical_gauze", "count": 3 }, | ||
{ "item": "afs_medigel" }, | ||
{ "item": "afs_painkiller" }, | ||
{ "item": "afs_stimpack" }, | ||
{ "item": "syringe" }, | ||
{ "item": "gloves_medical" }, | ||
{ "item": "scissors_medical" } | ||
] | ||
} | ||
] |
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
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
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
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