mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-30 08:37:43 +01:00
Burned mess from culinary disasters is once again toxic. (#92394)
## About The Pull Request When an item is cooked, reagents are generally cleared from the resulting object and the reagents of the source object are transferred to it instead. This means burned mess won't have its toxins when cooked, locking you out of one or two chemistry recipes that require it while also making the item generally not toxic at all. So to fix it, we simply have to replace all or most of the consumable reagents inside the burned mess with bad food, via component signals. ## Why It's Good For The Game Fixing an issue with food and chemistry. ## Changelog 🆑 fix: burned mess made with a microwave, oven or griddle once again toxins. /🆑 --------- Co-authored-by: _0Steven <42909981+00-Steven@users.noreply.github.com>
This commit is contained in:
committed by
nevimer
co-authored by
_0Steven
parent
5ba2d7522f
commit
7ff0a19883
@@ -54,8 +54,6 @@
|
||||
result.set_custom_materials(source.custom_materials)
|
||||
|
||||
var/efficiency = istype(used_microwave) ? used_microwave.efficiency : 1
|
||||
SEND_SIGNAL(result, COMSIG_ITEM_MICROWAVE_COOKED, source, efficiency)
|
||||
SEND_SIGNAL(source, COMSIG_ITEM_MICROWAVE_COOKED_FROM, result, efficiency)
|
||||
|
||||
if(IS_EDIBLE(result) && (result_typepath != default_typepath))
|
||||
BLACKBOX_LOG_FOOD_MADE(result.type)
|
||||
@@ -72,6 +70,10 @@
|
||||
if(microwaver && microwaver.mind)
|
||||
ADD_TRAIT(result, TRAIT_FOOD_CHEF_MADE, REF(microwaver.mind))
|
||||
|
||||
|
||||
SEND_SIGNAL(result, COMSIG_ITEM_MICROWAVE_COOKED, source, efficiency)
|
||||
SEND_SIGNAL(source, COMSIG_ITEM_MICROWAVE_COOKED_FROM, result, efficiency)
|
||||
|
||||
qdel(source)
|
||||
|
||||
var/recipe_result = COMPONENT_MICROWAVE_SUCCESS
|
||||
|
||||
Reference in New Issue
Block a user