Modifies component transfer to make ChangeTurf able to transfer components

This commit is contained in:
Jordan Brown
2018-04-30 21:16:48 -05:00
committed by CitadelStationBot
parent 7205a15ef7
commit 1675490652
9 changed files with 253 additions and 29 deletions
+6 -3
View File
@@ -27,10 +27,13 @@
QDEL_NULL(holder)
return ..()
/datum/component/mirage_border/OnTransfer(atom/thing)
if(!isturf(thing))
/datum/component/mirage_border/PreTransfer()
holder.moveToNullspace()
/datum/component/mirage_border/PostTransfer()
if(!isturf(parent))
return COMPONENT_INCOMPATIBLE
holder.forceMove(thing)
holder.forceMove(parent)
/obj/effect/abstract/mirage_holder
name = "Mirage holder"