diff --git a/code/modules/nifsoft/nif_softshop.dm b/code/modules/nifsoft/nif_softshop.dm index f2fdc4aaae..0cb307fb30 100644 --- a/code/modules/nifsoft/nif_softshop.dm +++ b/code/modules/nifsoft/nif_softshop.dm @@ -19,6 +19,10 @@ /obj/machinery/vending/nifsoft_shop/Initialize() . = ..() + + if(wires) + qdel(wires) + wires = new /datum/wires/vending/no_contraband(src) //These wires can't be hacked for contraband. entopic = new(aholder = src, aicon = icon, aicon_state = "beacon") /obj/machinery/vending/nifsoft_shop/Destroy() @@ -70,9 +74,9 @@ list(premium, CAT_COIN)) for(var/current_list in all_products) - var/category = current_list[2] + var/category = current_list[CAT_HIDDEN] - for(var/entry in current_list[1]) + for(var/entry in current_list[CAT_NORMAL]) var/datum/nifsoft/NS = entry var/applies_to = initial(NS.applies_to) var/context = "" @@ -220,3 +224,18 @@ /obj/machinery/vending/nifsoft_shop/throw_item() //TODO: Make it throw disks at people with random software? That might be fun. EVEN THE ILLEGAL ONES? ;o return 0 + +/datum/wires/vending/no_contraband + +/datum/wires/vending/no_contraband/UpdatePulsed(index) //Can't hack for contraband, need emag. + if(index != VENDING_WIRE_CONTRABAND) + ..(index) + else + return + +/obj/machinery/vending/nifsoft_shop/emag_act(remaining_charges, mob/user) //Yeees, YEEES! Give me that black market tech. + if(!emagged) + emagged = 1 + categories |= CAT_HIDDEN + to_chat(user, "You short out [src]'s access lock & stock restrictions.") + return 1