Adds hear_1, cells work.
This commit is contained in:
@@ -770,14 +770,3 @@
|
||||
animate(I, alpha = 175, pixel_x = to_x, pixel_y = to_y, time = 3, transform = M, easing = CUBIC_EASING)
|
||||
sleep(1)
|
||||
animate(I, alpha = 0, transform = matrix(), time = 1)
|
||||
|
||||
///allows this movable to hear and adds itself to the important_recursive_contents list of itself and every movable loc its in
|
||||
/atom/movable/proc/become_hearing_sensitive(trait_source = TRAIT_GENERIC)
|
||||
if(!HAS_TRAIT(src, TRAIT_HEARING_SENSITIVE))
|
||||
RegisterSignal(src, SIGNAL_TRAIT(TRAIT_HEARING_SENSITIVE), .proc/on_hearing_sensitive_trait_loss)
|
||||
ADD_TRAIT(src, TRAIT_HEARING_SENSITIVE, trait_source)
|
||||
|
||||
/atom/movable/proc/on_hearing_sensitive_trait_loss()
|
||||
SIGNAL_HANDLER
|
||||
UnregisterSignal(src, SIGNAL_TRAIT(TRAIT_HEARING_SENSITIVE))
|
||||
REMOVE_TRAIT(src, TRAIT_HEARING_SENSITIVE, src)
|
||||
|
||||
Reference in New Issue
Block a user