Assorted tweaks & fixes (#3305)

changes:

Fixed #3203.
Tajara or Unathi CEs now get gloves that actually fit them.
OOs now respect direction changes from their mimicked object.
Replaced all references to trange() with RANGE_TURFS().
Replaced all references to is_type_in_oview() with locate() in oview().
Fixed a runtime caused by recursive explosions falling off the edges of the map.
Carp despawn now works properly with the new asteroid turfs.
Carp despawn now uses WEAKREF instead of SOFTREF.
Added tick-checks to the carp migration event.
Vaurca now have the IS_VAURCA reagent_tag.
Cleaned up butanol alien handling a bit.
This commit is contained in:
Lohikar
2017-08-20 14:10:15 +03:00
committed by Erki
parent 9dd650b7a9
commit f3ad54e8aa
20 changed files with 80 additions and 76 deletions
+2 -2
View File
@@ -124,7 +124,7 @@
return TRUE
if(Check_Shoegrip()) //scaling hull with magboots
for(var/turf/simulated/T in trange(1,src))
for(var/turf/simulated/T in RANGE_TURFS(1,src))
if(T.density)
return TRUE
@@ -135,7 +135,7 @@
if(Allow_Spacemove()) //Checks for active jetpack
return TRUE
for(var/turf/simulated/T in trange(1,src)) //Robots get "magboots"
for(var/turf/simulated/T in RANGE_TURFS(1,src)) //Robots get "magboots"
if(T.density)
return TRUE
+6
View File
@@ -33,9 +33,15 @@
// The overlay will handle cleaning itself up on non-openspace turfs.
if (isturf(dest))
bound_overlay.forceMove(get_step(src, UP))
bound_overlay.set_dir(dir)
else // Not a turf, so we need to destroy immediately instead of waiting for the destruction timer to proc.
qdel(bound_overlay)
/atom/movable/set_dir(ndir)
. = ..()
if (. && bound_overlay)
bound_overlay.set_dir(dir)
/atom/movable/update_above()
if (!bound_overlay)
return