mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 19:47:22 +01:00
Inspector - IAA Stare, Alt-Title, and a Station Report (#29487)
* 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>
This commit is contained in:
co-authored by
Burzah
parent
f967158c0a
commit
e5a08230ee
@@ -0,0 +1,23 @@
|
||||
/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
|
||||
Reference in New Issue
Block a user