microwave ![code/modules/food_and_drinks/machinery/microwave.dm 20](git.png)
Vars | |
broken | How broken is it? NOT_BROKEN, KINDA_BROKEN, REALLY_BROKEN |
---|---|
cell | The cell we charge with |
cell_powered | If we use a cell instead of powernet |
dirty | How dirty is it? |
efficiency | Microwave efficiency (power) based on the stock components |
ingredient_shifts_x | When this is the nth ingredient, whats its pixel_x? |
ingredient_shifts_y | When this is the nth ingredient, whats its pixel_y? |
ingredients | May only contain /atom/movables |
max_n_of_items | Microwave max capacity |
open | Microwave door position |
pda_failure | Fail due to inserted PDA |
vampire_cell | The cell we're charging |
vampire_charging_capable | Capable of vampire charging PDAs |
vampire_charging_enabled | Charge contents of microwave instead of cook |
wire_disabled | Is its function wire cut? |
wire_mode_swap | Wire cut to run mode backwards |
Procs | |
charge_loop | The actual cook loop started via [proc/start] or [proc/start_can_fail] |
charge_loop_finish | Called when the charge_loop is done successfully, no dirty mess or whatever |
cook | Begins the process of cooking the included ingredients. |
cook_loop | The actual cook loop started via [proc/start] or [proc/start_can_fail] |
loop_finish | Called when the cook_loop is done successfully, no dirty mess or whatever |
start | The start of the cook loop |
start_can_fail | The start of the cook loop, but can fail (result in a splat / dirty microwave) |
vampire | The start of the charge loop |
Var Details
broken ![code/modules/food_and_drinks/machinery/microwave.dm 46](git.png)
How broken is it? NOT_BROKEN, KINDA_BROKEN, REALLY_BROKEN
cell ![code/modules/food_and_drinks/machinery/microwave.dm 56](git.png)
The cell we charge with
cell_powered ![code/modules/food_and_drinks/machinery/microwave.dm 54](git.png)
If we use a cell instead of powernet
dirty ![code/modules/food_and_drinks/machinery/microwave.dm 43](git.png)
How dirty is it?
efficiency ![code/modules/food_and_drinks/machinery/microwave.dm 52](git.png)
Microwave efficiency (power) based on the stock components
ingredient_shifts_x ![code/modules/food_and_drinks/machinery/microwave.dm 67](git.png)
When this is the nth ingredient, whats its pixel_x?
ingredient_shifts_y ![code/modules/food_and_drinks/machinery/microwave.dm 77](git.png)
When this is the nth ingredient, whats its pixel_y?
ingredients ![code/modules/food_and_drinks/machinery/microwave.dm 65](git.png)
May only contain /atom/movables
max_n_of_items ![code/modules/food_and_drinks/machinery/microwave.dm 50](git.png)
Microwave max capacity
open ![code/modules/food_and_drinks/machinery/microwave.dm 48](git.png)
Microwave door position
pda_failure ![code/modules/food_and_drinks/machinery/microwave.dm 40](git.png)
Fail due to inserted PDA
vampire_cell ![code/modules/food_and_drinks/machinery/microwave.dm 58](git.png)
The cell we're charging
vampire_charging_capable ![code/modules/food_and_drinks/machinery/microwave.dm 60](git.png)
Capable of vampire charging PDAs
vampire_charging_enabled ![code/modules/food_and_drinks/machinery/microwave.dm 62](git.png)
Charge contents of microwave instead of cook
wire_disabled ![code/modules/food_and_drinks/machinery/microwave.dm 36](git.png)
Is its function wire cut?
wire_mode_swap ![code/modules/food_and_drinks/machinery/microwave.dm 38](git.png)
Wire cut to run mode backwards
Proc Details
charge_loop
The actual cook loop started via [proc/start] or [proc/start_can_fail]
- type - the type of charging, determined via how this iteration of cook_loop is called, and determines the result
- time - how many loops are left, base case for recursion
- wait - deciseconds between loops
- cooker - The mob that initiated the cook cycle, can be null if no apparent mob triggered it (such as via emp)
charge_loop_finish
Called when the charge_loop is done successfully, no dirty mess or whatever
- cooker - The mob that initiated the cook cycle, can be null if no apparent mob triggered it (such as via emp)
cook
Begins the process of cooking the included ingredients.
- cooker - The mob that initiated the cook cycle, can be null if no apparent mob triggered it (such as via emp)
cook_loop
The actual cook loop started via [proc/start] or [proc/start_can_fail]
- type - the type of cooking, determined via how this iteration of cook_loop is called, and determines the result
- time - how many loops are left, base case for recursion
- wait - deciseconds between loops
- cooker - The mob that initiated the cook cycle, can be null if no apparent mob triggered it (such as via emp)
loop_finish
Called when the cook_loop is done successfully, no dirty mess or whatever
- cooker - The mob that initiated the cook cycle, can be null if no apparent mob triggered it (such as via emp)
start
The start of the cook loop
- cooker - The mob that initiated the cook cycle, can be null if no apparent mob triggered it (such as via emp)
start_can_fail
The start of the cook loop, but can fail (result in a splat / dirty microwave)
- cooker - The mob that initiated the cook cycle, can be null if no apparent mob triggered it (such as via emp)
vampire
The start of the charge loop
- cooker - The mob that initiated the cook cycle, can be null if no apparent mob triggered it (such as via emp)