mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
Tries to add more helpful information when examining a spy bug from real up close.
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
/obj/item/device/spy_bug
|
/obj/item/device/spy_bug
|
||||||
name = "tiny device"
|
name = "bug"
|
||||||
desc = "It looks like a tiny camera, microphone, and transmission device in a happy union. Also mass-fabricated."
|
desc = "" // Nothing to see here
|
||||||
icon = 'icons/obj/weapons.dmi'
|
icon = 'icons/obj/weapons.dmi'
|
||||||
icon_state = "eshield0"
|
icon_state = "eshield0"
|
||||||
item_state = "nothing"
|
item_state = "nothing"
|
||||||
@@ -23,9 +23,22 @@
|
|||||||
radio = new(src)
|
radio = new(src)
|
||||||
camera = new(src)
|
camera = new(src)
|
||||||
|
|
||||||
|
/obj/item/device/spy_bug/examine(mob/user)
|
||||||
|
. = ..(user, 0)
|
||||||
|
if(.)
|
||||||
|
user << "It's a tiny camera, microphone, and transmission device in a happy union."
|
||||||
|
user << "Needs to be both configured and brought in contact with monitor device to be fully functional."
|
||||||
|
|
||||||
/obj/item/device/spy_bug/attack_self(mob/user)
|
/obj/item/device/spy_bug/attack_self(mob/user)
|
||||||
radio.attack_self(user)
|
radio.attack_self(user)
|
||||||
|
|
||||||
|
/obj/item/device/spy_bug/attackby(obj/W as obj, mob/living/user as mob)
|
||||||
|
if(istype(W, /obj/item/device/spy_monitor))
|
||||||
|
var/obj/item/device/spy_monitor/SM = W
|
||||||
|
SM.pair(src, user)
|
||||||
|
else
|
||||||
|
..()
|
||||||
|
|
||||||
/obj/item/device/spy_bug/hear_talk(mob/M, var/msg, verb, datum/language/speaking)
|
/obj/item/device/spy_bug/hear_talk(mob/M, var/msg, verb, datum/language/speaking)
|
||||||
radio.hear_talk(M, msg, speaking)
|
radio.hear_talk(M, msg, speaking)
|
||||||
|
|
||||||
@@ -50,8 +63,9 @@
|
|||||||
radio = new(src)
|
radio = new(src)
|
||||||
|
|
||||||
/obj/item/device/spy_monitor/examine(mob/user)
|
/obj/item/device/spy_monitor/examine(mob/user)
|
||||||
if(..(user, 1))
|
. = ..(user, 1)
|
||||||
user << "The time '12:00' is blinking in the corner of the screen. \The [src] looks very cheaply made."
|
if(.)
|
||||||
|
user << "The time '12:00' is blinking in the corner of the screen and \the [src] looks very cheaply made."
|
||||||
|
|
||||||
/obj/item/device/spy_monitor/attack_self(mob/user)
|
/obj/item/device/spy_monitor/attack_self(mob/user)
|
||||||
if(operating)
|
if(operating)
|
||||||
@@ -62,16 +76,18 @@
|
|||||||
|
|
||||||
/obj/item/device/spy_monitor/attackby(obj/W as obj, mob/living/user as mob)
|
/obj/item/device/spy_monitor/attackby(obj/W as obj, mob/living/user as mob)
|
||||||
if(istype(W, /obj/item/device/spy_bug))
|
if(istype(W, /obj/item/device/spy_bug))
|
||||||
var/obj/item/device/spy_bug/SB = W
|
pair(W, user)
|
||||||
if(SB.camera in cameras)
|
|
||||||
user << "<span class='notice'>\The [SB] has been unpaired from \the [src].</span>"
|
|
||||||
cameras -= SB.camera
|
|
||||||
else
|
|
||||||
user << "<span class='notice'>\The [SB] has been paired with \the [src].</span>"
|
|
||||||
cameras += SB.camera
|
|
||||||
else
|
else
|
||||||
return ..()
|
return ..()
|
||||||
|
|
||||||
|
/obj/item/device/spy_monitor/proc/pair(var/obj/item/device/spy_bug/SB, var/mob/living/user)
|
||||||
|
if(SB.camera in cameras)
|
||||||
|
user << "<span class='notice'>\The [SB] has been unpaired from \the [src].</span>"
|
||||||
|
cameras -= SB.camera
|
||||||
|
else
|
||||||
|
user << "<span class='notice'>\The [SB] has been paired with \the [src].</span>"
|
||||||
|
cameras += SB.camera
|
||||||
|
|
||||||
/obj/item/device/spy_monitor/proc/view_cameras(mob/user)
|
/obj/item/device/spy_monitor/proc/view_cameras(mob/user)
|
||||||
if(!can_use_cam(user))
|
if(!can_use_cam(user))
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -186,20 +186,6 @@
|
|||||||
new /obj/item/weapon/reagent_containers/pill/dexalin_plus(src)
|
new /obj/item/weapon/reagent_containers/pill/dexalin_plus(src)
|
||||||
new /obj/item/weapon/reagent_containers/pill/dexalin_plus(src)
|
new /obj/item/weapon/reagent_containers/pill/dexalin_plus(src)
|
||||||
|
|
||||||
/obj/item/weapon/storage/pill_bottle/dexalin_plus
|
|
||||||
name = "bottle of Dexalin Plus pills"
|
|
||||||
desc = "Contains pills used to treat extreme cases of oxygen deprivation."
|
|
||||||
|
|
||||||
/obj/item/weapon/storage/pill_bottle/dexalin_plus/New()
|
|
||||||
..()
|
|
||||||
new /obj/item/weapon/reagent_containers/pill/dexalin_plus(src)
|
|
||||||
new /obj/item/weapon/reagent_containers/pill/dexalin_plus(src)
|
|
||||||
new /obj/item/weapon/reagent_containers/pill/dexalin_plus(src)
|
|
||||||
new /obj/item/weapon/reagent_containers/pill/dexalin_plus(src)
|
|
||||||
new /obj/item/weapon/reagent_containers/pill/dexalin_plus(src)
|
|
||||||
new /obj/item/weapon/reagent_containers/pill/dexalin_plus(src)
|
|
||||||
new /obj/item/weapon/reagent_containers/pill/dexalin_plus(src)
|
|
||||||
|
|
||||||
/obj/item/weapon/storage/pill_bottle/dermaline
|
/obj/item/weapon/storage/pill_bottle/dermaline
|
||||||
name = "bottle of Dermaline pills"
|
name = "bottle of Dermaline pills"
|
||||||
desc = "Contains pills used to treat burn wounds."
|
desc = "Contains pills used to treat burn wounds."
|
||||||
|
|||||||
Reference in New Issue
Block a user