mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2026-08-23 03:26:50 +01:00
25 lines
904 B
Plaintext
25 lines
904 B
Plaintext
//* This file is explicitly licensed under the MIT license. *//
|
|
//* Copyright (c) 2025 Citadel Station Developers *//
|
|
|
|
// todo: DECLARE_MOB_VERB
|
|
/mob/verb/vertical_invert_self()
|
|
set name = "Invert Yourself (Vertical)"
|
|
set desc = "Mirror your sprite across the N-S axis."
|
|
set category = VERB_CATEGORY_IC
|
|
|
|
// todo: remote control? mobs that don't allow it?
|
|
|
|
if(TIMER_COOLDOWN_CHECK(src, TIMER_CD_INDEX_MOB_VERB_INVERT_SELF))
|
|
// todo: don't usr lol
|
|
to_chat(usr, SPAN_WARNING("You can't do that yet!"))
|
|
return
|
|
TIMER_COOLDOWN_START(src, TIMER_CD_INDEX_MOB_VERB_INVERT_SELF, 0.5 SECONDS)
|
|
|
|
log_game("[key_name(usr)] invoked vertical_invert_self on [key_name(src)].")
|
|
|
|
var/datum/component/mob_self_vertical_inversion/inversion = GetComponent(/datum/component/mob_self_vertical_inversion)
|
|
if(inversion)
|
|
qdel(inversion)
|
|
else
|
|
AddComponent(/datum/component/mob_self_vertical_inversion)
|