mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-11 10:22:13 +00:00
Merge pull request #3876 from Citadel-Station-13/upstream-merge-32556
[MIRROR] Fixed teleporting food out of the deep fryer
This commit is contained in:
@@ -76,14 +76,18 @@ insert ascii eagle on american flag background here
|
|||||||
visible_message("[src] emits an acrid smell!")
|
visible_message("[src] emits an acrid smell!")
|
||||||
|
|
||||||
|
|
||||||
|
/obj/machinery/deepfryer/attack_ai(mob/user)
|
||||||
|
return
|
||||||
|
|
||||||
/obj/machinery/deepfryer/attack_hand(mob/user)
|
/obj/machinery/deepfryer/attack_hand(mob/user)
|
||||||
if(frying)
|
if(frying)
|
||||||
if(frying.loc == src)
|
if(frying.loc == src)
|
||||||
to_chat(user, "<span class='notice'>You eject [frying] from [src].</span>")
|
to_chat(user, "<span class='notice'>You eject [frying] from [src].</span>")
|
||||||
var/obj/item/reagent_containers/food/snacks/deepfryholder/S = new(get_turf(src))
|
var/obj/item/reagent_containers/food/snacks/deepfryholder/S = new(drop_location())
|
||||||
S.fry(frying, reagents, cook_time)
|
S.fry(frying, reagents, cook_time)
|
||||||
icon_state = "fryer_off"
|
icon_state = "fryer_off"
|
||||||
user.put_in_hands(S)
|
if(user.Adjacent(src))
|
||||||
|
user.put_in_hands(S)
|
||||||
frying = null
|
frying = null
|
||||||
cook_time = 0
|
cook_time = 0
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user