Skip to content

Commit

Permalink
that
Browse files Browse the repository at this point in the history
  • Loading branch information
silicons committed Dec 9, 2024
1 parent b7e76a0 commit 50d033d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions code/__DEFINES/_cooldowns.dm
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,6 @@

// admin verb cooldowns
#define CD_INTERNET_SOUND "internet_sound"

//* /mob
#define CD_INDEX_MOB_VERB_INVERT_SELF "mob-verb-invert-self"
1 change: 1 addition & 0 deletions code/game/atoms/movable/movable-update_icon.dm
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@
*/
/atom/movable/proc/set_transform(matrix/new_transform)
var/matrix/old_transform = transform
src.transform = new_transform
SEND_SIGNAL(src, COMSIG_MOVABLE_ON_UPDATE_TRANSFORM, old_transform, new_transform)
6 changes: 6 additions & 0 deletions code/modules/mob/verbs/horizontal_invert_self.dm
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@

// todo: remote control? mobs that don't allow it?

if(TIMER_COOLDOWN_CHECK(src, 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, CD_INDEX_MOB_VERB_INVERT_SELF, 0.5 SECONDS)

log_game("[key_name(usr)] invoked horizontal_invert_self on [key_name(src)].")

var/datum/component/mob_self_horizontal_inversion/inversion = GetComponent(/datum/component/mob_self_horizontal_inversion)
Expand Down

0 comments on commit 50d033d

Please sign in to comment.