mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-29 16:10:02 +01:00
Changes to drones and z-macros (#7068)
Turns the z-level restriction procs into macros Changes z-level restrictions to use the macros Use contact_levels for announcements (instead of player_levels) Restricts the teleporter to station_levels instead of player_levels Restricts AI tracking to station_levels instead of player_levels Mechs only get tracking beacons if they are on station_levels (instead of player_levels) Construction Drones gib if they enter a station level Mining Drones gib if they leave the station levels Removes the mining equipment vendor from the scrapheap
This commit is contained in:
@@ -108,7 +108,7 @@
|
||||
if (start_with_cell && !no_emergency)
|
||||
cell = new /obj/item/weapon/cell/device/emergency_light(src)
|
||||
|
||||
if (mapload && loc && !(z in current_map.admin_levels))
|
||||
if (mapload && loc && isNotAdminLevel(z))
|
||||
switch(fitting)
|
||||
if("tube")
|
||||
if(prob(2))
|
||||
|
||||
@@ -436,7 +436,7 @@
|
||||
failure_timer = max(failure_timer, duration)
|
||||
|
||||
/obj/machinery/power/smes/proc/ion_act()
|
||||
if(src.z in current_map.station_levels)
|
||||
if(isStationLevel(src.z))
|
||||
if(prob(1)) //explosion
|
||||
for(var/mob/M in viewers(src))
|
||||
M.show_message("<span class='warning'>The [src.name] is making strange noises!</span>", 3, "<span class='warning'>You hear sizzling electronics.</span>", 2)
|
||||
|
||||
Reference in New Issue
Block a user