Skip to content

Commit

Permalink
Merge pull request #1169 from Absolucy/fix-tests
Browse files Browse the repository at this point in the history
Fix mapping test failures
  • Loading branch information
dwasint authored Feb 7, 2024
2 parents 6f52602 + 19a5cb5 commit 7e33e89
Show file tree
Hide file tree
Showing 7 changed files with 50 additions and 90 deletions.
3 changes: 3 additions & 0 deletions _maps/map_files/generic/CentCom.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -17238,6 +17238,9 @@
name = "CentCom Security"
},
/obj/effect/mapping_helpers/airlock/access/any/admin/general,
/obj/effect/mapping_helpers/airlock/cyclelink_helper{
dir = 8
},
/turf/open/floor/iron,
/area/centcom/central_command_areas/ferry)
"Zc" = (
Expand Down
2 changes: 0 additions & 2 deletions _maps/~monkestation/RandomBars/Icebox/cultbar_icebox.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,6 @@
/area/station/service/theater)
"iX" = (
/obj/effect/spawner/random/structure/musician/piano/random_piano,
/obj/machinery/power/apc/auto_name/directional/north,
/obj/structure/cable,
/turf/open/floor/cult,
/area/station/service/theater)
Expand Down Expand Up @@ -401,7 +400,6 @@
"uL" = (
/obj/structure/cable,
/obj/machinery/atmospherics/pipe/smart/manifold4w/scrubbers/hidden/layer2,
/obj/machinery/atmospherics/pipe/smart/manifold4w/scrubbers/hidden/layer2,
/turf/open/floor/cult,
/area/station/service/bar/backroom)
"vh" = (
Expand Down
21 changes: 11 additions & 10 deletions _maps/~monkestation/RandomEngines/KiloStation/singularity.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,10 @@
"is" = (
/obj/structure/cable,
/obj/machinery/door/airlock/external,
/obj/effect/mapping_helpers/airlock/cyclelink_helper,
/obj/structure/cable/layer1,
/obj/effect/mapping_helpers/airlock/cyclelink_helper_multi{
cycle_id = "kilo_singularity_airlock"
},
/turf/open/floor/iron,
/area/station/engineering/supermatter/room)
"iW" = (
Expand All @@ -106,11 +108,11 @@
"jc" = (
/obj/structure/cable,
/obj/machinery/door/airlock/external,
/obj/effect/mapping_helpers/airlock/cyclelink_helper{
dir = 8
},
/obj/structure/fans/tiny,
/obj/structure/cable/layer1,
/obj/effect/mapping_helpers/airlock/cyclelink_helper_multi{
cycle_id = "kilo_singularity_airlock"
},
/turf/open/floor/iron,
/area/station/engineering/supermatter/room)
"jl" = (
Expand Down Expand Up @@ -396,7 +398,6 @@
dir = 1
},
/obj/machinery/atmospherics/pipe/smart/manifold4w/scrubbers/hidden/layer2,
/obj/machinery/atmospherics/pipe/smart/manifold4w/supply/hidden/layer4,
/obj/structure/cable,
/turf/open/floor/iron,
/area/station/engineering/supermatter/room)
Expand Down Expand Up @@ -1004,7 +1005,7 @@ IJ
rz
Ib
oK
Hs
oK
pk
Ii
Ii
Expand All @@ -1026,7 +1027,7 @@ En
(12,1,1) = {"
pa
UA
oK
Hs
NK
pk
lZ
Expand Down Expand Up @@ -1121,9 +1122,9 @@ Ib
oK
NK
pk
sz
sz
sz
oK
oK
oK
Fj
RL
WZ
Expand Down
4 changes: 4 additions & 0 deletions code/controllers/subsystem/mapping.dm
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,7 @@ Used by the AI doomsday and the self-destruct nuke.
template.weight = (template.weight / 2)
if(template.stock <= 0)
template.spawned = TRUE
log_world("Loading random room template [template.name] ([template.type]) at [AREACOORD(R)]")
template.stationinitload(get_turf(R), centered = template.centerspawner)
SSmapping.random_room_spawners -= R
qdel(R)
Expand All @@ -459,6 +460,7 @@ Used by the AI doomsday and the self-destruct nuke.
possible_engine_templates[engine_candidate] = engine_candidate.weight
if(possible_engine_templates.len)
var/datum/map_template/random_room/random_engines/template = pick_weight(possible_engine_templates)
log_world("Loading random engine template [template.name] ([template.type]) at [AREACOORD(engine_spawner)]")
template.stationinitload(get_turf(engine_spawner), centered = template.centerspawner)
SSmapping.random_engine_spawners -= engine_spawner
qdel(engine_spawner)
Expand All @@ -480,6 +482,7 @@ Used by the AI doomsday and the self-destruct nuke.
possible_bar_templates[bar_candidate] = bar_candidate.weight
if(possible_bar_templates.len)
var/datum/map_template/random_room/random_bar/template = pick_weight(possible_bar_templates)
log_world("Loading random bar template [template.name] ([template.type]) at [AREACOORD(bar_spawner)]")
template.stationinitload(get_turf(bar_spawner), centered = template.centerspawner)
SSmapping.random_bar_spawners -= bar_spawner
qdel(bar_spawner)
Expand All @@ -500,6 +503,7 @@ Used by the AI doomsday and the self-destruct nuke.
possible_arena_templates[arena_candidate] = arena_candidate.weight
if(possible_arena_templates.len)
var/datum/map_template/random_room/random_arena/template = pick_weight(possible_arena_templates)
log_world("Loading random arena template [template.name] ([template.type]) at [AREACOORD(arena_spawner)]")
template.stationinitload(get_turf(arena_spawner), centered = template.centerspawner)
SSmapping.random_arena_spawners -= arena_spawner
qdel(arena_spawner)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,9 @@
barefootstep = FOOTSTEP_HARD_BAREFOOT
clawfootstep = FOOTSTEP_HARD_CLAW
heavyfootstep = FOOTSTEP_GENERIC_HEAVY

/turf/open/misc/ashplanet/rocky/arena
initial_gas_mix = OPENTURF_DEFAULT_ATMOS

/turf/open/water/arena
initial_gas_mix = OPENTURF_DEFAULT_ATMOS
80 changes: 20 additions & 60 deletions monkestation/code/modules/ghost_players/arena/maps/atlantis.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -10,41 +10,31 @@
"b" = (
/mob/living/basic/aquatic/fish,
/obj/effect/overlay/water,
/turf/open/misc/ashplanet/rocky{
initial_gas_mix = "o2=22;n2=82;TEMP=293.15"
},
/turf/open/misc/ashplanet/rocky,
/area/centcom/tdome/arena/actual)
"d" = (
/obj/structure/flora/bush/stalky/style_3,
/obj/effect/overlay/water,
/turf/open/misc/ashplanet/rocky{
initial_gas_mix = "o2=22;n2=82;TEMP=293.15"
},
/turf/open/misc/ashplanet/rocky,
/area/centcom/tdome/arena/actual)
"g" = (
/obj/structure/flora/rock/pile/icy/style_2{
name = "rocks"
},
/obj/effect/overlay/water,
/turf/open/misc/ashplanet/rocky{
initial_gas_mix = "o2=22;n2=82;TEMP=293.15"
},
/turf/open/misc/ashplanet/rocky,
/area/centcom/tdome/arena/actual)
"h" = (
/obj/structure/flora/rock/icy/style_2{
name = "rock"
},
/obj/effect/overlay/water,
/turf/open/misc/ashplanet/rocky{
initial_gas_mix = "o2=22;n2=82;TEMP=293.15"
},
/turf/open/misc/ashplanet/rocky,
/area/centcom/tdome/arena/actual)
"i" = (
/obj/effect/overlay/water,
/obj/machinery/light/floor/has_bulb,
/turf/open/misc/ashplanet/rocky{
initial_gas_mix = "o2=22;n2=82;TEMP=293.15"
},
/turf/open/misc/ashplanet/rocky,
/area/centcom/tdome/arena/actual)
"k" = (
/obj/structure/atlantis/column/broken_1,
Expand Down Expand Up @@ -91,27 +81,21 @@
anchored = 1
},
/obj/effect/overlay/water,
/turf/open/misc/ashplanet/rocky{
initial_gas_mix = "o2=22;n2=82;TEMP=293.15"
},
/turf/open/misc/ashplanet/rocky,
/area/centcom/tdome/arena/actual)
"v" = (
/obj/structure/flora/rock/pile/icy/style_3{
name = "rocks"
},
/obj/effect/overlay/water,
/turf/open/misc/ashplanet/rocky{
initial_gas_mix = "o2=22;n2=82;TEMP=293.15"
},
/turf/open/misc/ashplanet/rocky,
/area/centcom/tdome/arena/actual)
"w" = (
/obj/structure/flora/rock/icy{
name = "rock"
},
/obj/effect/overlay/water,
/turf/open/misc/ashplanet/rocky{
initial_gas_mix = "o2=22;n2=82;TEMP=293.15"
},
/turf/open/misc/ashplanet/rocky,
/area/centcom/tdome/arena/actual)
"z" = (
/obj/effect/overlay/water,
Expand All @@ -122,19 +106,15 @@
"A" = (
/obj/structure/flora/bush/stalky/style_2,
/obj/effect/overlay/water,
/turf/open/misc/ashplanet/rocky{
initial_gas_mix = "o2=22;n2=82;TEMP=293.15"
},
/turf/open/misc/ashplanet/rocky,
/area/centcom/tdome/arena/actual)
"B" = (
/obj/item/aquarium_prop/seaweed_top{
anchored = 1
},
/obj/effect/overlay/water,
/obj/machinery/light/floor/has_bulb,
/turf/open/misc/ashplanet/rocky{
initial_gas_mix = "o2=22;n2=82;TEMP=293.15"
},
/turf/open/misc/ashplanet/rocky,
/area/centcom/tdome/arena/actual)
"D" = (
/obj/effect/overlay/water,
Expand All @@ -146,56 +126,42 @@
"E" = (
/obj/structure/flora/bush/stalky,
/obj/effect/overlay/water,
/turf/open/misc/ashplanet/rocky{
initial_gas_mix = "o2=22;n2=82;TEMP=293.15"
},
/turf/open/misc/ashplanet/rocky,
/area/centcom/tdome/arena/actual)
"G" = (
/obj/structure/flora/rock/pile/icy{
name = "rocks"
},
/obj/effect/overlay/water,
/turf/open/misc/ashplanet/rocky{
initial_gas_mix = "o2=22;n2=82;TEMP=293.15"
},
/turf/open/misc/ashplanet/rocky,
/area/centcom/tdome/arena/actual)
"H" = (
/mob/living/basic/aquatic/fish/gupper,
/obj/effect/overlay/water,
/turf/open/misc/ashplanet/rocky{
initial_gas_mix = "o2=22;n2=82;TEMP=293.15"
},
/turf/open/misc/ashplanet/rocky,
/area/centcom/tdome/arena/actual)
"K" = (
/obj/structure/flora/rock/icy/style_3{
name = "rock"
},
/obj/effect/overlay/water,
/turf/open/misc/ashplanet/rocky{
initial_gas_mix = "o2=22;n2=82;TEMP=293.15"
},
/turf/open/misc/ashplanet/rocky,
/area/centcom/tdome/arena/actual)
"L" = (
/obj/machinery/light/floor/has_bulb,
/obj/effect/overlay/water,
/turf/open/misc/ashplanet/rocky{
initial_gas_mix = "o2=22;n2=82;TEMP=293.15"
},
/turf/open/misc/ashplanet/rocky,
/area/centcom/tdome/arena/actual)
"N" = (
/obj/item/aquarium_prop/seaweed_top{
anchored = 1
},
/obj/effect/overlay/water,
/turf/open/misc/ashplanet/rocky{
initial_gas_mix = "o2=22;n2=82;TEMP=293.15"
},
/turf/open/misc/ashplanet/rocky,
/area/centcom/tdome/arena/actual)
"P" = (
/obj/effect/overlay/water,
/turf/open/misc/ashplanet/rocky{
initial_gas_mix = "o2=22;n2=82;TEMP=293.15"
},
/turf/open/misc/ashplanet/rocky,
/area/centcom/tdome/arena/actual)
"Q" = (
/obj/structure/atlantis/statue{
Expand All @@ -209,9 +175,7 @@
"R" = (
/obj/structure/flora/bush/reed/style_3,
/obj/effect/overlay/water,
/turf/open/misc/ashplanet/rocky{
initial_gas_mix = "o2=22;n2=82;TEMP=293.15"
},
/turf/open/misc/ashplanet/rocky,
/area/centcom/tdome/arena/actual)
"T" = (
/obj/structure/atlantis/column/lantern,
Expand All @@ -226,16 +190,12 @@
/obj/structure/flora/bush/reed/style_3,
/mob/living/basic/aquatic/fish/gupper,
/obj/effect/overlay/water,
/turf/open/misc/ashplanet/rocky{
initial_gas_mix = "o2=22;n2=82;TEMP=293.15"
},
/turf/open/misc/ashplanet/rocky,
/area/centcom/tdome/arena/actual)
"V" = (
/mob/living/basic/aquatic/fish/cod,
/obj/effect/overlay/water,
/turf/open/misc/ashplanet/rocky{
initial_gas_mix = "o2=22;n2=82;TEMP=293.15"
},
/turf/open/misc/ashplanet/rocky,
/area/centcom/tdome/arena/actual)
"X" = (
/obj/effect/overlay/water,
Expand Down
24 changes: 6 additions & 18 deletions monkestation/code/modules/ghost_players/arena/maps/two_forts.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@
/area/centcom/tdome/arena/actual)
"hA" = (
/obj/structure/flora/bush/reed/style_3,
/turf/open/water{
initial_gas_mix = "o2=22;n2=82;TEMP=293.15"
},
/turf/open/water/arena,
/area/centcom/tdome/arena/actual)
"hL" = (
/obj/effect/turf_decal/siding/wood{
Expand Down Expand Up @@ -76,9 +74,7 @@
/area/centcom/tdome/arena/actual)
"wZ" = (
/obj/machinery/light/directional/north,
/turf/open/water{
initial_gas_mix = "o2=22;n2=82;TEMP=293.15"
},
/turf/open/water/arena,
/area/centcom/tdome/arena/actual)
"yW" = (
/obj/machinery/light/small/blacklight/directional/west,
Expand All @@ -94,15 +90,11 @@
/area/centcom/tdome/arena/actual)
"BT" = (
/obj/structure/flora/bush/reed/style_2,
/turf/open/water{
initial_gas_mix = "o2=22;n2=82;TEMP=293.15"
},
/turf/open/water/arena,
/area/centcom/tdome/arena/actual)
"Cb" = (
/obj/machinery/light/directional/south,
/turf/open/water{
initial_gas_mix = "o2=22;n2=82;TEMP=293.15"
},
/turf/open/water/arena,
/area/centcom/tdome/arena/actual)
"Cu" = (
/obj/effect/turf_decal/sand/plating,
Expand Down Expand Up @@ -159,9 +151,7 @@
/turf/open/floor/wood/parquet,
/area/centcom/tdome/arena/actual)
"VF" = (
/turf/open/water{
initial_gas_mix = "o2=22;n2=82;TEMP=293.15"
},
/turf/open/water/arena,
/area/centcom/tdome/arena/actual)
"Wh" = (
/obj/effect/turf_decal/sand/plating,
Expand All @@ -185,9 +175,7 @@
/area/centcom/tdome/arena/actual)
"Zu" = (
/obj/structure/flora/bush/reed,
/turf/open/water{
initial_gas_mix = "o2=22;n2=82;TEMP=293.15"
},
/turf/open/water/arena,
/area/centcom/tdome/arena/actual)

(1,1,1) = {"
Expand Down

0 comments on commit 7e33e89

Please sign in to comment.