reagent_forge ![modular_skyrat/modules/reagent_forging/code/forge.dm 41](git.png)
Vars | |
choice_list | The list of possible things to make with materials used on the forge |
---|---|
forge_fuel_strong | How many seconds of strong fuel (coal) does the forge have left |
forge_fuel_weak | How many seconds of weak fuel (wood) does the forge have left |
forge_level | The current 'level' of the forge, how upgraded is it from zero to three |
forge_temperature | What the current internal temperature of the forge is |
forging_cooldown | Cooldown time for processing on the forge |
in_use | Is the forge in use or not? If true, prevents most interactions with the forge |
minimum_target_temperature | What the minimum target temperature is, used for upgrades |
radial_choice_list | List of possible choices for the selection radial |
reagent_forging | If the forge is capable of reagent forging or not |
smoke_state | What smoke particles should be coming out of the forge |
target_temperature | What temperature the forge is moving towards |
temperature_loss_reduction | What is the current reduction for temperature decrease |
used_tray | Tracks any oven tray placed inside of the forge |
Procs | |
add_tray_to_forge | Take the given tray and place it inside the forge, updating everything relevant to that |
check_fuel | Checks if the forge has fuel, if so what type. If it has either type of fuel, returns TRUE, otherwise returns FALSE. just_checking will check if there is fuel without taking actions |
check_in_use | If the forge is in use, checks if there is an oven tray, then if there are any mobs actually in use range. If not sets the forge to not be in use. |
check_temp | Adjust the temperature to head towards the target temperature, changing icon and creating light if the temperature is rising |
create_reagent_forge | Gives the forge the ability to imbue reagents into things |
fail_message | Creates both a fail message balloon alert, and sets in_use to false |
handle_baking_things | Sends signals to bake and items on the used tray, setting the smoke state of the forge according to the most cooked item in it |
handle_ceramics | Sets ceramic items from their unusable state into their finished form |
handle_clothing_imbue | Handles clothing imbuing, extremely similar to weapon imbuing but not in the same proc because of how uhh... goofy the way this has to be done is |
handle_glass_sheet_melting | Handles the creation of molten glass from glass sheets |
handle_metal_cup_melting | Handles creating molten glass from a metal cup filled with sand |
handle_weapon_imbue | Handles weapon reagent imbuing |
populate_radial_choice_list | Fills out the radial choice list with everything in the choice_list's contents |
refuel | Adds to either the strong or weak fuel timers from the given stack |
remove_tray_from_forge | Take the used_tray and spit it out, updating everything relevant to that |
set_smoke_state | Sets the type of particles that the forge should be generating |
smelt_ore | Takes given ore and smelts it, possibly producing extra sheets if upgraded |
spawn_coal | Spawns a piece of coal at the forge and renames it to charcoal |
Var Details
choice_list ![modular_skyrat/modules/reagent_forging/code/forge.dm 75](git.png)
The list of possible things to make with materials used on the forge
forge_fuel_strong ![modular_skyrat/modules/reagent_forging/code/forge.dm 61](git.png)
How many seconds of strong fuel (coal) does the forge have left
forge_fuel_weak ![modular_skyrat/modules/reagent_forging/code/forge.dm 59](git.png)
How many seconds of weak fuel (wood) does the forge have left
forge_level ![modular_skyrat/modules/reagent_forging/code/forge.dm 69](git.png)
The current 'level' of the forge, how upgraded is it from zero to three
forge_temperature ![modular_skyrat/modules/reagent_forging/code/forge.dm 51](git.png)
What the current internal temperature of the forge is
forging_cooldown ![modular_skyrat/modules/reagent_forging/code/forge.dm 65](git.png)
Cooldown time for processing on the forge
in_use ![modular_skyrat/modules/reagent_forging/code/forge.dm 67](git.png)
Is the forge in use or not? If true, prevents most interactions with the forge
minimum_target_temperature ![modular_skyrat/modules/reagent_forging/code/forge.dm 55](git.png)
What the minimum target temperature is, used for upgrades
radial_choice_list ![modular_skyrat/modules/reagent_forging/code/forge.dm 92](git.png)
List of possible choices for the selection radial
reagent_forging ![modular_skyrat/modules/reagent_forging/code/forge.dm 63](git.png)
If the forge is capable of reagent forging or not
smoke_state ![modular_skyrat/modules/reagent_forging/code/forge.dm 71](git.png)
What smoke particles should be coming out of the forge
target_temperature ![modular_skyrat/modules/reagent_forging/code/forge.dm 53](git.png)
What temperature the forge is moving towards
temperature_loss_reduction ![modular_skyrat/modules/reagent_forging/code/forge.dm 57](git.png)
What is the current reduction for temperature decrease
used_tray ![modular_skyrat/modules/reagent_forging/code/forge.dm 73](git.png)
Tracks any oven tray placed inside of the forge
Proc Details
add_tray_to_forge
Take the given tray and place it inside the forge, updating everything relevant to that
check_fuel
Checks if the forge has fuel, if so what type. If it has either type of fuel, returns TRUE, otherwise returns FALSE. just_checking will check if there is fuel without taking actions
check_in_use
If the forge is in use, checks if there is an oven tray, then if there are any mobs actually in use range. If not sets the forge to not be in use.
check_temp
Adjust the temperature to head towards the target temperature, changing icon and creating light if the temperature is rising
create_reagent_forge
Gives the forge the ability to imbue reagents into things
fail_message
Creates both a fail message balloon alert, and sets in_use to false
handle_baking_things
Sends signals to bake and items on the used tray, setting the smoke state of the forge according to the most cooked item in it
handle_ceramics
Sets ceramic items from their unusable state into their finished form
handle_clothing_imbue
Handles clothing imbuing, extremely similar to weapon imbuing but not in the same proc because of how uhh... goofy the way this has to be done is
handle_glass_sheet_melting
Handles the creation of molten glass from glass sheets
handle_metal_cup_melting
Handles creating molten glass from a metal cup filled with sand
handle_weapon_imbue
Handles weapon reagent imbuing
populate_radial_choice_list
Fills out the radial choice list with everything in the choice_list's contents
refuel
Adds to either the strong or weak fuel timers from the given stack
remove_tray_from_forge
Take the used_tray and spit it out, updating everything relevant to that
set_smoke_state
Sets the type of particles that the forge should be generating
smelt_ore
Takes given ore and smelts it, possibly producing extra sheets if upgraded
spawn_coal
Spawns a piece of coal at the forge and renames it to charcoal