-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MODULAR] Modularizes flashbang to bola code and configifies it (#3379)
aaaa Co-authored-by: nikothedude <[email protected]>
- Loading branch information
1 parent
6eb8dc0
commit 0d5b29a
Showing
4 changed files
with
19 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
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,12 @@ | ||
/obj/item/storage/belt/security/full/PopulateContents() | ||
. = ..() | ||
|
||
if (!CONFIG_GET(flag/replace_secbelt_flashbangs_with_bola)) | ||
return | ||
|
||
var/obj/item/grenade/flashbang/bang = locate(/obj/item/grenade/flashbang) in src | ||
if (!bang) | ||
return | ||
|
||
qdel(bang) | ||
new /obj/item/restraints/legcuffs/bola/energy(src) |
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,2 @@ | ||
/datum/config_entry/flag/replace_secbelt_flashbangs_with_bola | ||
default = TRUE |
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