/tg/ Station 13 - Modules - TypesVar Details - Proc Details

reagent_forge

Vars

choice_listThe list of possible things to make with materials used on the forge
forge_fuel_strongHow many seconds of strong fuel (coal) does the forge have left
forge_fuel_weakHow many seconds of weak fuel (wood) does the forge have left
forge_levelThe current 'level' of the forge, how upgraded is it from zero to three
forge_temperatureWhat the current internal temperature of the forge is
forging_cooldownCooldown time for processing on the forge
in_useIs the forge in use or not? If true, prevents most interactions with the forge
minimum_target_temperatureWhat the minimum target temperature is, used for upgrades
radial_choice_listList of possible choices for the selection radial
reagent_forgingIf the forge is capable of reagent forging or not
smoke_stateWhat smoke particles should be coming out of the forge
target_temperatureWhat temperature the forge is moving towards
temperature_loss_reductionWhat is the current reduction for temperature decrease
used_trayTracks any oven tray placed inside of the forge

Procs

add_tray_to_forgeTake the given tray and place it inside the forge, updating everything relevant to that
check_fuelChecks 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_useIf 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_tempAdjust the temperature to head towards the target temperature, changing icon and creating light if the temperature is rising
create_reagent_forgeGives the forge the ability to imbue reagents into things
fail_messageCreates both a fail message balloon alert, and sets in_use to false
handle_baking_thingsSends 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_ceramicsSets ceramic items from their unusable state into their finished form
handle_clothing_imbueHandles 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_meltingHandles the creation of molten glass from glass sheets
handle_metal_cup_meltingHandles creating molten glass from a metal cup filled with sand
handle_weapon_imbueHandles weapon reagent imbuing
populate_radial_choice_listFills out the radial choice list with everything in the choice_list's contents
refuelAdds to either the strong or weak fuel timers from the given stack
remove_tray_from_forgeTake the used_tray and spit it out, updating everything relevant to that
set_smoke_stateSets the type of particles that the forge should be generating
smelt_oreTakes given ore and smelts it, possibly producing extra sheets if upgraded
spawn_coalSpawns a piece of coal at the forge and renames it to charcoal

Var Details

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

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