Skip to content

Commit

Permalink
added some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Birdtalon committed Oct 11, 2023
1 parent c29513b commit ff7a227
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,15 @@
for(var/turf/path_turf as anything in target_turfs)
if(blocked)
break
//Check for walls etc
//Check for walls etc and stop if we encounter one
if(path_turf.density)
break

//Check for structures such as doors
for(var/atom/path_content in path_turf.contents)
if(istype(path_content, /obj))
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)
blocked = TRUE
break
Expand All @@ -42,6 +43,7 @@
if(!W.unslashable)
W.deconstruct(disassembled = FALSE)

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

0 comments on commit ff7a227

Please sign in to comment.