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

big_manipulator

Vars

current_taskThe current task.
dropoff_pointsList of dropoff points.
dropoff_strategyDropoff strategy for tasking.
dropoff_taskingWhich tasking scenario we use for dropoff points?
held_objectThe object inside the manipulator.
hud_pointsList of all HUD icons resembling interaction points.
id_lockWeakref to the ID that locked this manipulator.
interaction_point_limitHow many interaction points of each kind can we have?
manipulator_armThe manipulator's arm.
monkey_workerThe chimp worker that uses the manipulator (handles USE cases).
next_cycle_scheduledWas the next cycle already scheduled?
onIs the manipulator turned on?
pickup_pointsList of pickup points.
pickup_strategyPickup strategy for tasking.
pickup_taskingWhich tasking scenario we use for pickup points?
power_access_wire_cutIs the power access wire cut? Disables the power button if TRUE.
speed_multiplierHow quickly the manipulator will process it's actions.

Procs

check_end_of_use_for_use_with_empty_handChecks if we should continue using the empty hand after interaction
check_for_cycle_end_dropChecks what should we do with the held_object after USE-ing it.
complete_stopping_taskCompletes the stopping task and transitions to TASK_NONE
create_manipulator_armAttaching the arm effect to the core.
create_new_interaction_pointAttempts to create a new interaction point and assign it to the correct list.
cycle_valueCycles the given value in the given list. Retuns the next value in the list, or the first one if the list isn't long enough.
do_step_rotationDoes a 45 degree step, animating the claw
drop_held_atomDrop the held atom.
end_current_taskEnds the current task
find_next_pointCalculates the next interaction point the manipulator should transfer the item to or pick up it from.
find_pickup_candidate_for_pickup_pointSelects which atom to pick up from this point for interaction with available dropoff points based on the dropoff points.
find_suitable_turfAttempts to find a suitable turf near the manipulator
find_suitable_turf_nearFinds a suitable turf near the given location
finish_manipulationCompletes the current manipulation action
handle_no_work_availableHandles the common pattern of waiting and scheduling next cycle when no work can be done.
interact_with_origin_pointAttempts to start a work cycle (pick up the object)
process_upgradesChecks the component tiers, adjusting the properties of the manipulator.
remove_invalid_pointRemoves an invalid interaction point from the lists.
rotate_to_pointRotates the manipulator arm to face the target point.
run_pickup_phaseAttempts to run the pickup phase. Selects the next origin point and attempts to pick up an item from it.
schedule_next_cycleSafely schedules the next cycle attempt to prevent overlapping.
start_taskBegins a new task with the specified type and duration
throw_thingThrows the held object in the direction of the interaction point.
try_drop_thingMoves the item onto the turf.
try_interact_with_destination_pointAttempts to interact with the destination point (drop/use/throw the object)
try_interact_with_origin_pointAttempts to interact with the origin point (pick up the object)
try_kickstartAttempts to launch the work cycle. Should only be ran on pressing the "Run" button.
try_press_onAttempts to press the power button.
try_use_thingAttempts to use the held object on the atoms of the interaction turf.
update_hudRe-creates hud images for the points
update_point_positionUpdates a single interaction point's position by the given offset
use_thing_with_empty_handUses the empty hand to interact with objects

Var Details

current_task

The current task.

dropoff_points

List of dropoff points.

dropoff_strategy

Dropoff strategy for tasking.

dropoff_tasking

Which tasking scenario we use for dropoff points?

held_object

The object inside the manipulator.

hud_points

List of all HUD icons resembling interaction points.

id_lock

Weakref to the ID that locked this manipulator.

interaction_point_limit

How many interaction points of each kind can we have?

manipulator_arm

The manipulator's arm.

monkey_worker

The chimp worker that uses the manipulator (handles USE cases).

next_cycle_scheduled

Was the next cycle already scheduled?

on

Is the manipulator turned on?

pickup_points

List of pickup points.

pickup_strategy

Pickup strategy for tasking.

pickup_tasking

Which tasking scenario we use for pickup points?

power_access_wire_cut

Is the power access wire cut? Disables the power button if TRUE.

speed_multiplier

How quickly the manipulator will process it's actions.

Proc Details

check_end_of_use_for_use_with_empty_hand

Checks if we should continue using the empty hand after interaction

check_for_cycle_end_drop

Checks what should we do with the held_object after USE-ing it.

complete_stopping_task

Completes the stopping task and transitions to TASK_NONE

create_manipulator_arm

Attaching the arm effect to the core.

create_new_interaction_point

Attempts to create a new interaction point and assign it to the correct list.

cycle_value

Cycles the given value in the given list. Retuns the next value in the list, or the first one if the list isn't long enough.

do_step_rotation

Does a 45 degree step, animating the claw

drop_held_atom

Drop the held atom.

end_current_task

Ends the current task

find_next_point

Calculates the next interaction point the manipulator should transfer the item to or pick up it from.

find_pickup_candidate_for_pickup_point

Selects which atom to pick up from this point for interaction with available dropoff points based on the dropoff points.

find_suitable_turf

Attempts to find a suitable turf near the manipulator

find_suitable_turf_near

Finds a suitable turf near the given location

finish_manipulation

Completes the current manipulation action

handle_no_work_available

Handles the common pattern of waiting and scheduling next cycle when no work can be done.

interact_with_origin_point

Attempts to start a work cycle (pick up the object)

process_upgrades

Checks the component tiers, adjusting the properties of the manipulator.

remove_invalid_point

Removes an invalid interaction point from the lists.

rotate_to_point

Rotates the manipulator arm to face the target point.

run_pickup_phase

Attempts to run the pickup phase. Selects the next origin point and attempts to pick up an item from it.

schedule_next_cycle

Safely schedules the next cycle attempt to prevent overlapping.

start_task

Begins a new task with the specified type and duration

throw_thing

Throws the held object in the direction of the interaction point.

try_drop_thing

Moves the item onto the turf.

If the turf has an atom with fitting atom_storage that corresponds to the priority settings, it will attempt to insert the held item.

try_interact_with_destination_point

Attempts to interact with the destination point (drop/use/throw the object)

try_interact_with_origin_point

Attempts to interact with the origin point (pick up the object)

try_kickstart

Attempts to launch the work cycle. Should only be ran on pressing the "Run" button.

try_press_on

Attempts to press the power button.

try_use_thing

Attempts to use the held object on the atoms of the interaction turf.

If the interaction turf has an atom that corresponds to the priority settings, it will attempt to use the held item. If it doesn't, it will simply drop the item.

update_hud

Re-creates hud images for the points

update_point_position

Updates a single interaction point's position by the given offset

use_thing_with_empty_hand

Uses the empty hand to interact with objects