Bluespace Harvester ![code/modules/station_goals/bluespace_tap.dm 199](git.png)
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 | |
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. |
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 |
Procs | |
decrease_level | Decreases the desired mining level |
get_power_use | Gets the amount of power at a set input level |
increase_level | Increases the desired mining level |
produce | Produces the product with the desired key and increases product cost accordingly |
set_level | Sets the desired mining level |
Var Details
actual_power_usage ![code/modules/station_goals/bluespace_tap.dm 236](git.png)
How much power the machine needs per processing tick at the current level.
base_points ![code/modules/station_goals/bluespace_tap.dm 244](git.png)
Amount of points to give per mining level
desired_level ![code/modules/station_goals/bluespace_tap.dm 230](git.png)
The machine you WANT the machine to mine at. It will try to match this.
fillers ![code/modules/station_goals/bluespace_tap.dm 207](git.png)
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 ![code/modules/station_goals/bluespace_tap.dm 228](git.png)
The level the machine is currently mining at. 0 means off
max_level ![code/modules/station_goals/bluespace_tap.dm 242](git.png)
Max power input level, I don't expect this to be ever reached
points ![code/modules/station_goals/bluespace_tap.dm 232](git.png)
Available mining points
power_needs ![code/modules/station_goals/bluespace_tap.dm 214](git.png)
Correspond to power required for a mining level, first entry for level 1, etc.
product_list ![code/modules/station_goals/bluespace_tap.dm 220](git.png)
list of possible products
safe_levels ![code/modules/station_goals/bluespace_tap.dm 246](git.png)
How high the machine can be run before it starts having a chance for dimension breaches.
total_points ![code/modules/station_goals/bluespace_tap.dm 234](git.png)
The total points earned by this machine so far, for tracking station goal and highscore
Proc Details
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.
- i_level - The hypothetical input level for which we want to know the 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:
- t_level - The level we try to set it at, between 0 and max_level