peaceful mode, loot rework, hand tele respect areas, AI

This commit is contained in:
Kyep
2018-01-07 01:12:12 -08:00
parent da710c363e
commit 83192c3678
10 changed files with 400 additions and 310 deletions
@@ -107,9 +107,11 @@ Frequency:
/obj/item/weapon/hand_tele/attack_self(mob/user as mob)
var/turf/current_location = get_turf(user)//What turf is the user on?
if(!current_location||!is_teleport_allowed(current_location.z))//If turf was not found or they're somewhere teleproof
var/area/current_area = get_area(user)
if(!current_location||!is_teleport_allowed(current_location.z) || current_area.tele_proof)//If turf was not found or they're somewhere teleproof
to_chat(user, "<span class='notice'>\The [src] is malfunctioning.</span>")
return
var/list/L = list( )
for(var/obj/machinery/computer/teleporter/com in world)
if(com.target)