Fixing Z level cable update and substations (#5937)

Oh boi, this one is a tiny in terms of lines, yet a huge impact. It absolutely solves problem with powernet bug of cables not updating through Z levels properly. Spend lots of time and especially intellectual effort to debug this thing and finally comparing Bay's code and debugging ours showed that lines 359 and 364 should be power_list(T, src, 12) because that stands for marked and we have unmarked cables.

Fixes Z level update of cables, now it updates them properly. So the substations work. Fixes #5165 , Fixes #5883 , Fixes #5655

Fixes mapping of cables

Increases charge of runtime SMES

Adds Z powernet to runtime levels for debug and tests

Adds Z level supply pipes and vents for debugging and tests
This commit is contained in:
Mykhailo Bykhovtsev
2019-01-14 00:55:46 -08:00
committed by Erki
parent 28c3444c4a
commit 94f215c014
10 changed files with 2228 additions and 1829 deletions

View File

@@ -356,12 +356,12 @@ obj/structure/cable/proc/cableColor(var/colorC)
if(d1 == 11 || d2 == 11)
T = GetBelow(src)
if(T)
. += power_list(T, src, 12, 1)
. += power_list(T, src, 12, powernetless_only)
if(d1 == 12 || d2 == 12)
T = GetAbove(src)
if(T)
. += power_list(T, src, 11, 1)
. += power_list(T, src, 11, powernetless_only)
// Handle standard cables in adjacent turfs
for(var/cable_dir in list(d1, d2))