mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 19:47:22 +01:00
Migrate circuitboards, vending items, bio chips to new attack chain. (#32240)
* Migrate circuitboards, vending items, bio chips to new attack chain. * Give the GPS something it can understand.
This commit is contained in:
@@ -35,6 +35,7 @@
|
||||
|
||||
///the implant_fluff datum attached to this implant, purely cosmetic "lore" information
|
||||
var/datum/implant_fluff/implant_data = /datum/implant_fluff
|
||||
new_attack_chain = TRUE
|
||||
|
||||
/obj/item/bio_chip/Initialize(mapload)
|
||||
. = ..()
|
||||
@@ -156,7 +157,6 @@
|
||||
else
|
||||
return 0
|
||||
|
||||
|
||||
loc = source
|
||||
imp_in = source
|
||||
implanted = TRUE
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
var/build_path = null
|
||||
var/board_type = "computer"
|
||||
var/list/req_components = null
|
||||
new_attack_chain = TRUE
|
||||
|
||||
/obj/item/circuitboard/computer
|
||||
|
||||
|
||||
@@ -485,24 +485,27 @@
|
||||
contraband_enabled = !contraband_enabled
|
||||
playsound(src, 'sound/effects/pop.ogg', 50)
|
||||
|
||||
/obj/item/circuitboard/rdconsole/attackby__legacy__attackchain(obj/item/I, mob/user, params)
|
||||
if(istype(I, /obj/item/card/id) || istype(I, /obj/item/pda))
|
||||
if(allowed(user))
|
||||
user.visible_message(SPAN_NOTICE("[user] waves [user.p_their()] ID past [src]'s access protocol scanner."), SPAN_NOTICE("You swipe your ID past [src]'s access protocol scanner."))
|
||||
var/console_choice = tgui_input_list(user, "What do you want to configure the access to?", "Access Modification", access_types)
|
||||
if(!console_choice)
|
||||
return
|
||||
switch(console_choice)
|
||||
if("R&D Core")
|
||||
board_name = "RD Console"
|
||||
build_path = /obj/machinery/computer/rdconsole/core
|
||||
if("Public")
|
||||
board_name = "RD Console - Public"
|
||||
build_path = /obj/machinery/computer/rdconsole/public
|
||||
/obj/item/circuitboard/rdconsole/item_interaction(mob/living/user, obj/item/used, list/modifiers)
|
||||
if(!(istype(used, /obj/item/card/id) || istype(used, /obj/item/pda)))
|
||||
return ..()
|
||||
if(!allowed(user))
|
||||
to_chat(user, SPAN_WARNING("Access Denied."))
|
||||
return ITEM_INTERACT_COMPLETE
|
||||
user.visible_message(
|
||||
SPAN_NOTICE("[user] waves [used] past [src]'s access protocol scanner."),
|
||||
SPAN_NOTICE("You swipe [used] past [src]'s access protocol scanner.")
|
||||
)
|
||||
var/console_choice = tgui_input_list(user, "What do you want to configure the access to?", "Access Modification", access_types)
|
||||
if(!console_choice)
|
||||
return ITEM_INTERACT_COMPLETE
|
||||
switch(console_choice)
|
||||
if("R&D Core")
|
||||
board_name = "RD Console"
|
||||
build_path = /obj/machinery/computer/rdconsole/core
|
||||
if("Public")
|
||||
board_name = "RD Console - Public"
|
||||
build_path = /obj/machinery/computer/rdconsole/public
|
||||
|
||||
format_board_name()
|
||||
to_chat(user, SPAN_NOTICE("Access protocols set to [console_choice]."))
|
||||
else
|
||||
to_chat(user, SPAN_WARNING("Access Denied."))
|
||||
return
|
||||
return ..()
|
||||
format_board_name()
|
||||
to_chat(user, SPAN_NOTICE("Access protocols set to [console_choice]."))
|
||||
return ITEM_INTERACT_COMPLETE
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
var/list/products
|
||||
var/list/contraband
|
||||
var/list/premium
|
||||
new_attack_chain = TRUE
|
||||
|
||||
/obj/item/vending_refill/Initialize(mapload)
|
||||
. = ..()
|
||||
|
||||
Reference in New Issue
Block a user