Yogstation 13 - Modules - TypesVar Details - Proc Details

Bluespace Harvester

A station goal that consumes enormous amounts of power to generate (mostly fluff) rewards

A machine that takes power each tick, generates points based on it and lets you spend those points on rewards. A certain amount of points has to be generated for the station goal to count as completed.

Vars

active_nether_portalsWhen event triggers this will hold references to all portals so we can fix the sprite after they're broken
actual_power_usageHow much power the machine needs per processing tick at the current level.
base_pointsAmount of points to give per mining level
desired_levelThe machine you WANT the machine to mine at. It will try to match this.
emergency_shutdownCooldown to prevent spamming portal spawns without an emag
fillersFor faking having a big machine, dummy 'machines' that are hidden inside the large sprite and make certain tiles dense. See new and destroy.
input_levelThe level the machine is currently mining at. 0 means off
max_levelMax power input level, I don't expect this to be ever reached
pointsAvailable mining points
power_needsCorrespond to power required for a mining level, first entry for level 1, etc.
product_listlist of possible products
safe_levelsHow high the machine can be run before it starts having a chance for dimension breaches.
total_pointsThe total points earned by this machine so far, for tracking station goal and highscore

Procs

attack_handA list of lists, each inner list equals a datum
decrease_levelDecreases the desired mining level
get_power_useGets the amount of power at a set input level
increase_levelIncreases the desired mining level
produceProduces the product with the desired key and increases product cost accordingly
set_levelSets the desired mining level

Var Details

active_nether_portals

When event triggers this will hold references to all portals so we can fix the sprite after they're broken

actual_power_usage

How much power the machine needs per processing tick at the current level.

base_points

Amount of points to give per mining level

desired_level

The machine you WANT the machine to mine at. It will try to match this.

emergency_shutdown

Cooldown to prevent spamming portal spawns without an emag

fillers

For faking having a big machine, dummy 'machines' that are hidden inside the large sprite and make certain tiles dense. See new and destroy.

input_level

The level the machine is currently mining at. 0 means off

max_level

Max power input level, I don't expect this to be ever reached

points

Available mining points

power_needs

Correspond to power required for a mining level, first entry for level 1, etc.

product_list

list of possible products

safe_levels

How high the machine can be run before it starts having a chance for dimension breaches.

total_points

The total points earned by this machine so far, for tracking station goal and highscore

Proc Details

attack_hand

A list of lists, each inner list equals a datum

decrease_level

Decreases the desired mining level

Decreases the desired mining level, that the machine tries to reach if there is enough power for it. Note that it does NOT decrease the actual mining level directly.

get_power_use

Gets the amount of power at a set input level

Gets the amount of power (in W) a set input level needs. Note that this is not necessarily the current power use.

increase_level

Increases the desired mining level

Increases the desired mining level, that the machine tries to reach if there is enough power for it. Note that it does NOT increase the actual mining level directly.

produce

Produces the product with the desired key and increases product cost accordingly

set_level

Sets the desired mining level

Sets the desired mining level, that the machine tries to reach if there is enough power for it. Note that it does NOT change the actual mining level directly. Arguments: