mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-20 20:45:28 +01:00
Stops hot oil from frying certain objects (#55253)
* oilproof some things * fry tools again
This commit is contained in:
@@ -134,6 +134,9 @@
|
||||
return
|
||||
if(!isitem(exposed_obj) || istype(exposed_obj, /obj/item/food/deepfryholder))
|
||||
return
|
||||
if(is_type_in_typecache(exposed_obj, GLOB.oilfry_blacklisted_items) || (exposed_obj.resistance_flags & INDESTRUCTIBLE))
|
||||
exposed_obj.loc.visible_message("<span class='notice'>The hot oil has no effect on [exposed_obj]!</span>")
|
||||
return
|
||||
exposed_obj.loc.visible_message("<span class='warning'>[exposed_obj] rapidly fries as it's splashed with hot oil! Somehow.</span>")
|
||||
var/obj/item/food/deepfryholder/fry_target = new(exposed_obj.drop_location(), exposed_obj)
|
||||
fry_target.fry(volume)
|
||||
|
||||
Reference in New Issue
Block a user