mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 12:07:27 +01:00
APC & Machinery Refactor + Local Powernets (#19991)
* local powernet and machine power refactor * some fixes * more tweaks + powerchange() refactor * fixes var edited apcs on meatpackers.dmm * fixes issue with power channels * Reviews * delta fix * Update code/game/machinery/portable_turret.dm Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com> * removed area power change proc * damn morgues * requested changes * request changes * deconfliction * mapping fixes * some fixes from TM --------- Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com>
This commit is contained in:
Vendored
+5
-5
@@ -22,13 +22,13 @@ GLOBAL_DATUM_INIT(apc_repository, /datum/repository/apc, new())
|
||||
var/list/chg = list("N","C","F") // Charging: no, charging, full
|
||||
for(var/obj/machinery/power/apc/A in L)
|
||||
apcData[++apcData.len] = list(
|
||||
"Name" = html_encode(A.area.name),
|
||||
"Equipment" = Status[A.equipment + 1],
|
||||
"Lights" = Status[A.lighting + 1],
|
||||
"Environment" = Status[A.environ + 1],
|
||||
"Name" = html_encode(A.apc_area.name),
|
||||
"Equipment" = Status[A.equipment_channel + 1],
|
||||
"Lights" = Status[A.lighting_channel + 1],
|
||||
"Environment" = Status[A.environment_channel + 1],
|
||||
"CellPct" = A.cell ? round(A.cell.percent(), 1) : 0,
|
||||
"CellStatus" = A.cell ? chg[A.charging + 1] : "M",
|
||||
"Load" = round(A.lastused_total, 1)
|
||||
"Load" = round(A.last_used_total, 1)
|
||||
)
|
||||
|
||||
cache_entry.timestamp = world.time + 5 SECONDS
|
||||
|
||||
Reference in New Issue
Block a user