mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-25 06:00:16 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user