Fixes #12838 - spiders getting stuck in zero-g despite being on webs

This commit is contained in:
Kyep
2020-09-26 21:05:25 -07:00
parent 936584518c
commit 463f3f626a
2 changed files with 16 additions and 0 deletions
@@ -47,6 +47,14 @@
if(C.can_inject(null, FALSE, inject_target, FALSE))
C.reagents.add_reagent("spidertoxin", venom_per_bite)
/mob/living/simple_animal/hostile/poison/giant_spider/get_spacemove_backup()
. = ..()
// If we don't find any normal thing to use, attempt to use any nearby spider structure instead.
if(!.)
for(var/obj/structure/spider/S in range(1, get_turf(src)))
. = S
break
//nursemaids - these create webs and eggs
/mob/living/simple_animal/hostile/poison/giant_spider/nurse
desc = "Furry and black, it makes you shudder to look at it. This one has brilliant green eyes."
@@ -391,6 +391,14 @@ GLOBAL_LIST_EMPTY(ts_spiderling_list)
return TRUE
/mob/living/simple_animal/hostile/poison/terror_spider/get_spacemove_backup()
. = ..()
// If we don't find any normal thing to use, attempt to use any nearby spider structure instead.
if(!.)
for(var/obj/structure/spider/S in range(1, get_turf(src)))
. = S
break
/mob/living/simple_animal/hostile/poison/terror_spider/Stat()
..()
// Determines what shows in the "Status" tab for player-controlled spiders. Used to help players understand spider health regeneration mechanics.