procs
This commit is contained in:
@@ -61,14 +61,14 @@
|
||||
if(say_mod && M.dna && M.dna.species)
|
||||
M.dna.species.say_mod = say_mod
|
||||
if(length(initial_accents) || length(accents))
|
||||
RegisterSignal(M, COMSIG_MOB_SAY, .proc/handle_speech)
|
||||
RegisterSignal(M, COMSIG_MOB_SAY, PROC_REF(handle_speech))
|
||||
M.UnregisterSignal(M, COMSIG_MOB_SAY)
|
||||
|
||||
/obj/item/organ/tongue/Remove(special = FALSE)
|
||||
if(!QDELETED(owner))
|
||||
if(say_mod && owner.dna?.species)
|
||||
owner.dna.species.say_mod = initial(owner.dna.species.say_mod)
|
||||
UnregisterSignal(owner, COMSIG_MOB_SAY, .proc/handle_speech)
|
||||
UnregisterSignal(owner, COMSIG_MOB_SAY, PROC_REF(handle_speech))
|
||||
owner.RegisterSignal(owner, COMSIG_MOB_SAY, /mob/living/carbon/.proc/handle_tongueless_speech)
|
||||
return ..()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user