mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Merge pull request #11533 from VOREStation/upstream-merge-8236
[MIRROR] Allows wiping food off cutlery
This commit is contained in:
committed by
Chompstation Bot
parent
24d867c15f
commit
0f6e69f344
@@ -477,7 +477,11 @@
|
||||
src.germ_level = 0
|
||||
if(istype(blood_DNA, /list))
|
||||
blood_DNA = null
|
||||
return 1
|
||||
return TRUE
|
||||
|
||||
/atom/proc/on_rag_wipe(var/obj/item/weapon/reagent_containers/glass/rag/R)
|
||||
clean_blood()
|
||||
R.reagents.splash(src, 1)
|
||||
|
||||
/atom/proc/get_global_map_pos()
|
||||
if(!islist(global_map) || isemptylist(global_map)) return
|
||||
|
||||
@@ -84,6 +84,13 @@
|
||||
to_chat(user, SPAN_WARNING("You don't have anything on \the [src].")) //if we have help intent and no food scooped up DON'T STAB OURSELVES WITH THE FORK
|
||||
return
|
||||
|
||||
/obj/item/weapon/material/kitchen/utensil/on_rag_wipe()
|
||||
. = ..()
|
||||
if(reagents.total_volume > 0)
|
||||
reagents.clear_reagents()
|
||||
cut_overlays()
|
||||
return
|
||||
|
||||
/obj/item/weapon/material/kitchen/utensil/fork
|
||||
name = "fork"
|
||||
desc = "It's a fork. Sure is pointy."
|
||||
|
||||
@@ -98,16 +98,11 @@
|
||||
if(!reagents.total_volume)
|
||||
to_chat(user, "<span class='warning'>The [initial(name)] is dry!</span>")
|
||||
else
|
||||
user.visible_message("\The [user] starts to wipe down [A] with [src]!")
|
||||
//reagents.splash(A, 1) //get a small amount of liquid on the thing we're wiping.
|
||||
user.visible_message("[user] starts to wipe [A] with [src].")
|
||||
update_name()
|
||||
if(do_after(user,30))
|
||||
user.visible_message("\The [user] finishes wiping off the [A]!")
|
||||
A.clean_blood()
|
||||
if(istype(A, /turf) || istype(A, /obj/effect/decal/cleanable) || istype(A, /obj/effect/overlay) || istype(A, /obj/effect/rune)) //VOREStation Edit - "Allows rags to clean dirt from turfs"
|
||||
var/turf/T = get_turf(A)
|
||||
if(T)
|
||||
T.clean(src, user) //VOREStation Edit End
|
||||
user.visible_message("[user] finishes wiping [A]!")
|
||||
A.on_rag_wipe(src)
|
||||
|
||||
/obj/item/weapon/reagent_containers/glass/rag/attack(atom/target as obj|turf|area, mob/user as mob , flag)
|
||||
if(isliving(target)) //Leaving this as isliving.
|
||||
@@ -121,7 +116,7 @@
|
||||
var/mob/living/carbon/human/H = target
|
||||
if(H.head && (H.head.body_parts_covered & FACE)) //Check human head coverage.
|
||||
to_chat(user, "<span class='warning'>Remove their [H.head] first.</span>")
|
||||
return
|
||||
return
|
||||
else if(reagents.total_volume) //Final check. If the rag is not on fire and their face is uncovered, smother target.
|
||||
user.do_attack_animation(src)
|
||||
user.visible_message(
|
||||
|
||||
@@ -38,6 +38,9 @@
|
||||
qdel(src)
|
||||
return
|
||||
|
||||
/obj/item/weapon/reagent_containers/food/drinks/on_rag_wipe(var/obj/item/weapon/reagent_containers/glass/rag/R)
|
||||
clean_blood()
|
||||
|
||||
/obj/item/weapon/reagent_containers/food/drinks/attack_self(mob/user as mob)
|
||||
if(!is_open_container())
|
||||
open(user)
|
||||
|
||||
Reference in New Issue
Block a user