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

boulder

The objects that ore vents produce, which is refined into minerals.

Vars

boulder_sizeWhat was the size of the boulder when it was spawned? This is used for inheiriting the icon_state.
boulder_stringUsed in inheriting the icon_state from our parent vent in update_icon.
durabilityHow many steps of refinement this boulder has gone through. Starts at 5-8, goes down one each machine process.
processed_byWhen a refinery machine is working on this boulder, we'll set this. Re reset when the process is finished, but the boulder may still be refined/operated on further.

Procs

break_apartMoves boulder contents to the drop location, and then deletes the boulder.
convert_to_oreThis function is called while breaking boulders manually, and drops ore based on the boulder's mineral content. Quantity of ore spawned here is 1 less than if the boulder was processed by a machine, but clamped at 10 maximum, 1 minimum.
manual_processThis is called when a boulder is processed by a mob or tool, and reduces the durability of the boulder. @param obj/item/weapon The weapon that is being used to process the boulder, that we pull toolspeed from. If null, we use the override_speed_multiplier instead. @param mob/living/user The mob that is processing the boulder. @param override_speed_multiplier The speed multiplier to use if weapon is null. The do_after will take 2 * this value seconds to complete. @param continued Whether or not this is a continued process, or the first one. If true, we don't play the "You swing at the boulder" message.

Var Details

boulder_size

What was the size of the boulder when it was spawned? This is used for inheiriting the icon_state.

boulder_string

Used in inheriting the icon_state from our parent vent in update_icon.

durability

How many steps of refinement this boulder has gone through. Starts at 5-8, goes down one each machine process.

processed_by

When a refinery machine is working on this boulder, we'll set this. Re reset when the process is finished, but the boulder may still be refined/operated on further.

Proc Details

break_apart

Moves boulder contents to the drop location, and then deletes the boulder.

convert_to_ore

This function is called while breaking boulders manually, and drops ore based on the boulder's mineral content. Quantity of ore spawned here is 1 less than if the boulder was processed by a machine, but clamped at 10 maximum, 1 minimum.

target_destination: Optional - Sets the location directly instead of dropping it

manual_process

This is called when a boulder is processed by a mob or tool, and reduces the durability of the boulder. @param obj/item/weapon The weapon that is being used to process the boulder, that we pull toolspeed from. If null, we use the override_speed_multiplier instead. @param mob/living/user The mob that is processing the boulder. @param override_speed_multiplier The speed multiplier to use if weapon is null. The do_after will take 2 * this value seconds to complete. @param continued Whether or not this is a continued process, or the first one. If true, we don't play the "You swing at the boulder" message.