Makes RemoveComponent more sane (#26877)

* Makes RemoveComponent more sane

* An even better wrapper

* Update code/datums/components/surgery_initiator.dm

Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com>
Signed-off-by: DGamerL <108773801+DGamerL@users.noreply.github.com>

* Update code/datums/components/_component.dm

Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com>
Signed-off-by: DGamerL <108773801+DGamerL@users.noreply.github.com>

* Update code/datums/components/_component.dm

Signed-off-by: DGamerL <108773801+DGamerL@users.noreply.github.com>

* Update code/datums/components/_component.dm

Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com>
Signed-off-by: DGamerL <108773801+DGamerL@users.noreply.github.com>

* Update code/datums/components/_component.dm

Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com>
Signed-off-by: DGamerL <108773801+DGamerL@users.noreply.github.com>

---------

Signed-off-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com>
This commit is contained in:
DGamerL
2024-10-09 18:46:04 +00:00
committed by GitHub
co-authored by Contrabang
parent 3e640bd2c0
commit 89796a055b
20 changed files with 45 additions and 32 deletions
@@ -203,7 +203,7 @@
icon_state = "[initial(icon_state)]_dead"
item_state = "facehugger_inactive"
stat = DEAD
qdel(GetComponent(/datum/component/proximity_monitor))
DeleteComponent(/datum/component/proximity_monitor)
visible_message("<span class='danger'>[src] curls up into a ball!</span>")
@@ -21,7 +21,7 @@
if(!mind)
return FALSE
if(mind.miming)
qdel(GetComponent(/datum/component/footstep))
DeleteComponent(/datum/component/footstep)
return TRUE
/**
@@ -413,7 +413,7 @@ While using this makes the system rely on OnFire, it still gives options for tim
text += "<span class='warning'>If teleported to the Station by jaunter, you are allowed to attack people on Station, until you get killed.</span>"
to_chat(mychild, text.Join(" "))
qdel(GetComponent(/datum/component/proximity_monitor))
DeleteComponent(/datum/component/proximity_monitor)
/obj/item/tumor_shard
name = "tumor shard"