mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-22 20:43:10 +01:00
Kitchen tweaks (#2570)
changes: Reduced power usage of oven and fryer. Reduced warm up time of oven and fryer. Oven now heats up to exactly 200C instead of to 198.85C. Fixed some issues with cooking appliances' sanity checks. Recipe datums are now initialized once instead of per-appliance. Moved some cooking verbs to the Objects tab instead of a null category.
This commit is contained in:
@@ -20,6 +20,9 @@
|
||||
|
||||
var/list/slept_in_process = list()
|
||||
|
||||
// Cooking stuff. Not substantial enough to get its own SS, so it's shoved in here.
|
||||
var/list/recipe_datums = list()
|
||||
|
||||
/datum/controller/subsystem/machinery/Recover()
|
||||
all_cameras = SSmachinery.all_cameras
|
||||
|
||||
@@ -29,10 +32,26 @@
|
||||
/datum/controller/subsystem/machinery/New()
|
||||
NEW_SS_GLOBAL(SSmachinery)
|
||||
|
||||
#define ADD_TO_RDATUMS(i,t) if (R.appliance & i) { LAZYADD(recipe_datums["[i]"], t); added++; }
|
||||
|
||||
/datum/controller/subsystem/machinery/Initialize(timeofday)
|
||||
for (var/type in subtypesof(/datum/recipe))
|
||||
var/datum/recipe/R = new type
|
||||
var/added = 0
|
||||
ADD_TO_RDATUMS(MICROWAVE, R)
|
||||
ADD_TO_RDATUMS(FRYER, R)
|
||||
ADD_TO_RDATUMS(OVEN, R)
|
||||
ADD_TO_RDATUMS(CANDYMAKER, R)
|
||||
ADD_TO_RDATUMS(CEREALMAKER, R)
|
||||
if (!added)
|
||||
log_debug("SSmachinery: warning: type '[type]' does not have a valid machine type.")
|
||||
qdel(R)
|
||||
|
||||
fire(FALSE, TRUE) // Tick machinery once to pare down the list so we don't hammer the server on round-start.
|
||||
..(timeofday)
|
||||
|
||||
#undef ADD_TO_RDATUMS
|
||||
|
||||
/datum/controller/subsystem/machinery/fire(resumed = 0, no_mc_tick = FALSE)
|
||||
if (!resumed)
|
||||
src.processing_machinery = machines.Copy()
|
||||
|
||||
Reference in New Issue
Block a user