mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-12 02:32:10 +00:00
makes the lavaland mining base have more correct baseturfs (#34325)
This commit is contained in:
@@ -802,6 +802,9 @@
|
|||||||
/turf/open/floor/plating,
|
/turf/open/floor/plating,
|
||||||
/area/mine/eva)
|
/area/mine/eva)
|
||||||
"cq" = (
|
"cq" = (
|
||||||
|
/obj/effect/baseturf_helper/picky/lava_land/basalt{
|
||||||
|
whitelist = /turf/open/floor
|
||||||
|
},
|
||||||
/turf/open/floor/mech_bay_recharge_floor,
|
/turf/open/floor/mech_bay_recharge_floor,
|
||||||
/area/mine/eva)
|
/area/mine/eva)
|
||||||
"cr" = (
|
"cr" = (
|
||||||
@@ -832,6 +835,9 @@
|
|||||||
/area/lavaland/surface/outdoors)
|
/area/lavaland/surface/outdoors)
|
||||||
"cw" = (
|
"cw" = (
|
||||||
/obj/machinery/computer/secure_data,
|
/obj/machinery/computer/secure_data,
|
||||||
|
/obj/effect/baseturf_helper/picky/lava_land/basalt{
|
||||||
|
whitelist = /turf/open/floor
|
||||||
|
},
|
||||||
/turf/open/floor/plasteel,
|
/turf/open/floor/plasteel,
|
||||||
/area/mine/laborcamp/security)
|
/area/mine/laborcamp/security)
|
||||||
"cx" = (
|
"cx" = (
|
||||||
@@ -1035,6 +1041,9 @@
|
|||||||
/obj/effect/turf_decal/loading_area{
|
/obj/effect/turf_decal/loading_area{
|
||||||
dir = 8
|
dir = 8
|
||||||
},
|
},
|
||||||
|
/obj/effect/baseturf_helper/picky/lava_land/basalt{
|
||||||
|
whitelist = /turf/open/floor
|
||||||
|
},
|
||||||
/turf/open/floor/plasteel,
|
/turf/open/floor/plasteel,
|
||||||
/area/mine/production)
|
/area/mine/production)
|
||||||
"dc" = (
|
"dc" = (
|
||||||
@@ -1188,7 +1197,6 @@
|
|||||||
/obj/structure/cable{
|
/obj/structure/cable{
|
||||||
icon_state = "1-4"
|
icon_state = "1-4"
|
||||||
},
|
},
|
||||||
/obj/effect/baseturf_helper/lava_land/surface,
|
|
||||||
/turf/open/floor/circuit,
|
/turf/open/floor/circuit,
|
||||||
/area/mine/maintenance)
|
/area/mine/maintenance)
|
||||||
"dy" = (
|
"dy" = (
|
||||||
@@ -1215,6 +1223,9 @@
|
|||||||
dir = 8;
|
dir = 8;
|
||||||
network = list("MINE")
|
network = list("MINE")
|
||||||
},
|
},
|
||||||
|
/obj/effect/baseturf_helper/picky/lava_land/basalt{
|
||||||
|
whitelist = /turf/open/floor
|
||||||
|
},
|
||||||
/turf/open/floor/circuit,
|
/turf/open/floor/circuit,
|
||||||
/area/mine/maintenance)
|
/area/mine/maintenance)
|
||||||
"dB" = (
|
"dB" = (
|
||||||
@@ -3297,7 +3308,7 @@
|
|||||||
/turf/open/floor/plating/asteroid/basalt/lava_land_surface,
|
/turf/open/floor/plating/asteroid/basalt/lava_land_surface,
|
||||||
/area/lavaland/surface/outdoors)
|
/area/lavaland/surface/outdoors)
|
||||||
"Wt" = (
|
"Wt" = (
|
||||||
/obj/effect/baseturf_helper/lava_land/surface,
|
/obj/effect/baseturf_helper/picky/lava_land/plating,
|
||||||
/turf/closed/wall,
|
/turf/closed/wall,
|
||||||
/area/mine/laborcamp/security)
|
/area/mine/laborcamp/security)
|
||||||
"Wu" = (
|
"Wu" = (
|
||||||
@@ -3365,6 +3376,40 @@
|
|||||||
},
|
},
|
||||||
/turf/open/floor/plasteel,
|
/turf/open/floor/plasteel,
|
||||||
/area/mine/production)
|
/area/mine/production)
|
||||||
|
"WF" = (
|
||||||
|
/obj/effect/baseturf_helper/picky/lava_land/plating,
|
||||||
|
/turf/closed/wall,
|
||||||
|
/area/mine/laborcamp)
|
||||||
|
"WG" = (
|
||||||
|
/obj/effect/baseturf_helper/picky/lava_land/basalt{
|
||||||
|
whitelist = /turf/open/floor
|
||||||
|
},
|
||||||
|
/turf/open/floor/plasteel,
|
||||||
|
/area/mine/laborcamp)
|
||||||
|
"WH" = (
|
||||||
|
/obj/effect/baseturf_helper/picky/lava_land/plating,
|
||||||
|
/turf/closed/wall,
|
||||||
|
/area/mine/eva)
|
||||||
|
"WI" = (
|
||||||
|
/obj/effect/baseturf_helper/picky/lava_land/plating,
|
||||||
|
/turf/closed/wall,
|
||||||
|
/area/mine/production)
|
||||||
|
"WJ" = (
|
||||||
|
/obj/effect/baseturf_helper/picky/lava_land/plating,
|
||||||
|
/turf/closed/wall/r_wall,
|
||||||
|
/area/mine/maintenance)
|
||||||
|
"WK" = (
|
||||||
|
/obj/effect/baseturf_helper/picky/lava_land/plating,
|
||||||
|
/turf/closed/wall,
|
||||||
|
/area/mine/living_quarters)
|
||||||
|
"WL" = (
|
||||||
|
/obj/effect/baseturf_helper/picky/lava_land/basalt{
|
||||||
|
whitelist = /turf/open/floor
|
||||||
|
},
|
||||||
|
/turf/open/floor/plasteel/purple/corner{
|
||||||
|
dir = 8
|
||||||
|
},
|
||||||
|
/area/mine/living_quarters)
|
||||||
|
|
||||||
(1,1,1) = {"
|
(1,1,1) = {"
|
||||||
aa
|
aa
|
||||||
@@ -8466,7 +8511,7 @@ aq
|
|||||||
WB
|
WB
|
||||||
aq
|
aq
|
||||||
bi
|
bi
|
||||||
aq
|
WF
|
||||||
WC
|
WC
|
||||||
aq
|
aq
|
||||||
bZ
|
bZ
|
||||||
@@ -8723,7 +8768,7 @@ aq
|
|||||||
ba
|
ba
|
||||||
aq
|
aq
|
||||||
bj
|
bj
|
||||||
az
|
WG
|
||||||
az
|
az
|
||||||
aq
|
aq
|
||||||
ca
|
ca
|
||||||
@@ -9755,7 +9800,7 @@ aq
|
|||||||
bA
|
bA
|
||||||
aq
|
aq
|
||||||
aq
|
aq
|
||||||
Wu
|
aq
|
||||||
aq
|
aq
|
||||||
aj
|
aj
|
||||||
aj
|
aj
|
||||||
@@ -10791,7 +10836,7 @@ dg
|
|||||||
dg
|
dg
|
||||||
cQ
|
cQ
|
||||||
dZ
|
dZ
|
||||||
Ww
|
dZ
|
||||||
dZ
|
dZ
|
||||||
cM
|
cM
|
||||||
fa
|
fa
|
||||||
@@ -11817,7 +11862,7 @@ ai
|
|||||||
cQ
|
cQ
|
||||||
dk
|
dk
|
||||||
dA
|
dA
|
||||||
cQ
|
WJ
|
||||||
ed
|
ed
|
||||||
er
|
er
|
||||||
eM
|
eM
|
||||||
@@ -12849,7 +12894,7 @@ dR
|
|||||||
ef
|
ef
|
||||||
es
|
es
|
||||||
dZ
|
dZ
|
||||||
cM
|
WK
|
||||||
fg
|
fg
|
||||||
cM
|
cM
|
||||||
cM
|
cM
|
||||||
@@ -13106,7 +13151,7 @@ dQ
|
|||||||
ec
|
ec
|
||||||
er
|
er
|
||||||
dZ
|
dZ
|
||||||
eL
|
WL
|
||||||
fh
|
fh
|
||||||
ft
|
ft
|
||||||
eL
|
eL
|
||||||
@@ -19012,7 +19057,7 @@ cI
|
|||||||
cP
|
cP
|
||||||
cn
|
cn
|
||||||
bP
|
bP
|
||||||
Wy
|
bP
|
||||||
bP
|
bP
|
||||||
bP
|
bP
|
||||||
eD
|
eD
|
||||||
@@ -20035,9 +20080,9 @@ bt
|
|||||||
bH
|
bH
|
||||||
bV
|
bV
|
||||||
cq
|
cq
|
||||||
bf
|
WH
|
||||||
bq
|
|
||||||
bq
|
bq
|
||||||
|
WI
|
||||||
db
|
db
|
||||||
bP
|
bP
|
||||||
bP
|
bP
|
||||||
@@ -20290,7 +20335,7 @@ bf
|
|||||||
bp
|
bp
|
||||||
bu
|
bu
|
||||||
bI
|
bI
|
||||||
Wx
|
bW
|
||||||
cr
|
cr
|
||||||
bf
|
bf
|
||||||
ad
|
ad
|
||||||
|
|||||||
@@ -67,6 +67,8 @@
|
|||||||
. = SendSignal(COMSIG_ATOM_EX_ACT, severity, target)
|
. = SendSignal(COMSIG_ATOM_EX_ACT, severity, target)
|
||||||
contents_explosion(severity, target)
|
contents_explosion(severity, target)
|
||||||
|
|
||||||
|
/turf/open/floor/plating/lavaland_baseturf
|
||||||
|
baseturfs = /turf/open/floor/plating/asteroid/basalt/lava_land_surface
|
||||||
|
|
||||||
/turf/open/floor/plating/asteroid/basalt
|
/turf/open/floor/plating/asteroid/basalt
|
||||||
name = "volcanic floor"
|
name = "volcanic floor"
|
||||||
|
|||||||
@@ -13,10 +13,12 @@
|
|||||||
. = ..()
|
. = ..()
|
||||||
var/area/thearea = get_area(src)
|
var/area/thearea = get_area(src)
|
||||||
for(var/turf/T in get_area_turfs(thearea, z))
|
for(var/turf/T in get_area_turfs(thearea, z))
|
||||||
if(T.baseturfs != T.type) //Don't break indestructible walls and the like
|
replace_baseturf(T)
|
||||||
T.baseturfs = baseturf
|
|
||||||
return INITIALIZE_HINT_QDEL
|
return INITIALIZE_HINT_QDEL
|
||||||
|
|
||||||
|
/obj/effect/baseturf_helper/proc/replace_baseturf(turf/thing)
|
||||||
|
if(thing.baseturfs != thing.type)
|
||||||
|
thing.baseturfs = baseturf
|
||||||
|
|
||||||
/obj/effect/baseturf_helper/space
|
/obj/effect/baseturf_helper/space
|
||||||
name = "space baseturf editor"
|
name = "space baseturf editor"
|
||||||
@@ -54,6 +56,35 @@
|
|||||||
name = "lavaland baseturf editor"
|
name = "lavaland baseturf editor"
|
||||||
baseturf = /turf/open/lava/smooth/lava_land_surface
|
baseturf = /turf/open/lava/smooth/lava_land_surface
|
||||||
|
|
||||||
|
// Does the same thing as baseturf_helper but only the specified kinds of turf (the kind it's placed on or varedited)
|
||||||
|
/obj/effect/baseturf_helper/picky
|
||||||
|
var/list/whitelist
|
||||||
|
// Can be mapedited as: a single type, a list of types, or a typecache-like list
|
||||||
|
// The first 2 make a typecache of the given values
|
||||||
|
// The last uses it as is
|
||||||
|
|
||||||
|
/obj/effect/baseturf_helper/picky/Initialize()
|
||||||
|
if(!whitelist)
|
||||||
|
whitelist = list(loc.type)
|
||||||
|
else if(!islist(whitelist))
|
||||||
|
whitelist = list(whitelist)
|
||||||
|
else if(whitelist[whitelist[1]]) // Checking if it's a typecache-like list
|
||||||
|
return ..()
|
||||||
|
whitelist = typecacheof(whitelist)
|
||||||
|
return ..()
|
||||||
|
|
||||||
|
/obj/effect/baseturf_helper/picky/replace_baseturf(turf/thing)
|
||||||
|
if(!whitelist[thing.type])
|
||||||
|
return
|
||||||
|
return ..()
|
||||||
|
|
||||||
|
/obj/effect/baseturf_helper/picky/lava_land/plating
|
||||||
|
name = "picky lavaland plating baseturf helper"
|
||||||
|
baseturf = /turf/open/floor/plating/lavaland_baseturf
|
||||||
|
|
||||||
|
/obj/effect/baseturf_helper/picky/lava_land/basalt
|
||||||
|
name = "picky lavaland basalt baseturf helper"
|
||||||
|
baseturf = /turf/open/floor/plating/asteroid/basalt/lava_land_surface
|
||||||
|
|
||||||
//Contains the list of planetary z-levels defined by the planet_z helper.
|
//Contains the list of planetary z-levels defined by the planet_z helper.
|
||||||
GLOBAL_LIST_EMPTY(z_is_planet)
|
GLOBAL_LIST_EMPTY(z_is_planet)
|
||||||
|
|||||||
Reference in New Issue
Block a user