Adds the adminspawn debug outfit (#22223)

* debug outfit

* slip

* fix this

* review

* lewc review

* refactors the huds to be "not shit"
This commit is contained in:
Contrabang
2023-09-19 16:28:04 -04:00
committed by GitHub
parent 1fcf41e300
commit cedb419059
12 changed files with 346 additions and 37 deletions
+18 -10
View File
@@ -5,21 +5,29 @@
origin_tech = "magnets=3;biotech=2"
prescription_upgradable = TRUE
/// The visual icons granted by wearing these glasses.
var/HUDType = null
var/hud_types = null
/// List of things added to examine text, like security or medical records.
var/list/examine_extensions = null
/obj/item/clothing/glasses/hud/Initialize(mapload)
. = ..()
if(!islist(hud_types) && hud_types)
hud_types = list(hud_types)
/obj/item/clothing/glasses/hud/equipped(mob/living/carbon/human/user, slot)
..()
if(HUDType && slot == slot_glasses)
var/datum/atom_hud/H = GLOB.huds[HUDType]
if(slot != slot_glasses)
return
for(var/new_hud in hud_types)
var/datum/atom_hud/H = GLOB.huds[new_hud]
H.add_hud_to(user)
/obj/item/clothing/glasses/hud/dropped(mob/living/carbon/human/user)
..()
if(HUDType && istype(user) && user.glasses == src)
var/datum/atom_hud/H = GLOB.huds[HUDType]
if(user.glasses != src)
return
for(var/new_hud in hud_types)
var/datum/atom_hud/H = GLOB.huds[new_hud]
H.remove_hud_from(user)
/obj/item/clothing/glasses/hud/emp_act(severity)
@@ -32,7 +40,7 @@
desc = "A heads-up display that scans the humans in view and provides accurate data about their health status."
icon_state = "healthhud"
origin_tech = "magnets=3;biotech=2"
HUDType = DATA_HUD_MEDICAL_ADVANCED
hud_types = DATA_HUD_MEDICAL_ADVANCED
examine_extensions = list(EXAMINE_HUD_MEDICAL)
sprite_sheets = list(
@@ -64,7 +72,7 @@
desc = "A heads-up display capable of analyzing the integrity and status of robotics and exosuits."
icon_state = "diagnostichud"
origin_tech = "magnets=2;engineering=2"
HUDType = DATA_HUD_DIAGNOSTIC_BASIC
hud_types = DATA_HUD_DIAGNOSTIC_BASIC
sprite_sheets = list(
"Vox" = 'icons/mob/clothing/species/vox/eyes.dmi',
@@ -96,7 +104,7 @@
icon_state = "securityhud"
origin_tech = "magnets=3;combat=2"
var/global/list/jobs[0]
HUDType = DATA_HUD_SECURITY_ADVANCED
hud_types = DATA_HUD_SECURITY_ADVANCED
examine_extensions = list(EXAMINE_HUD_SECURITY_READ, EXAMINE_HUD_SECURITY_WRITE)
sprite_sheets = list(
@@ -150,7 +158,7 @@
name = "hydroponic HUD"
desc = "A heads-up display capable of analyzing the health and status of plants growing in hydro trays and soil."
icon_state = "hydroponichud"
HUDType = DATA_HUD_HYDROPONIC
hud_types = DATA_HUD_HYDROPONIC
sprite_sheets = list(
"Vox" = 'icons/mob/clothing/species/vox/eyes.dmi',
@@ -207,7 +215,7 @@
desc = "A heads-up display capable of showing the employment history records of NT crew members."
icon_state = "skill"
item_state = "glasses"
HUDType = DATA_HUD_SECURITY_BASIC
hud_types = DATA_HUD_SECURITY_BASIC
examine_extensions = list(EXAMINE_HUD_SKILLS)
sprite_sheets = list(
"Drask" = 'icons/mob/clothing/species/drask/eyes.dmi',
+8
View File
@@ -422,7 +422,15 @@
/obj/item/mod/module/bikehorn,
/obj/item/mod/module/rad_protection,
/obj/item/mod/module/injector,
/obj/item/mod/module/magboot/advanced,
/obj/item/mod/module/jetpack/advanced,
/obj/item/mod/module/stealth/ninja,
/obj/item/mod/module/noslip
)
default_pins = list(
/obj/item/mod/module/bikehorn,
)
activation_step_time = 0.1 SECONDS // coders are cooler than admins
/obj/item/mod/control/pre_equipped/administrative
theme = /datum/mod_theme/administrative
@@ -17,6 +17,7 @@
amount_per_transfer_from_this = 5
volume = 250
possible_transfer_amounts = null
var/delay = CLICK_CD_RANGE * 2
/obj/item/reagent_containers/spray/afterattack(atom/A, mob/user)
if(isstorage(A) || istype(A, /obj/structure/table) || istype(A, /obj/structure/rack) || istype(A, /obj/structure/closet) \
@@ -47,7 +48,7 @@
INVOKE_ASYNC(src, PROC_REF(spray), A)
playsound(loc, 'sound/effects/spray2.ogg', 50, 1, -6)
user.changeNext_move(CLICK_CD_RANGE*2)
user.changeNext_move(delay)
user.newtonian_move(get_dir(A, user))
var/attack_log_type = ATKLOG_ALMOSTALL
-11
View File
@@ -174,17 +174,6 @@
// this one can automatically retry its steps, too!
ADD_TRAIT(src, TRAIT_ADVANCED_SURGICAL, ROUNDSTART_TRAIT)
/obj/item/scalpel/laser/manager/debug
name = "debug IMS"
desc = "A wonder of modern medicine. This tool functions as any other sort of surgery tool, and finishes in only a fraction of the time. Hey, how'd you get your hands on this, anyway?"
toolspeed = 0.01
/obj/item/scalpel/laser/manager/debug/attack_self(mob/user)
. = ..()
toolspeed = toolspeed == 0.5 ? 0.01 : 0.5
to_chat(user, "[src] is now set to toolspeed [toolspeed]")
playsound(src, 'sound/effects/pop.ogg', 50, 0) //Change the mode
/obj/item/circular_saw
name = "circular saw"
desc = "For heavy duty cutting."