And thus begins my attempt to salvage the quest for Arctic Station 13 (#10200)

* Initial commit, compiles, but needs to be actually finished

* Wrap it up for now, other sysystems need me

* Find helper

* Fix more shit

* How the fuck did that stay in, fucking DM saving

* Change layering method to get rid of orange

* Add yet another layering method
This commit is contained in:
dylanstrategie
2016-05-28 01:55:40 +02:00
committed by clusterfack
parent a13c6c9fcb
commit 716fc8ea79
14 changed files with 1123 additions and 380 deletions

View File

@@ -1385,6 +1385,23 @@ proc/rotate_icon(file, state, step = 1, aa = FALSE)
return 1
return 0
//Checks if there are any atoms in the turf that aren't system-only (currently only lighting overlays count)
//Returns 1 is there's something, 0 if it finds nothing
/turf/proc/has_contents()
if(!contents.len)
return 0
for(var/atom/A in contents)
if(!istype(A, /atom/movable/lighting_overlay))
return 0
return 1
//This helper uses the method shown above to clear up the tile's contents, if any, ignoring the lighting overlays (technically all systems contents)
//Includes an exception list if you don't want to delete some stuff
/turf/proc/clear_contents(var/list/ignore = list())
for(var/atom/turf_contents in contents)
if(!istype(turf_contents, /atom/movable/lighting_overlay) && !is_type_in_list(turf_contents, ignore) && !(flags & INVULNERABLE))
qdel(turf_contents)
/proc/multinum_display(var/number,var/digits)//multinum_display(42,4) = "0042"; multinum_display(-137,6) = "-000137"; multinum_display(4572,3) = "999"
var/result = ""
if((digits < 1))