Fix cutting meat to be consistent with itself and cutting other food items (#18092)

* make scalple work to cut cutlets into bacon

* Fix displayed messages to work with scalpel, and brought formating in line with everywhere else in the game.

* brings messaging for cutting meat in line with messages for other actions in the game.

* removed the extra 'the's from the the messages

* Add space between arguments in function call

Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com>

Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com>
This commit is contained in:
KalevTait
2022-06-26 17:43:49 +01:00
committed by GitHub
parent 2f8ca5a845
commit a0a1f2bbf4
@@ -17,7 +17,10 @@
new /obj/item/reagent_containers/food/snacks/rawcutlet(src)
new /obj/item/reagent_containers/food/snacks/rawcutlet(src)
new /obj/item/reagent_containers/food/snacks/rawcutlet(src)
to_chat(user, "You cut the meat in thin strips.")
user.visible_message( \
"<span class ='notice'>[user] cuts [src] with [W]!</span>", \
"<span class ='notice'>You cut [src] with [W]!</span>" \
)
qdel(src)
else
..()
@@ -69,10 +72,10 @@
list_reagents = list("protein" = 1)
/obj/item/reagent_containers/food/snacks/rawcutlet/attackby(obj/item/W, mob/user, params)
if(istype(W,/obj/item/kitchen/knife))
if(istype(W, /obj/item/kitchen/knife) || istype(W, /obj/item/scalpel))
user.visible_message( \
"[user] cuts the raw cutlet with the knife!", \
"<span class ='notice'>You cut the raw cutlet with your knife!</span>" \
"<span class ='notice'>[user] cuts the raw cutlet with [W]!</span>", \
"<span class ='notice'>You cut the raw cutlet with [W]!</span>" \
)
new /obj/item/reagent_containers/food/snacks/raw_bacon(loc)
qdel(src)