Space Station 13 - Modules - TypesVar Details - Proc Details

Ore Redemption Machine

Turns all the various mining machines into a single unit to speed up tmining and establish a point system.

Vars

anyone_claimIf TRUE, /obj/machinery/mineral/ore_redemption/var/req_access_claim is ignored and any ID may be used to claim points.
filesLocally known R&D designs.
inserted_diskThe currently inserted design disk.
message_sentWhether the message to relevant supply consoles was sent already or not for an ore dump. If FALSE, another will be sent.
ore_bufferList of ore yet to process.
point_upgradePoint multiplier applied when smelting ore. Updated by [/obj/machinery/proc/RefreshParts].
pointsThe number of unclaimed points.
req_access_claimThe access number required to claim points from the machine.
sheet_per_oreSheet multiplier applied when smelting ore. Updated by [/obj/machinery/proc/RefreshParts].
supply_consolesList of supply console department names that can receive a notification about ore dumps. A list may be provided as entry value to only notify when specific ore is dumped.

Procs

get_num_smeltable_alloyReturns the amount of alloy sheets that can be produced from the given design.
give_pointsAdds a set number of mining points, based on the ore points, the ore amount, and the ORM upgrade state.
on_material_insertCalled when an item is inserted manually as material.
process_oresProcesses the given list of ores.
send_console_messageNotifies all relevant supply consoles with the machine's contents.
smelt_oreSmelts the given stack of ore.

Var Details

anyone_claim

If TRUE, /obj/machinery/mineral/ore_redemption/var/req_access_claim is ignored and any ID may be used to claim points.

files

Locally known R&D designs.

inserted_disk

The currently inserted design disk.

message_sent

Whether the message to relevant supply consoles was sent already or not for an ore dump. If FALSE, another will be sent.

ore_buffer

List of ore yet to process.

point_upgrade

Point multiplier applied when smelting ore. Updated by [/obj/machinery/proc/RefreshParts].

points

The number of unclaimed points.

req_access_claim

The access number required to claim points from the machine.

sheet_per_ore

Sheet multiplier applied when smelting ore. Updated by [/obj/machinery/proc/RefreshParts].

supply_consoles

List of supply console department names that can receive a notification about ore dumps. A list may be provided as entry value to only notify when specific ore is dumped.

Proc Details

get_num_smeltable_alloy

Returns the amount of alloy sheets that can be produced from the given design.

Arguments:

give_points

Adds a set number of mining points, based on the ore points, the ore amount, and the ORM upgrade state.

Arguments:

on_material_insert

Called when an item is inserted manually as material.

Arguments:

process_ores

Processes the given list of ores.

Arguments:

send_console_message

Notifies all relevant supply consoles with the machine's contents.

smelt_ore

Smelts the given stack of ore.

Arguments: