mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 02:34:00 +00:00
Merge pull request #8325 from GinjaNinja32/vines
Properly fixes vines pulling through windoors
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
if(!isnull(seed.chems["pacid"]))
|
||||
spawn(rand(5,25)) floor.ex_act(3)
|
||||
continue
|
||||
else if(!floor.Enter(src))
|
||||
if(!Adjacent(floor))
|
||||
continue
|
||||
neighbors |= floor
|
||||
// Update all of our friends.
|
||||
|
||||
@@ -60,11 +60,13 @@
|
||||
if(buckled_mob)
|
||||
return
|
||||
|
||||
if(!Adjacent(victim))
|
||||
return
|
||||
|
||||
victim.buckled = src
|
||||
victim.update_canmove()
|
||||
buckled_mob = victim
|
||||
var/turf/T = get_turf(src)
|
||||
if(victim.loc != T && T.Enter(victim, get_turf(victim)))
|
||||
if(victim.loc != get_turf(src))
|
||||
src.visible_message("<span class='danger'>Tendrils lash out from \the [src] and drag \the [victim] in!</span>")
|
||||
victim.loc = src.loc
|
||||
victim << "<span class='danger'>Tendrils [pick("wind", "tangle", "tighten")] around you!</span>"
|
||||
|
||||
Reference in New Issue
Block a user