Merge pull request #33948 from ShizCalev/abstract-frying

stops frying abstract or nodrop items
This commit is contained in:
Jordan Brown
2017-12-31 11:01:16 -05:00
committed by CitadelStationBot
parent 806124e69b
commit 159fe41ab8
@@ -93,8 +93,8 @@ God bless America.
else if(default_deconstruction_screwdriver(user, "fryer_off", "fryer_off" ,I)) //where's the open maint panel icon?!
return
else
if(is_type_in_typecache(I, deepfry_blacklisted_items))
. = ..()
if(is_type_in_typecache(I, deepfry_blacklisted_items) || (I.flags_1 & (ABSTRACT_1 | NODROP_1 | DROPDEL_1)))
return ..()
else if(!frying && user.transferItemToLoc(I, src))
to_chat(user, "<span class='notice'>You put [I] into [src].</span>")
frying = new/obj/item/reagent_containers/food/snacks/deepfryholder(src, I)