small changes
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user