mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-06-27 16:23:32 +01:00
46 lines
1.6 KiB
Plaintext
46 lines
1.6 KiB
Plaintext
|
|
/obj/machinery/kitchen_machine/grill
|
|
name = "grill"
|
|
desc = "Backyard grilling, IN SPACE."
|
|
icon = 'icons/obj/cooking_machines.dmi'
|
|
icon_state = "grill_off"
|
|
cook_verbs = list("Grilling", "Searing", "Frying")
|
|
recipe_type = /datum/recipe/grill
|
|
off_icon = "grill_off"
|
|
on_icon = "grill_on"
|
|
broken_icon = "grill_broke"
|
|
dirty_icon = "grill_dirty"
|
|
open_icon = "grill_open"
|
|
|
|
// see code/modules/food/recipes_grill.dm for recipes
|
|
|
|
/*******************
|
|
* Initialising
|
|
********************/
|
|
|
|
/obj/machinery/kitchen_machine/grill/New()
|
|
..()
|
|
component_parts = list()
|
|
component_parts += new /obj/item/weapon/circuitboard/grill(null)
|
|
component_parts += new /obj/item/weapon/stock_parts/micro_laser(null)
|
|
component_parts += new /obj/item/weapon/stock_parts/micro_laser(null)
|
|
component_parts += new /obj/item/weapon/stock_parts/console_screen(null)
|
|
component_parts += new /obj/item/stack/cable_coil(null, 5)
|
|
RefreshParts()
|
|
|
|
/obj/machinery/kitchen_machine/grill/upgraded/New()
|
|
..()
|
|
component_parts = list()
|
|
component_parts += new /obj/item/weapon/circuitboard/grill(null)
|
|
component_parts += new /obj/item/weapon/stock_parts/micro_laser/ultra(null)
|
|
component_parts += new /obj/item/weapon/stock_parts/micro_laser/ultra(null)
|
|
component_parts += new /obj/item/weapon/stock_parts/console_screen(null)
|
|
component_parts += new /obj/item/stack/cable_coil(null, 5)
|
|
RefreshParts()
|
|
|
|
/obj/machinery/kitchen_machine/grill/RefreshParts()
|
|
var/E
|
|
for(var/obj/item/weapon/stock_parts/micro_laser/M in component_parts)
|
|
E += M.rating
|
|
efficiency = round((E/2), 1) // There's 2 lasers, so halve the effect on the efficiency to keep it balanced
|