mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-23 21:12:24 +01:00
Fixed gremorian cocoon verb (#19501)
Fixed gremorian cocoon verb. Slight cleanup with usage of get_turf() in the cocoon verb, instead of the loc variable.
This commit is contained in:
@@ -375,12 +375,13 @@
|
||||
src.visible_message("\The [src] begins to secrete a sticky substance around \the [P].")
|
||||
if(!do_after(src, 80))
|
||||
return
|
||||
if(P && isturf(P) && get_dist(src,P) <= 1)
|
||||
var/obj/effect/spider/cocoon/C = new(P.loc)
|
||||
|
||||
if(P && isturf(P.loc) && get_dist(src, P) <= 1)
|
||||
var/obj/effect/spider/cocoon/C = new(get_turf(P))
|
||||
var/large_cocoon = FALSE
|
||||
C.pixel_x = P.pixel_x
|
||||
C.pixel_y = P.pixel_y
|
||||
for(P in C.loc)
|
||||
for(P in get_turf(C))
|
||||
if(istype(P, /mob/living/simple_animal/hostile/giant_spider))
|
||||
continue
|
||||
large_cocoon = TRUE
|
||||
|
||||
Reference in New Issue
Block a user