Skip to content

Commit

Permalink
makes requested zonespace changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Birdtalon committed Oct 13, 2023
1 parent 754597c commit f008486
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@

//X = xeno user, A = target atom
var/list/turf/target_turfs = getline2(source_xeno, targetted_atom, include_from_atom = FALSE)
var/len = LAZYLEN(target_turfs)
if(len > 3)
var/length_of_line = LAZYLEN(target_turfs)
if(length_of_line > 3)
target_turfs = target_turfs.Copy(1, 4)

// Get list of target mobs
Expand All @@ -30,8 +30,8 @@
break

//Check for structures such as doors
for(var/atom/path_content in path_turf.contents)
if(istype(path_content, /obj))
for(var/atom/path_content as anything in path_turf.contents)
if(isobj(path_content))
var/obj/object = path_content
//If we shouldn't be able to pass through it then stop at this turf
if(object.density && !object.throwpass)
Expand All @@ -44,7 +44,7 @@
framed_window.deconstruct(disassembled = FALSE)

//Check for mobs and add them to our target list for damage
if(istype(path_content, /mob/living/carbon))
if(iscarbon(path_content))
var/mob/living/carbon/mob_to_act = path_content
if(!isxeno_human(mob_to_act) || source_xeno.can_not_harm(mob_to_act))
continue
Expand Down

0 comments on commit f008486

Please sign in to comment.