mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-01-14 11:24:09 +00:00
Squashed commit: [4b18ca1] Finishing up NIFs [e4adb4a] Tons more NIF work All the implants are done!
33 lines
1.0 KiB
Plaintext
33 lines
1.0 KiB
Plaintext
/*
|
|
This state checks that the src_object is on the user's glasses slot.
|
|
*/
|
|
/var/global/datum/topic_state/glasses_state/glasses_state = new()
|
|
|
|
/datum/topic_state/glasses_state/can_use_topic(var/src_object, var/mob/user)
|
|
if(ishuman(user))
|
|
var/mob/living/carbon/human/H = user
|
|
if(H.glasses == src_object)
|
|
return user.shared_nano_interaction()
|
|
|
|
return STATUS_CLOSE
|
|
|
|
/var/global/datum/topic_state/nif_state/nif_state = new()
|
|
|
|
/datum/topic_state/nif_state/can_use_topic(var/src_object, var/mob/user)
|
|
if(ishuman(user))
|
|
var/mob/living/carbon/human/H = user
|
|
if(H.nif && H.nif.stat == NIF_WORKING && src_object == H.nif)
|
|
return user.shared_nano_interaction()
|
|
|
|
return STATUS_CLOSE
|
|
|
|
/var/global/datum/topic_state/commlink_state/commlink_state = new()
|
|
|
|
/datum/topic_state/commlink_state/can_use_topic(var/src_object, var/mob/user)
|
|
if(ishuman(user))
|
|
var/mob/living/carbon/human/H = user
|
|
if(H.nif && H.nif.stat == NIF_WORKING && H.nif.comm == src_object)
|
|
return user.shared_nano_interaction()
|
|
|
|
return STATUS_CLOSE
|