Allows mining drones to go mining (#14237)

This commit is contained in:
Doxxmedearly
2022-06-07 14:09:25 -04:00
committed by GitHub
parent 22ad5d1b1c
commit fbb8588b20
2 changed files with 7 additions and 0 deletions

View File

@@ -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)