mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-27 22:17:32 +01:00
Kitchen rework part 1: machines and recipes. (#28277)
* Kitchen rework part 1: machines and recipes. * update oldstation * update updatepaths script number * fix blank icon test * remove old deep fryer completely * fix duped recipes and recipe datum names * add chef PDA cart to chefdrobe * nerf grill wood consumption rate * multiply food for cooking machine rating * fix runtime * add cookware to syndie base and oldstation * remove dupe burger recipe, update syndie/oldstation setups * nerf potency quality award * buff burn/ignite times, remove pointless on_fire flag * more grill woodburn nerf * meh * try and unfuck timing issues * more fixes and icon updates * more fixes * more review changes * fix linter * disable pcwj debug * fix grill and deep fryer overlays * fix timers with no containers * attempt to fix reagent adding issues * more cleanups * allow rped usage * grammar, null checks, reagent display * PDA updates, map updates * fix mats values * new panel sprites * recipe fixes, add prep bowl * revert unused icon file changes * move this to mesh with smith TM * remove food quality for now * New sprites, autochef. * fix examine text * reduce oven cook times * lots of fixes * fix autochef recipes that start with reagents * prevent shenanigans * megapatch 1 * block ingredients behind oven door * PDA app improvements * remove unused proc * fixes for cookbook, descontructions, completed steps * allow empty containers with a tracker to be claimed * allow reclaiming * autochef reliability fixes * autochef reliability fixes * fix quality product count * update updatepaths script * better stack handling * more fixes for stacks and reagents * timers no longer turn off burners automatically * autochef turn offs and make sure we can see output storage * add microwave recipe for roundremoving player brains * Apply suggestions from code review Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> Signed-off-by: warriorstar-orion <orion@snowfrost.garden> * burza review 1 * Apply suggestions from code review Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> Signed-off-by: warriorstar-orion <orion@snowfrost.garden> * fix berry muffin name while i'm here * grill -> microwave in new tests * grill -> microwave in new tests, but actually for realsies * i definitely know what i'm doing * redundant attack chain setting * add examine text about clearing buffer * remove unused vars and start improving docs --------- Signed-off-by: warriorstar-orion <orion@snowfrost.garden> Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com>
This commit is contained in:
co-authored by
Burzah
parent
9a3ce4e549
commit
f9ade844c9
@@ -141,6 +141,14 @@
|
||||
new /datum/data/pda/app/signaller
|
||||
)
|
||||
|
||||
/obj/item/cartridge/chef
|
||||
name = "Chef's Guide to the Galaxy"
|
||||
desc = "A data cartridge for portable microcomputers. Contains every cooking recipe ever."
|
||||
icon_state = "cart-chef"
|
||||
programs = list(
|
||||
new /datum/data/pda/app/cookbook
|
||||
)
|
||||
|
||||
/obj/item/cartridge/cargo
|
||||
name = "Space Parts & Space Vendors Cartridge"
|
||||
desc = "A data cartridge for portable microcomputers. Has supply records and MULEbot control."
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
// PDA apps don't seem to support ui_static_data so we do a bunch of back and
|
||||
// forth filtering the recipes by category on the BYOND side
|
||||
/datum/data/pda/app/cookbook
|
||||
name = "Recipe Book"
|
||||
title = "Chef's Guide to the Galaxy"
|
||||
template = "pda_cookbook"
|
||||
// Almost positive this is never used anywhere but sure
|
||||
update = PDA_APP_NOUPDATE
|
||||
|
||||
var/current_category
|
||||
var/list/recipe_list = list()
|
||||
var/search_text = ""
|
||||
|
||||
/datum/data/pda/app/cookbook/ui_interact(mob/user, datum/tgui/ui)
|
||||
. = ..()
|
||||
ui.set_autoupdate(FALSE)
|
||||
|
||||
/datum/data/pda/app/cookbook/update_ui(mob/user, list/data)
|
||||
data["categories"] = list()
|
||||
for(var/category in GLOB.pcwj_cookbook_lookup)
|
||||
data["categories"] += category
|
||||
|
||||
data["recipes"] = recipe_list
|
||||
data["current_category"] = current_category
|
||||
data["search_text"] = search_text
|
||||
|
||||
return data
|
||||
|
||||
/datum/data/pda/app/cookbook/ui_act(action, list/params, datum/tgui/ui, datum/ui_state/state)
|
||||
if(..())
|
||||
return
|
||||
|
||||
switch(action)
|
||||
if("set_category")
|
||||
current_category = params["name"]
|
||||
search_text = params["search_text"]
|
||||
recipe_list = isnull(current_category) ? list() : GLOB.pcwj_cookbook_lookup[current_category]
|
||||
SStgui.update_uis(pda)
|
||||
|
||||
@@ -179,6 +179,7 @@
|
||||
model_name = "Thinktronic 5230 Personal Data Assistant Deluxe Special Max Turbo Limited Edition"
|
||||
|
||||
/obj/item/pda/chef
|
||||
default_cartridge = /obj/item/cartridge/chef
|
||||
icon_state = "pda-chef"
|
||||
|
||||
/obj/item/pda/bar
|
||||
|
||||
Reference in New Issue
Block a user