Skip to content

Commit

Permalink
Door kill (#614)
Browse files Browse the repository at this point in the history
  • Loading branch information
lorianss authored Nov 15, 2024
1 parent 15409f8 commit c3d58e2
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion code/modules/mob/living/carbon/xenomorph/abilities.dm
Original file line number Diff line number Diff line change
Expand Up @@ -366,10 +366,15 @@
return

if(X.selected_resin == /obj/structure/bed/nest)
for(var/obj/structure/bed/nest/xeno_nest in range (2,T))
for(var/obj/structure/bed/nest/xeno_nest in range(2, T))
owner.balloon_alert(owner, span_notice("Another nest is too close!"))
return

if(X.selected_resin == /obj/structure/mineral_door/resin)
for(var/obj/structure/mineral_door/resin/door in range(2, T))
owner.balloon_alert(owner, span_notice("Another door is too close!"))
return

var/atom/new_resin
if(ispath(X.selected_resin, /turf)) // We should change turfs, not spawn them in directly
var/list/baseturfs = islist(T.baseturfs) ? T.baseturfs : list(T.baseturfs)
Expand All @@ -392,6 +397,10 @@
for(var/obj/structure/bed/nest/xeno_nest in range (2, T))
owner.balloon_alert(owner, span_notice("Another nest is too close!"))
return
if(X.selected_resin == /obj/structure/mineral_door/resin)
for(var/obj/structure/mineral_door/resin/door in range(2, T))
owner.balloon_alert(owner, span_notice("Another door is too close!"))
return
switch(is_valid_for_resin_structure(T, X.selected_resin == /obj/structure/mineral_door/resin, X.selected_resin))
if(ERROR_CANT_WEED)
owner.balloon_alert(owner, span_notice("This spot cannot support a garden!"))
Expand Down

0 comments on commit c3d58e2

Please sign in to comment.