mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-25 06:00:16 +01:00
Makes some more lists lazy (#94388)
Co-authored-by: SyncIt21 <110812394+SyncIt21@users.noreply.github.com> Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com>
This commit is contained in:
co-authored by
SyncIt21
MrMelbert
parent
b88e1a1328
commit
53ed83bb9d
@@ -129,7 +129,7 @@
|
||||
return FALSE
|
||||
owner = acquirer
|
||||
dna = acquirer.dna
|
||||
dna.mutations += src
|
||||
LAZYADD(dna.mutations, src)
|
||||
SEND_SIGNAL(src, COMSIG_MUTATION_GAINED, acquirer)
|
||||
if(text_gain_indication)
|
||||
to_chat(owner, text_gain_indication)
|
||||
@@ -153,7 +153,7 @@
|
||||
return
|
||||
|
||||
/datum/mutation/proc/on_losing(mob/living/carbon/human/owner)
|
||||
if(!istype(owner) || !(owner.dna.mutations.Remove(src)))
|
||||
if(!istype(owner) || !(owner.dna.mutations?.Remove(src)))
|
||||
return TRUE
|
||||
. = FALSE
|
||||
SEND_SIGNAL(src, COMSIG_MUTATION_LOST, owner)
|
||||
|
||||
Reference in New Issue
Block a user