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

exodrone

Exploration drone

Vars

_regex_contextUsed to provide source to the regex replacement function. DO NOT MODIFY DIRECTLY
busy_durationHow long will busy state last
busy_messageMessage that will show up on busy screen
busy_start_timeWhen we entered busy state
controlledAre we currently controlled by remote terminal, blocks other terminals from interacting with this drone.
drone_logLog of recent events
drone_statusCurrent drone status, see code__DEFINES\adventure.dm
last_padPad we've launched from, we'll try to land on this one first when coming back if it still exists.
locationSite we're currently at, null means station.
name_counterRepeated drone name counter
toolsList of tools, EXODRONE_TOOL_WELDER etc
travel_targetSite we're currently travelling to, null means going back to station - check drone status if you want to check if traveling or idle
travel_timeTotal travel time to our current target
travel_timer_idId of travel timer

Procs

add_toolAdds drone tool and resizes storage.
add_tool_qualitiesApplies adventure qualities based on our tools
award_adventure_lootAdds loot from current adventure to the drone
damageWe're home and on ready pad or exploring and out of any events/adventures Deals damage in adventures/events.
drop_somewhere_on_stationCrashes the drone somewhere random if there's no launchpad to be found.
explore_siteencounters random or specificed event for the current site.
find_landing_padTries to find landing pad, starting with the one we launched from.
finish_travelTravel cleanup
get_cargo_dataBuilds ui data for drone storage.
launch_forStarts travel for site, does not validate if it's possible
remove_toolRemoves drone tool and resizes storage.
replace_keywordThis is called with src = regex datum, so don't try to access any instance variables directly here.
resolve_adventureHandles finishing adventure
set_busyEnters busy mode for a given duration.
space_leftCargo space left
travel_errorReturns failure message or FALSE if we're ready to travel
try_transferTries to add loot to drone cargo while respecting space left
ui_descriptionDescription for drone listing, describes location and current status
unset_busyResets busy status
updateKeywordsReplaces $$SITE_NAME with site name and $$QualityName with quality values
update_storage_sizeResizes storage component depending on slots used by tools.

Var Details

_regex_context

Used to provide source to the regex replacement function. DO NOT MODIFY DIRECTLY

busy_duration

How long will busy state last

busy_message

Message that will show up on busy screen

busy_start_time

When we entered busy state

controlled

Are we currently controlled by remote terminal, blocks other terminals from interacting with this drone.

drone_log

Log of recent events

drone_status

Current drone status, see code__DEFINES\adventure.dm

last_pad

Pad we've launched from, we'll try to land on this one first when coming back if it still exists.

location

Site we're currently at, null means station.

name_counter

Repeated drone name counter

tools

List of tools, EXODRONE_TOOL_WELDER etc

travel_target

Site we're currently travelling to, null means going back to station - check drone status if you want to check if traveling or idle

travel_time

Total travel time to our current target

travel_timer_id

Id of travel timer

Proc Details

add_tool

Adds drone tool and resizes storage.

add_tool_qualities

Applies adventure qualities based on our tools

award_adventure_loot

Adds loot from current adventure to the drone

damage

We're home and on ready pad or exploring and out of any events/adventures Deals damage in adventures/events.

drop_somewhere_on_station

Crashes the drone somewhere random if there's no launchpad to be found.

explore_site

encounters random or specificed event for the current site.

find_landing_pad

Tries to find landing pad, starting with the one we launched from.

finish_travel

Travel cleanup

get_cargo_data

Builds ui data for drone storage.

launch_for

Starts travel for site, does not validate if it's possible

remove_tool

Removes drone tool and resizes storage.

replace_keyword

This is called with src = regex datum, so don't try to access any instance variables directly here.

resolve_adventure

Handles finishing adventure

set_busy

Enters busy mode for a given duration.

space_left

Cargo space left

travel_error

Returns failure message or FALSE if we're ready to travel

try_transfer

Tries to add loot to drone cargo while respecting space left

ui_description

Description for drone listing, describes location and current status

unset_busy

Resets busy status

updateKeywords

Replaces $$SITE_NAME with site name and $$QualityName with quality values

update_storage_size

Resizes storage component depending on slots used by tools.