From 85595b9a16165f660ba66b08da79d894b1541618 Mon Sep 17 00:00:00 2001 From: HelmCrab <90987989+Thera-Pissed@users.noreply.github.com> Date: Fri, 12 Jan 2024 15:16:37 -0600 Subject: [PATCH] = is not == --- code/game/machinery/porta_turret/portable_turret.dm | 2 +- code/modules/power/power.dm | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/code/game/machinery/porta_turret/portable_turret.dm b/code/game/machinery/porta_turret/portable_turret.dm index a0018c48b713..5891898ef6dc 100644 --- a/code/game/machinery/porta_turret/portable_turret.dm +++ b/code/game/machinery/porta_turret/portable_turret.dm @@ -795,7 +795,7 @@ DEFINE_BITFIELD(turret_flags, list( max_integrity = 300 always_up = 1 use_power = ACTIVE_POWER_USE - active_power_usage = 300 + active_power_usage = ACTIVE_DRAW_MINIMAL has_cover = 0 scan_range = 9 stun_projectile = /obj/projectile/beam/disabler diff --git a/code/modules/power/power.dm b/code/modules/power/power.dm index e42ca8f6e463..a62678d7847f 100644 --- a/code/modules/power/power.dm +++ b/code/modules/power/power.dm @@ -108,14 +108,14 @@ /obj/machinery/proc/set_idle_power() set_no_power() - if(use_power = NO_POWER_USE) + if(use_power == NO_POWER_USE) return use_static_power = IDLE_POWER_USE addStaticPower(idle_power_usage, power_channel + 3) /obj/machinery/proc/set_active_power() set_no_power() - if(use_power = NO_POWER_USE) + if(use_power == NO_POWER_USE) return use_static_power = ACTIVE_POWER_USE addStaticPower(active_power_usage, power_channel + 3)