Add baking and grilling results to the blackbox (#71632)

## About The Pull Request
Adds baking and grilling results to the blackbox. Microwaved and crafted
foods were being logged here, but the logging messages were lost when we
got the grilling and baking components.

## Why It's Good For The Game
More food logging yeehaw

## Changelog
No player-facing changes

Co-authored-by: tattle <article.disaster@gmail.com>
This commit is contained in:
tattle
2022-12-01 05:26:25 +00:00
committed by GitHub
co-authored by tattle
parent 9aaa9574ee
commit bcbe219973
4 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -64,7 +64,6 @@
///Ran when an object finished baking
/datum/component/bakeable/proc/finish_baking(atom/used_oven)
var/atom/original_object = parent
var/obj/item/plate/oven_tray/used_tray = original_object.loc
var/atom/baked_result = new bake_result(used_tray)
@@ -81,6 +80,7 @@
if(positive_result)
used_oven.visible_message(span_notice("You smell something great coming from [used_oven]."), blind_message = span_notice("You smell something great..."))
BLACKBOX_LOG_FOOD_MADE(baked_result.type)
else
used_oven.visible_message(span_warning("You smell a burnt smell coming from [used_oven]."), blind_message = span_warning("You smell a burnt smell..."))
SEND_SIGNAL(parent, COMSIG_ITEM_BAKED, baked_result)