mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-16 09:34:52 +01:00
Flammable Items, Abstractness, and hypnosis (#19267)
* Laser Eyes * Update dna.dm * Mecha * Update positive_genes.dm * These * These 2 * yeh * Rest of these * Update turf.dm * Update food.dm * Some moar * mooove * Update vorestation.dme * Update burning.dm * firesuit * flags * HYPNOCOLOR * xd * no filter * dc * Update ore_bag.dm * Update misc.dm * Update misc.dm
This commit is contained in:
@@ -87,8 +87,15 @@ It is used to destroy hand-held objects and advance technological research. Used
|
||||
to_chat(user, span_notice("The machine rejects \the [O]!"))
|
||||
return
|
||||
if(LAZYLEN(O.contents))
|
||||
to_chat(user, span_notice("The machine rejects \the [O]! You need to clear it of all items first!"))
|
||||
return
|
||||
var/bad_item = FALSE
|
||||
for(var/obj/item/thing in O.contents)
|
||||
if(thing.item_flags & ABSTRACT)
|
||||
continue
|
||||
bad_item = TRUE
|
||||
break
|
||||
if(bad_item)
|
||||
to_chat(user, span_notice("The machine rejects \the [O]! You need to clear it of all items first!"))
|
||||
return
|
||||
busy = TRUE
|
||||
loaded_item = WEAKREF(O)
|
||||
user.drop_item()
|
||||
|
||||
Reference in New Issue
Block a user