small changes

This commit is contained in:
Timothy Teakettle
2020-07-20 17:20:54 +01:00
parent e2b68797b7
commit eab0ae8af0
3 changed files with 8 additions and 23 deletions
+6 -1
View File
@@ -409,5 +409,10 @@ All foods are distributed among various categories. Use common sense.
// //////////////////////////////////////////////Frying////////////////////////////////////////
/atom/proc/fry(cook_time = 30) //you can truly fry anything
if(!GetComponent(/datum/component/fried))
//don't fry reagent containers that aren't food items, indestructable items, or items that are already fried
if(isitem(src))
var/obj/item/fried_item = src
if(fried_item.resistance_flags & INDESTRUCTIBLE)
return
if(!GetComponent(/datum/component/fried) && (!reagents || isfood(src)))
AddComponent(/datum/component/fried, frying_power = cook_time)