Converts some borg equipment to radial menus (#20044)

* Borg stuff radial menus; I hate borg hypos

* sneaky

* borghypo can be it's own thing

* forgot ya

* ryan's review
This commit is contained in:
GDN
2023-01-20 18:59:35 -05:00
committed by GitHub
parent 208c110b77
commit 311cdae455
4 changed files with 88 additions and 83 deletions
@@ -495,7 +495,7 @@
/obj/item/instrument/piano_synth,
/obj/item/healthanalyzer/advanced,
/obj/item/reagent_scanner/adv,
/obj/item/rsf/cyborg,
/obj/item/rsf,
/obj/item/reagent_containers/dropper/cyborg,
/obj/item/lighter/zippo,
/obj/item/storage/bag/tray/cyborg,
@@ -507,8 +507,6 @@
/obj/item/reagent_containers/food/drinks/cans/beer/sleepy_beer
)
/obj/item/rsf/cyborg
matter = 30
// This is a special type of beer given when emagged, one sip and the target falls asleep.
/obj/item/reagent_containers/food/drinks/cans/beer/sleepy_beer
+15 -2
View File
@@ -364,7 +364,20 @@
/mob/living/silicon/proc/toggle_sensor_mode()
var/sensor_type = input("Please select sensor type.", "Sensor Integration", null) in list("Security", "Medical","Diagnostic","Disable")
to_chat(src, "<span class='notice'>Please select sensor type.</span>")
var/static/list/sensor_choices = list("Security" = image(icon = 'icons/obj/clothing/glasses.dmi', icon_state = "securityhud"),
"Medical" = image(icon = 'icons/obj/clothing/glasses.dmi', icon_state = "healthhud"),
"Diagnostic" = image(icon = 'icons/obj/clothing/glasses.dmi', icon_state = "diagnostichud"),
"None" = image(icon = 'icons/mob/screen_gen.dmi', icon_state = "x"))
var/user_loc
if(isAI(src))
var/mob/living/silicon/ai/eyeloc = src
user_loc = eyeloc.eyeobj
else
user_loc = src
var/sensor_type = show_radial_menu(src, user_loc, sensor_choices)
if(!sensor_type)
return
remove_med_sec_hud()
switch(sensor_type)
if("Security")
@@ -376,7 +389,7 @@
if("Diagnostic")
add_diag_hud()
to_chat(src, "<span class='notice'>Robotics diagnostic overlay enabled.</span>")
if("Disable")
if("None")
to_chat(src, "Sensor augmentations disabled.")
/mob/living/silicon/adjustToxLoss(amount)
@@ -14,10 +14,8 @@
var/charge_tick = 0
var/recharge_time = 5 //Time it takes for shots to recharge (in seconds)
var/bypass_protection = 0 //If the hypospray can go through armor or thick material
var/list/datum/reagents/reagent_list = list()
var/list/reagent_ids = list("salglu_solution", "epinephrine", "spaceacillin", "charcoal", "hydrocodone")
//var/list/reagent_ids = list("salbutamol", "silver_sulfadiazine", "styptic_powder", "charcoal", "epinephrine", "spaceacillin", "hydrocodone")
var/list/reagent_ids = list("salglu_solution", "epinephrine", "hydrocodone", "spaceacillin", "charcoal")
/obj/item/reagent_containers/borghypo/surgeon
reagent_ids = list("styptic_powder", "epinephrine", "salbutamol")
@@ -104,7 +102,6 @@
mode++
if(mode > reagent_list.len)
mode = 1
charge_tick = 0 //Prevents wasted chems/cell charge if you're cycling through modes.
var/datum/reagent/R = GLOB.chemical_reagents_list[reagent_ids[mode]]
to_chat(user, "<span class='notice'>Synthesizer is now producing '[R.name]'.</span>")