From 5ffa57e365930da7cdd011e1ce0a152a686f35a3 Mon Sep 17 00:00:00 2001 From: EgorDinamit <53223414+EgorDinamit@users.noreply.github.com> Date: Thu, 15 Feb 2024 01:04:57 +0300 Subject: [PATCH] Quickfix to shuttle power usage (#549) --- code/modules/shuttles/shuttle.dm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/code/modules/shuttles/shuttle.dm b/code/modules/shuttles/shuttle.dm index 3f43e10afb0..109def30a3e 100644 --- a/code/modules/shuttles/shuttle.dm +++ b/code/modules/shuttles/shuttle.dm @@ -162,6 +162,14 @@ if(istype(old_location)) old_location.shuttle_departed(src) destination.shuttle_arrived(src) + // Prevents power usage duplication + var/list/retally_areas + if(isarea(shuttle_area)) + retally_areas = list(shuttle_area) + else if(islist(shuttle_area)) + retally_areas = shuttle_area + for(var/area/A in retally_areas) + A.retally_power() return TRUE //just moves the shuttle from A to B, if it can be moved