Tethered Item Component (#18499)

* tethered component

* can't do that

* visible_message should always show

* forbid storing

* catching some small issues

* visible message is fighting a bit too much

---------

Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
Will
2025-09-22 04:40:53 -04:00
committed by GitHub
co-authored by Cameron Lennox
parent 80fb38d0ca
commit b594262fec
10 changed files with 171 additions and 183 deletions
+1 -1
View File
@@ -139,7 +139,7 @@
busy_bank = FALSE
return
for(var/obj/item/check in O.contents)
if(!check.persist_storable)
if(!check.persist_storable || check.tethered_host_item)
to_chat(user, span_warning("\The [src] buzzes. \The [O] contains [check], which cannot be stored. Please remove this item before attempting to store \the [O]. As a reminder, any contents of \the [O] will be lost if you store it with contents."))
busy_bank = FALSE
return