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

miningcar

Vars

momentumHow many turfs we are travelling, also functions as speed (more momentum = faster)
on_railsWhether we're on a set of rails or just on the ground

Procs

calculate_delayCalculates how fast the cart is going
can_travel_on_turfChecks if we can travel on the passed turf
shove_offStarts the cart moving automatically.
smackCalled when the minecart smacks into someone.
throw_contentsThrows all the contents of the cart out ahead
try_put_on_railsAttempt to put the cart on rails
try_take_off_railsAttempt to remove the cart from rails
update_rail_stateUpdates the state of the minecart to be on or off rails.

Var Details

momentum

How many turfs we are travelling, also functions as speed (more momentum = faster)

on_rails

Whether we're on a set of rails or just on the ground

Proc Details

calculate_delay

Calculates how fast the cart is going

can_travel_on_turf

Checks if we can travel on the passed turf

shove_off

Starts the cart moving automatically.

smack

Called when the minecart smacks into someone.

throw_contents

Throws all the contents of the cart out ahead

try_put_on_rails

Attempt to put the cart on rails

try_take_off_rails

Attempt to remove the cart from rails

update_rail_state

Updates the state of the minecart to be on or off rails.