exodrone 
Exploration drone
Vars | |
| _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 |
Procs | |
| 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 | 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. |
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
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.