This commit is contained in:
Kyep
2018-07-07 16:15:26 -07:00
parent f7b0e03fc2
commit c3ed490159
2 changed files with 3 additions and 3 deletions
@@ -20,7 +20,7 @@
return
spawn_item(T)
/obj/effect/spawner/random_spawners/proc/spawn_item(var/turf/T)
/obj/effect/spawner/random_spawners/proc/spawn_item(turf/T)
if(!prob(spawn_nothing_percentage))
var/thing_to_place = pickweight(result)
if(ispath(thing_to_place, /turf))
@@ -188,7 +188,7 @@
/obj/item/clothing/mask/gas/syndicate = 1,
/obj/item/storage/box/syndie_kit/cutouts = 1)
/obj/effect/spawner/random_spawners/syndicate/loot/spawn_item(var/turf/T)
/obj/effect/spawner/random_spawners/syndicate/loot/spawn_item(turf/T)
if(!prob(spawn_nothing_percentage))
var/thing_to_place = pickweight(result)
if(ispath(thing_to_place, /turf))
@@ -109,7 +109,7 @@ Frequency:
/obj/item/hand_tele/attack_self(mob/user as mob)
var/turf/current_location = get_turf(user)//What turf is the user on?
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
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