Skip to content

Commit

Permalink
Crew Monitor NET_LOCATION_NAME value fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
Qulibly committed Mar 8, 2024
1 parent 8f234fa commit 27cb189
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Content.Server/Medical/SuitSensors/SuitSensorSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ public NetworkPayload SuitSensorToPacket(SuitSensorStatus status)
if (status.Coordinates != null)
payload.Add(SuitSensorConstants.NET_COORDINATES, status.Coordinates);
if (status.LocationName != null)
payload.Add(SuitSensorConstants.NET_LOCATIONNAME, status.LocationName);
payload.Add(SuitSensorConstants.NET_LOCATION_NAME, status.LocationName);

return payload;
}
Expand All @@ -498,7 +498,7 @@ public NetworkPayload SuitSensorToPacket(SuitSensorStatus status)
if (!payload.TryGetValue(SuitSensorConstants.NET_JOB_DEPARTMENTS, out List<string>? jobDepartments)) return null;
if (!payload.TryGetValue(SuitSensorConstants.NET_IS_ALIVE, out bool? isAlive)) return null;
if (!payload.TryGetValue(SuitSensorConstants.NET_SUIT_SENSOR_UID, out NetEntity suitSensorUid)) return null;
if (!payload.TryGetValue(SuitSensorConstants.NET_LOCATIONNAME, out string? location)) return null; // Frontier modification
if (!payload.TryGetValue(SuitSensorConstants.NET_LOCATION_NAME, out string? location)) return null; // Frontier modification

// try get total damage and cords and location name (optionals)
payload.TryGetValue(SuitSensorConstants.NET_TOTAL_DAMAGE, out int? totalDamage);
Expand Down
2 changes: 1 addition & 1 deletion Content.Shared/Medical/SuitSensor/SharedSuitSensor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public static class SuitSensorConstants
public const string NET_TOTAL_DAMAGE = "vitals";
public const string NET_COORDINATES = "coords";
public const string NET_SUIT_SENSOR_UID = "uid";
public const string NET_LOCATIONNAME = "location"; // Frontier modification
public const string NET_LOCATION_NAME = "location"; // Frontier modification

///Used by the CrewMonitoringServerSystem to send the status of all connected suit sensors to each crew monitor
public const string NET_STATUS_COLLECTION = "suit-status-collection";
Expand Down

0 comments on commit 27cb189

Please sign in to comment.