Skip to content

Commit

Permalink
[MODULAR] Modularizes flashbang to bola code and configifies it (#3379)
Browse files Browse the repository at this point in the history
aaaa

Co-authored-by: nikothedude <[email protected]>
  • Loading branch information
Steals-The-PRs and nikothedude authored May 19, 2024
1 parent 6eb8dc0 commit 0d5b29a
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/nova/config_nova.txt
Original file line number Diff line number Diff line change
Expand Up @@ -149,3 +149,6 @@ ARRIVALS_WAIT 150

## Uncomment to completely disable the opt-in system, which is a system that forces objectives to only roll on individuals who consent to it.
#DISABLE_ANTAG_OPT_IN_PREFERENCES

## Uncomment to enable the replacing of flashbangs in secbelts with energy bolas
REPLACE_SECBELT_FLASHBANGS_WITH_BOLA
12 changes: 12 additions & 0 deletions modular_nova/modules/sec_haul/code/belts.dm
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)
2 changes: 2 additions & 0 deletions modular_nova/modules/sec_haul/code/sec_haul_config.dm
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
2 changes: 2 additions & 0 deletions tgstation.dme
Original file line number Diff line number Diff line change
Expand Up @@ -8165,6 +8165,8 @@
#include "modular_nova\modules\science_tools\research.dm"
#include "modular_nova\modules\science_tools\tool_designs.dm"
#include "modular_nova\modules\science_tools\tools.dm"
#include "modular_nova\modules\sec_haul\code\belts.dm"
#include "modular_nova\modules\sec_haul\code\sec_haul_config.dm"
#include "modular_nova\modules\sec_haul\code\corrections_officer\corrections_officer.dm"
#include "modular_nova\modules\sec_haul\code\corrections_officer\corrections_officer_equipment.dm"
#include "modular_nova\modules\sec_haul\code\corrections_officer\landmarks.dm"
Expand Down

0 comments on commit 0d5b29a

Please sign in to comment.