Skip to content

Commit

Permalink
[MIRROR] Storage items won't hold abstract/hologram items (#1648) (#2576
Browse files Browse the repository at this point in the history
)

* Storage items won't hold abstract/hologram items (#82132)

## About The Pull Request
- Fixes #82019

Yeah you can't put stuff that don't exist inside storage items that
actually exist.

## Changelog
:cl:
fix: abstract(like the dual hand thingy on your hand) & hologram things
can't be put inside storage items
/:cl:

---------



* Storage items won't hold abstract/hologram items

---------

Co-authored-by: NovaBot <[email protected]>
Co-authored-by: SyncIt21 <[email protected]>
Co-authored-by: MrMelbert <[email protected]>
  • Loading branch information
4 people authored Mar 27, 2024
1 parent 460afbc commit 91b0f7c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions code/datums/storage/storage.dm
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,15 @@ GLOBAL_LIST_EMPTY(cached_storage_typecaches)
if(QDELETED(to_insert) || !istype(to_insert))
return FALSE

//stops you from putting stuff like off-hand thingy inside. Hologram storages can accept only hologram items
if(to_insert.item_flags & ABSTRACT)
return FALSE
if(parent.flags_1 & HOLOGRAM_1)
if(!(to_insert.flags_1 & HOLOGRAM_1))
return FALSE
else if(to_insert.flags_1 & HOLOGRAM_1)
return FALSE

if(locked > force)
if(messages && user)
user.balloon_alert(user, "closed!")
Expand Down

0 comments on commit 91b0f7c

Please sign in to comment.