Files
Aurora.3/code/modules/detectivework/microscope/slides.dm
Casper3667 c700d6b140 Minor forensic additions (#12842)
* makes forensic equipment only be put in bags on help intent

* Updates description of some forensic equipment

* changelog typo fix

* updates swab kits

* Adds a suggestion

Co-authored-by: Wowzewow (Wezzy) <42310821+alsoandanswer@users.noreply.github.com>

* Update code/modules/detectivework/tools/sample_kits.dm

Co-authored-by: TGW <mc-casper@hotmail.dk>
Co-authored-by: Wowzewow (Wezzy) <42310821+alsoandanswer@users.noreply.github.com>
Co-authored-by: Werner <1331699+Arrow768@users.noreply.github.com>
2021-12-20 21:35:23 +01:00

44 lines
1.3 KiB
Plaintext

/obj/item/forensics/slide
name = "microscope slide"
desc = "A pair of thin glass panes used in the examination of samples beneath a microscope."
desc_info = "Used with fibers and GSR swab tests to examine the samples in the microscope. To empty them, use in hand."
icon_state = "slide"
var/obj/item/forensics/swab/has_swab
var/obj/item/sample/fibers/has_sample
/obj/item/forensics/slide/attackby(var/obj/item/W, var/mob/user)
if(has_swab || has_sample)
to_chat(user, SPAN_WARNING("There is already a sample in the slide."))
return
if(istype (W, /obj/item/forensics/swab))
has_swab = W
else if(istype(W, /obj/item/sample/fibers))
has_sample = W
else
to_chat(user, SPAN_WARNING("You don't think this will fit."))
return
to_chat(user, SPAN_NOTICE("You insert the sample into the slide."))
user.unEquip(W)
W.forceMove(src)
update_icon()
/obj/item/forensics/slide/attack_self(var/mob/user)
if(has_swab || has_sample)
to_chat(user, SPAN_NOTICE("You remove \the sample from \the [src]."))
if(has_swab)
user.put_in_hands(has_swab)
has_swab = null
if(has_sample)
user.put_in_hands(has_sample)
has_sample = null
update_icon()
return
/obj/item/forensics/slide/update_icon()
if(!has_swab && !has_sample)
icon_state = "slide"
else if(has_swab)
icon_state = "slideswab"
else if(has_sample)
icon_state = "slidefiber"