From f2842c265c26aaf797fdaa8b89c10e02da336f65 Mon Sep 17 00:00:00 2001 From: Joonas Rikkonen Date: Mon, 23 Apr 2018 15:24:55 +0300 Subject: [PATCH] Removed the need for batteries in diving suits, now the light stays on as long as the suit is worn by a living character. --- .../BarotraumaShared/Content/Items/Diving/divinggear.xml | 9 ++++----- .../BarotraumaShared/Source/Networking/RespawnManager.cs | 8 -------- 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/Barotrauma/BarotraumaShared/Content/Items/Diving/divinggear.xml b/Barotrauma/BarotraumaShared/Content/Items/Diving/divinggear.xml index 0a688864f..7c90dc16d 100644 --- a/Barotrauma/BarotraumaShared/Content/Items/Diving/divinggear.xml +++ b/Barotrauma/BarotraumaShared/Content/Items/Diving/divinggear.xml @@ -85,6 +85,9 @@ + + + @@ -121,13 +124,9 @@ - + - - - - diff --git a/Barotrauma/BarotraumaShared/Source/Networking/RespawnManager.cs b/Barotrauma/BarotraumaShared/Source/Networking/RespawnManager.cs index 8e30cb8e1..913795949 100644 --- a/Barotrauma/BarotraumaShared/Source/Networking/RespawnManager.cs +++ b/Barotrauma/BarotraumaShared/Source/Networking/RespawnManager.cs @@ -517,14 +517,6 @@ namespace Barotrauma.Networking Spawner.CreateNetworkEvent(oxyTank, false); divingSuit.Combine(oxyTank); respawnItems.Add(oxyTank); - - if (batteryPrefab != null) - { - var battery = new Item(batteryPrefab, pos, respawnSub); - Spawner.CreateNetworkEvent(battery, false); - divingSuit.Combine(battery); - respawnItems.Add(battery); - } } if (scooterPrefab != null && batteryPrefab != null)