ChangeTurf tweaks (#4036)

changes:

Lighting's ChangeTurf() override has been merged into the base ChangeTurf() proc.
Turfs can now set an alternate openturf type to be used instead of the default one when ChangeTurf(/turf/space) or ChangeToOpenturf() is used.
Added ChangeToOpenturf() helper.
Added a missing dig icon state to the rocky ash DMI.
Fixed an issue where the above var was not properly carried over on ChangeTurf().
Fixed an issue where Z-mimicing turfs would not be notified of their below turf ChangeTurf()ing unless they were an openspace.
This commit is contained in:
Lohikar
2018-01-06 11:53:18 +02:00
committed by Erki
parent 1535801dd4
commit ddd7748903
7 changed files with 54 additions and 52 deletions
+1 -1
View File
@@ -175,7 +175,7 @@
warning("Stair created without level above: ([loc.x], [loc.y], [loc.z])")
return qdel(src)
if(!istype(above))
above.ChangeTurf(/turf/simulated/open)
above.ChangeToOpenturf()
/obj/structure/stairs/Uncross(atom/movable/A)
if(A.dir == dir && A.loc == loc)