mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 19:47:22 +01:00
Make spiders ignore SSD players as wrapping targets. (#32346)
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user