diff --git a/src/Helldivers-2-API/wwwroot/Helldivers-2-API.json b/src/Helldivers-2-API/wwwroot/Helldivers-2-API.json index c9cdd3d..030568c 100644 --- a/src/Helldivers-2-API/wwwroot/Helldivers-2-API.json +++ b/src/Helldivers-2-API/wwwroot/Helldivers-2-API.json @@ -860,6 +860,11 @@ "description": "The current health of the planet.", "format": "int64" }, + "maxHealth": { + "type": "integer", + "description": "The current maximum health of the planet event.", + "format": "int64" + }, "startTime": { "type": "integer", "description": "When this event started.", @@ -1713,7 +1718,12 @@ }, "health": { "type": "integer", - "description": "The health of the Planet at the time of snapshot.", + "description": "The health of the Event at the time of snapshot.", + "format": "int64" + }, + "maxHealth": { + "type": "integer", + "description": "The maximum health of the Event at the time of snapshot.", "format": "int64" }, "startTime": { diff --git a/src/Helldivers-2-API/wwwroot/Helldivers-2-API_arrowhead.json b/src/Helldivers-2-API/wwwroot/Helldivers-2-API_arrowhead.json index 87ffedd..6198143 100644 --- a/src/Helldivers-2-API/wwwroot/Helldivers-2-API_arrowhead.json +++ b/src/Helldivers-2-API/wwwroot/Helldivers-2-API_arrowhead.json @@ -379,6 +379,11 @@ "description": "The current health of the planet.", "format": "int64" }, + "maxHealth": { + "type": "integer", + "description": "The current maximum health of the planet event.", + "format": "int64" + }, "startTime": { "type": "integer", "description": "When this event started.", diff --git a/src/Helldivers-2-Core/Mapping/V1/PlanetMapper.cs b/src/Helldivers-2-Core/Mapping/V1/PlanetMapper.cs index a0b1ed1..f0f7b94 100644 --- a/src/Helldivers-2-Core/Mapping/V1/PlanetMapper.cs +++ b/src/Helldivers-2-Core/Mapping/V1/PlanetMapper.cs @@ -68,6 +68,7 @@ public Planet MapToV1(PlanetInfo info, PlanetStatus status, PlanetEvent? @event, EventType: @event.EventType, Faction: faction ?? string.Empty, Health: @event.Health, + MaxHealth: @event.MaxHealth, StartTime: DateTime.UnixEpoch.AddSeconds(@event.StartTime), EndTime: DateTime.UnixEpoch.AddSeconds(@event.ExpireTime), CampaignId: @event.CampaignId, diff --git a/src/Helldivers-2-Models/ArrowHead/Status/PlanetEvent.cs b/src/Helldivers-2-Models/ArrowHead/Status/PlanetEvent.cs index 4661afe..e1a4e8c 100644 --- a/src/Helldivers-2-Models/ArrowHead/Status/PlanetEvent.cs +++ b/src/Helldivers-2-Models/ArrowHead/Status/PlanetEvent.cs @@ -9,7 +9,8 @@ namespace Helldivers.Models.ArrowHead.Status; /// The index of the planet. /// A numerical identifier that indicates what type of event this is. /// The identifier of the faction that owns the planet currently. -/// The current health of the planet. +/// The current health of the event. +/// The current maximum health of the event. /// When this event started. /// When the event will end. /// The unique identifier of a related campaign. @@ -20,6 +21,7 @@ public sealed record PlanetEvent( int EventType, int Race, long Health, + long MaxHealth, long StartTime, long ExpireTime, long CampaignId, diff --git a/src/Helldivers-2-Models/V1/Planets/Event.cs b/src/Helldivers-2-Models/V1/Planets/Event.cs index 2da773c..d036a63 100644 --- a/src/Helldivers-2-Models/V1/Planets/Event.cs +++ b/src/Helldivers-2-Models/V1/Planets/Event.cs @@ -6,7 +6,8 @@ /// The unique identifier of this event. /// The type of event. /// The faction that initiated the event. -/// The health of the at the time of snapshot. +/// The health of the at the time of snapshot. +/// The maximum health of the at the time of snapshot. /// When the event started. /// When the event will end. /// The identifier of the linked to this event. @@ -16,6 +17,7 @@ public sealed record Event( int EventType, string Faction, long Health, + long MaxHealth, DateTime StartTime, DateTime EndTime, long CampaignId,