Shiptest 13 - Modules - TypesVar Details - Proc Details

Simulated overmap ship

A ship that corresponds to an actual, physical shuttle.

Can be docked to any other overmap datum that has a valid docking process.

Vars

avg_fuel_amntAverage fuel fullness percentage
est_thrustVessel estimated thrust
helm_lockedIs helm access for this ship locked
helmsAll helms connected to this ship
job_slot_adjustment_cooldownTime that next job slot change can occur
job_slotsAssoc list of remaining open job slots (job = remaining slots)
join_allowedWhether or not new players are allowed to join the ship
manifestManifest list of people on the ship
massVessel approximate mass
memoShort memo of the ship shown to new joins
rename_cooldownCooldown until the ship can be renamed again
ship_accountShipwide bank account used for cargo consoles and bounty payouts.
shipkeyThe shipkey for this ship
shuttle_portThe docking port of the linked shuttle. To add a port after creating a controlled ship datum, use /datum/overmap/ship/controlled/proc/connect_new_shuttle_port.
source_templateThe map template the shuttle was spawned from, if it was indeed created from a template. CAN BE NULL (ex. custom-built ships).

Procs

Initializecreation_template - The template used to create the ship. target_port - The port to dock the new ship to.
calculate_avg_fuelCalculates the average fuel fullness of all engines.
calculate_massCalculates the mass based on the amount of turfs in the shuttle's areas
connect_new_shuttle_portConnects a new shuttle port to the ship datum. Should be used very shortly after the ship is created, if at all. Used to connect the shuttle port to a ship datum that was created without a template.
dock_in_empty_spaceDocks to an empty dynamic encounter. Used for intership interaction, structural modifications, and such
manifest_injectBastardized version of GLOB.manifest.manifest_inject, but used per ship
refresh_enginesJust double checks all the engines on the shuttle

Var Details

avg_fuel_amnt

Average fuel fullness percentage

est_thrust

Vessel estimated thrust

helm_locked

Is helm access for this ship locked

helms

All helms connected to this ship

job_slot_adjustment_cooldown

Time that next job slot change can occur

job_slots

Assoc list of remaining open job slots (job = remaining slots)

join_allowed

Whether or not new players are allowed to join the ship

manifest

Manifest list of people on the ship

mass

Vessel approximate mass

memo

Short memo of the ship shown to new joins

rename_cooldown

Cooldown until the ship can be renamed again

ship_account

Shipwide bank account used for cargo consoles and bounty payouts.

shipkey

The shipkey for this ship

shuttle_port

The docking port of the linked shuttle. To add a port after creating a controlled ship datum, use /datum/overmap/ship/controlled/proc/connect_new_shuttle_port.

source_template

The map template the shuttle was spawned from, if it was indeed created from a template. CAN BE NULL (ex. custom-built ships).

Proc Details

Initialize

creation_template - The template used to create the ship. target_port - The port to dock the new ship to.

calculate_avg_fuel

Calculates the average fuel fullness of all engines.

calculate_mass

Calculates the mass based on the amount of turfs in the shuttle's areas

connect_new_shuttle_port

Connects a new shuttle port to the ship datum. Should be used very shortly after the ship is created, if at all. Used to connect the shuttle port to a ship datum that was created without a template.

dock_in_empty_space

Docks to an empty dynamic encounter. Used for intership interaction, structural modifications, and such

manifest_inject

Bastardized version of GLOB.manifest.manifest_inject, but used per ship

refresh_engines

Just double checks all the engines on the shuttle