Make spiders ignore SSD players as wrapping targets. (#32346)

This commit is contained in:
Alan
2026-08-01 06:22:55 +00:00
committed by GitHub
parent f96747fa84
commit b8871b8045
2 changed files with 4 additions and 2 deletions
@@ -103,6 +103,8 @@
continue
if(L.stat != DEAD)
continue
if(isLivingSSD(L))
continue
if(istype(L, /mob/living/basic/giant_spider))
continue
if(Adjacent(L))
@@ -117,7 +119,7 @@
if(length(choices))
cocoon_target = tgui_input_list(src, "What do you wish to cocoon?", "Cocoon Wrapping", choices)
else
to_chat(src, "<span class='warning'>No suitable dead prey or wrappable objects found nearby.")
to_chat(src, SPAN_WARNING("No suitable dead prey or wrappable objects found nearby."))
return
if(cocoon_target)
@@ -182,7 +182,7 @@
var/list/food = list()
var/list/can_see = view(scan_range, spider)
for(var/mob/living/C in can_see)
if(C.stat && !istype(C, /mob/living/basic/giant_spider) && !C.anchored)
if(C.stat && !istype(C, /mob/living/basic/giant_spider) && !C.anchored && !isLivingSSD(C))
food += C
if(length(food))
controller.set_blackboard_key(target_key, pick(food))