Lavaland baseturf implementation

This commit is contained in:
Mark van Alphen
2019-03-31 22:07:30 +02:00
parent 1689e46f1e
commit 1619bc048b
25 changed files with 352 additions and 2503 deletions
+1 -1
View File
@@ -651,7 +651,7 @@ Traitors and the like can also be revived with the previous role mostly intact.
feedback_add_details("admin_verb","DEL") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
if(isturf(D))
var/turf/T = D
T.ChangeTurf(/turf/space)
T.ChangeTurf(T.baseturf)
else
qdel(D)
@@ -190,7 +190,7 @@ var/sc_safecode5 = "[rand(0,9)]"
continue
if(O.invisibility == 101)
src.consume(O)
T.ChangeTurf(/turf/space)
T.ChangeTurf(T.baseturf)
return
/obj/singularity/narsie/sc_Narsie/ex_act()
+1 -1
View File
@@ -36,7 +36,7 @@ var/global/list/potentialRandomZlevels = generateMapList(filename = "config/away
var/turf/T = thing
for(var/otherthing in T)
qdel(otherthing)
T.ChangeTurf(/turf/space)
T.ChangeTurf(T.baseturf)
/proc/createRandomZlevel()
if(awaydestinations.len) //crude, but it saves another var!
+1 -1
View File
@@ -35,7 +35,7 @@
T.ChangeTurf(/turf/simulated/floor/plasteel)
else if(istype(object,/turf/simulated/floor))
var/turf/T = object
T.ChangeTurf(/turf/space)
T.ChangeTurf(T.baseturf)
else if(istype(object,/turf/simulated/wall/r_wall))
var/turf/T = object
T.ChangeTurf(/turf/simulated/wall)
+3 -3
View File
@@ -5,12 +5,12 @@
/turf/simulated/floor/engine/ex_act(severity)
switch(severity)
if(1.0)
ChangeTurf(/turf/space)
ChangeTurf(baseturf)
qdel(src)
return
if(2.0)
if(prob(50))
ChangeTurf(/turf/space)
ChangeTurf(baseturf)
qdel(src)
return
else
@@ -18,7 +18,7 @@
/turf/simulated/floor/engine/blob_act()
if(prob(25))
ChangeTurf(/turf/space)
ChangeTurf(baseturf)
qdel(src)
return
return
@@ -51,7 +51,7 @@
continue
M.loc = null
qdel(M, TRUE)
T.ChangeTurf(/turf/space)
T.ChangeTurf(T.baseturf)
var/datum/space_chunk/last_empty_parent = C
while(last_empty_parent.parent && last_empty_parent.parent.is_empty)
last_empty_parent = last_empty_parent.parent