byond - Modules - TypesVar Details - Proc Details

miner

Resource generator that produces a certain material that can be repaired by marines and attacked by xenos, Intended as an objective for marines to play towards to get more req gear

Vars

add_tickTracks how many ticks have passed since we last added a sheet of material
dropship_bonusApplies the actual bonus points for the dropship for each sale
max_miner_integrityMax health of the miner
miner_integrityHealth for the miner we use because changing obj_integrity is apparently bad
miner_statusCurrent status of the miner
miner_upgrade_typeWhat type of upgrade it has installed , used to change the icon of the miner.
mineral_valueThe mineral type that's produced
required_ticksHow many times we neeed to tick for a resource to be created, in this case this is 2* the specified amount
stored_mineralHow many sheets of material we have stored

Procs

attempt_upgradeCalled whenever someone attacks the miner with a object which is considered a upgrade.The object needs to have a uptype var.
disable_on_hijackCalled via global signal to prevent perpetual mining
init_markerThis proc is called during Initialize() and should be used to initially setup the minimap marker of a functional miner.
record_miner_repairSeparate record keeping proc to reduce copy pasta

Var Details

add_tick

Tracks how many ticks have passed since we last added a sheet of material

dropship_bonus

Applies the actual bonus points for the dropship for each sale

max_miner_integrity

Max health of the miner

miner_integrity

Health for the miner we use because changing obj_integrity is apparently bad

miner_status

Current status of the miner

miner_upgrade_type

What type of upgrade it has installed , used to change the icon of the miner.

mineral_value

The mineral type that's produced

required_ticks

How many times we neeed to tick for a resource to be created, in this case this is 2* the specified amount

stored_mineral

How many sheets of material we have stored

Proc Details

attempt_upgrade

Called whenever someone attacks the miner with a object which is considered a upgrade.The object needs to have a uptype var.

disable_on_hijack

Called via global signal to prevent perpetual mining

init_marker

This proc is called during Initialize() and should be used to initially setup the minimap marker of a functional miner.

record_miner_repair

Separate record keeping proc to reduce copy pasta