mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-01-06 23:41:57 +00:00
Allows mining drones to go mining (#14237)
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
hat_x_offset = 1
|
||||
hat_y_offset = -12
|
||||
standard_drone = FALSE
|
||||
var/list/allowed_areas = list(/area/exoplanet, /area/shuttle/mining, /area/shuttle/intrepid) //Needed for the bot to go mining
|
||||
var/seeking_player = FALSE
|
||||
var/health_upgrade
|
||||
var/ranged_upgrade
|
||||
@@ -118,6 +119,8 @@
|
||||
var/turf/T = get_turf(src)
|
||||
if (!T || isStationLevel(T.z))
|
||||
return FALSE
|
||||
if(is_type_in_list(get_area(T), allowed_areas))
|
||||
return FALSE
|
||||
if(!self_destructing)
|
||||
to_chat(src, SPAN_DANGER("WARNING: Removal from [current_map.company_name] property detected. Anti-Theft mode activated."))
|
||||
start_self_destruct(TRUE)
|
||||
|
||||
Reference in New Issue
Block a user