Skip to content

Commit

Permalink
refactor: Optimized organ handling (#4523)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladisvell authored Mar 3, 2024
1 parent da95cf9 commit 9df30e8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion code/modules/surgery/organs/organ.dm
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,14 @@

/obj/item/organ/proc/is_preserved()
var/static/list/preserved_holders = list(
/obj/machinery/smartfridge/secure/medbay/organ,
/obj/structure/closet/crate/freezer,
/obj/machinery/clonepod,
/obj/machinery/smartfridge/secure/medbay/organ,
)

if(owner)
return TRUE

for(var/typepath in preserved_holders)
if(is_found_within(typepath))
return TRUE
Expand Down

0 comments on commit 9df30e8

Please sign in to comment.