This commit is contained in:
timothyteakettle
2020-07-20 00:49:00 +01:00
parent 8709a72fc0
commit e2b68797b7
3 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ GLOBAL_LIST_INIT(frying_bad_chems, list(
))
/datum/component/fried/proc/examine(datum/source, mob/user, list/examine_list)
examine_list += "The [parent] has been [frying_examine_text]"
examine_list += "[parent] has been [frying_examine_text]"
/datum/component/fried/proc/setup_fried_item() //sets the name, colour and examine text and edibility up
switch(fry_power)
@@ -98,6 +98,8 @@ God bless America.
return
else if(default_deconstruction_screwdriver(user, "fryer_off", "fryer_off" ,I)) //where's the open maint panel icon?!
return
else if(I.reagents && !isfood(I))
return
else
if(is_type_in_typecache(I, deepfry_blacklisted_items) || HAS_TRAIT(I, TRAIT_NODROP) || (I.item_flags & (ABSTRACT | DROPDEL)))
return ..()
@@ -115,7 +115,7 @@
/datum/reagent/consumable/cooking_oil/reaction_obj(obj/O, reac_volume)
if(holder && holder.chem_temp >= fry_temperature)
if(isitem(O) && !O.GetComponent(/datum/component/fried) && !(O.resistance_flags & (FIRE_PROOF|INDESTRUCTIBLE)) && !O.reagents) //don't fry stuff we shouldn't
if(isitem(O) && !O.GetComponent(/datum/component/fried) && !(O.resistance_flags & (FIRE_PROOF|INDESTRUCTIBLE)) && (!O.reagents || isfood(O))) //don't fry stuff we shouldn't
O.loc.visible_message("<span class='warning'>[O] rapidly fries as it's splashed with hot oil! Somehow.</span>")
O.fry(volume)
if(O.reagents)