[MIRROR] Modularises vending machines (#6050)
* Modularises vending machines * Update vending_items.dm
This commit is contained in:
committed by
Poojawa
parent
30e5e7a56a
commit
bd3d76b8d3
@@ -0,0 +1,29 @@
|
||||
/obj/machinery/vending/security
|
||||
name = "\improper SecTech"
|
||||
desc = "A security equipment vendor."
|
||||
product_ads = "Crack capitalist skulls!;Beat some heads in!;Don't forget - harm is good!;Your weapons are right here.;Handcuffs!;Freeze, scumbag!;Don't tase me bro!;Tase them, bro.;Why not have a donut?"
|
||||
icon_state = "sec"
|
||||
icon_deny = "sec-deny"
|
||||
req_access_txt = "1"
|
||||
products = list(/obj/item/restraints/handcuffs = 8,
|
||||
/obj/item/restraints/handcuffs/cable/zipties = 10,
|
||||
/obj/item/grenade/flashbang = 4,
|
||||
/obj/item/device/assembly/flash/handheld = 5,
|
||||
/obj/item/reagent_containers/food/snacks/donut = 12,
|
||||
/obj/item/storage/box/evidence = 6,
|
||||
/obj/item/device/flashlight/seclite = 4,
|
||||
/obj/item/restraints/legcuffs/bola/energy = 7)
|
||||
contraband = list(/obj/item/clothing/glasses/sunglasses = 2,
|
||||
/obj/item/storage/fancy/donut_box = 2)
|
||||
premium = list(/obj/item/coin/antagtoken = 1)
|
||||
armor = list("melee" = 100, "bullet" = 100, "laser" = 100, "energy" = 100, "bomb" = 0, "bio" = 0, "rad" = 0, "fire" = 100, "acid" = 50)
|
||||
resistance_flags = FIRE_PROOF
|
||||
|
||||
/obj/machinery/vending/security/pre_throw(obj/item/I)
|
||||
if(istype(I, /obj/item/grenade))
|
||||
var/obj/item/grenade/G = I
|
||||
G.preprime()
|
||||
else if(istype(I, /obj/item/device/flashlight))
|
||||
var/obj/item/device/flashlight/F = I
|
||||
F.on = TRUE
|
||||
F.update_brightness()
|
||||
Reference in New Issue
Block a user