Skip to content

Commit

Permalink
cable tie fix and legcuff availables
Browse files Browse the repository at this point in the history
  • Loading branch information
realforest2001 committed Mar 10, 2024
1 parent b07163d commit 6767262
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
1 change: 1 addition & 0 deletions code/game/machinery/vending/vending_types.dm
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@
products = list(
/obj/item/restraint/handcuffs = 8,
/obj/item/restraint/handcuffs/zip = 10,
/obj/item/restraint/legcuffs = 3,
/obj/item/explosive/grenade/flashbang = 4,
/obj/item/weapon/gun/energy/taser = 4,
/obj/item/reagent_container/spray/pepper = 4,
Expand Down
4 changes: 2 additions & 2 deletions code/game/objects/items.dm
Original file line number Diff line number Diff line change
Expand Up @@ -664,13 +664,13 @@ cases. Override_icon_state should be a list.*/
if(WEAR_HANDCUFFS)
if(human.handcuffed)
return FALSE
if(!istype(src, /obj/item/restraint/handcuffs))
if(!istype(src, /obj/item/restraint))
return FALSE
return TRUE
if(WEAR_LEGCUFFS)
if(human.legcuffed)
return FALSE
if(!istype(src, /obj/item/restraint/legcuffs))
if(!istype(src, /obj/item/restraint))
return FALSE
return TRUE
if(WEAR_IN_ACCESSORY)
Expand Down
14 changes: 14 additions & 0 deletions code/game/objects/items/storage/boxes.dm
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,20 @@
new /obj/item/restraint/handcuffs(src)


/obj/item/storage/box/legcuffs
name = "box of legcuffs"
desc = "A box full of legcuffs."
icon_state = "handcuff"

/obj/item/storage/box/legcuffs/fill_preset_inventory()
new /obj/item/restraint/legcuffs(src)
new /obj/item/restraint/legcuffs(src)
new /obj/item/restraint/legcuffs(src)
new /obj/item/restraint/legcuffs(src)
new /obj/item/restraint/legcuffs(src)
new /obj/item/restraint/legcuffs(src)
new /obj/item/restraint/legcuffs(src)

/obj/item/storage/box/zipcuffs
name = "box of zip cuffs"
desc = "A box full of zip cuffs."
Expand Down

0 comments on commit 6767262

Please sign in to comment.