From 31bef06fd8b634f72fc8ef3d2a49da55fd068629 Mon Sep 17 00:00:00 2001 From: Alex Noir Date: Thu, 28 Dec 2017 19:11:46 +0300 Subject: [PATCH] Just noticed a new, strange bug happening: https://puu.sh/yPuai/eca2a059e2.webm Problem is, this should've been happening before even regardless of my changes. So why did it only start happening now? That'll have to be looked into. The reason why it should be happening in theory is that in character's UpdateOxygen method, it takes hull oxygen and OxygenAvailable. If OxygenAvailable was 0, it'd take the hull, which would likely be 100. If OxygenAvailable was -100, it would take the hull, which would make OxygenAvaialbe 0. However, it seems like something happened and instead of setting the property it now decreases it, and I don't know why? In theory it should SET OxygenAvailable to -100 but it seems like its performing a substraction now. Adds tags to all duration/delay status effects Chloromydride buffed slightly to counteract crit damage as well so it truly stabilizes you Sufforin now affects your available oxygen too by setting it to -10000 to prevent diving suits/oxygen masks/etc. counteracting it. --- .../Content/Items/Diving/divinggear.xml | 4 +- .../Content/Items/Fabricators/fabricators.xml | 4 ++ .../Content/Items/Medical/medical.xml | 52 ++++++++++--------- 3 files changed, 33 insertions(+), 27 deletions(-) diff --git a/Barotrauma/BarotraumaShared/Content/Items/Diving/divinggear.xml b/Barotrauma/BarotraumaShared/Content/Items/Diving/divinggear.xml index 05256665b..4ba0c960a 100644 --- a/Barotrauma/BarotraumaShared/Content/Items/Diving/divinggear.xml +++ b/Barotrauma/BarotraumaShared/Content/Items/Diving/divinggear.xml @@ -45,7 +45,7 @@ - + @@ -110,7 +110,7 @@ - + diff --git a/Barotrauma/BarotraumaShared/Content/Items/Fabricators/fabricators.xml b/Barotrauma/BarotraumaShared/Content/Items/Fabricators/fabricators.xml index 33bf59412..a6fcd9996 100644 --- a/Barotrauma/BarotraumaShared/Content/Items/Fabricators/fabricators.xml +++ b/Barotrauma/BarotraumaShared/Content/Items/Fabricators/fabricators.xml @@ -161,6 +161,10 @@ + + + + diff --git a/Barotrauma/BarotraumaShared/Content/Items/Medical/medical.xml b/Barotrauma/BarotraumaShared/Content/Items/Medical/medical.xml index e9893a7e5..8e1510ba5 100644 --- a/Barotrauma/BarotraumaShared/Content/Items/Medical/medical.xml +++ b/Barotrauma/BarotraumaShared/Content/Items/Medical/medical.xml @@ -74,7 +74,7 @@ - + @@ -94,12 +94,12 @@ - + - + @@ -117,7 +117,7 @@ - + @@ -133,7 +133,7 @@ - + @@ -141,7 +141,7 @@ - + @@ -209,9 +209,9 @@ @@ -219,10 +219,10 @@ - - - + + + @@ -241,7 +241,7 @@ - + @@ -261,12 +261,12 @@ - + - + @@ -288,11 +288,11 @@ - + - + @@ -312,7 +312,7 @@ - + @@ -331,7 +331,7 @@ - + @@ -354,12 +354,12 @@ - + - + @@ -399,7 +399,7 @@ - + @@ -462,7 +462,7 @@ - + @@ -559,7 +559,8 @@ spritecolor="1.0,0.3,0.3,1.0" Tags="smallitem,chem,medical" description="A devious poison with a delayed effect."> - + @@ -568,7 +569,8 @@ - + +