mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-26 05:27:01 +01:00
* Inspector alt title and gaze * Clipboard * Apply suggestions from code review Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> Signed-off-by: PollardTheDragon <144391971+PollardTheDragon@users.noreply.github.com> * Reduces duplicate code --------- Signed-off-by: PollardTheDragon <144391971+PollardTheDragon@users.noreply.github.com> Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com>
24 lines
1.0 KiB
Plaintext
24 lines
1.0 KiB
Plaintext
/datum/spell/inspectors_gaze
|
|
name = "Inspector's Gaze"
|
|
desc = "Let the crew know that they're being watched and inspected."
|
|
base_cooldown = 6 SECONDS
|
|
clothes_req = FALSE
|
|
selection_activated_message = "<span class='notice'>You look for a crewmember to inspect! <b>Left-click to gaze at a target!</b></span>"
|
|
selection_deactivated_message = "<span class='notice'>You relinquish your gaze... for now.</span>"
|
|
action_icon_state = "genetic_view"
|
|
|
|
/datum/spell/inspectors_gaze/create_new_targeting()
|
|
var/datum/spell_targeting/clicked_atom/external/C = new()
|
|
C.range = 10
|
|
return C
|
|
|
|
/datum/spell/inspectors_gaze/cast(list/targets, mob/living/user = usr)
|
|
var/mob/target = targets[1] // There is only ever one target for your gaze
|
|
if(!istype(target))
|
|
to_chat(user, "<span class='warning'>You don't think [target] can commit SOP violations.</span>")
|
|
return FALSE
|
|
to_chat(target, "<span class='warning'>You feel someone staring at you...</span>")
|
|
to_chat(user, "<span class='notice'>You gaze at [target], intent to find SOP violations.</span>")
|
|
|
|
return TRUE
|