From 9bc8d4b82324cfb453866dc461a4b268057c0327 Mon Sep 17 00:00:00 2001 From: TheDarkGlobe Date: Fri, 5 Apr 2024 22:09:18 +0200 Subject: [PATCH] Add factions data (#49) --- src/Helldivers-2-API/wwwroot/Helldivers-2-API.json | 4 ++-- src/Helldivers-2-API/wwwroot/Helldivers-2-API_arrowhead.json | 4 ++-- src/Helldivers-2-Core/Mapping/V1/WarMapper.cs | 5 +++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/Helldivers-2-API/wwwroot/Helldivers-2-API.json b/src/Helldivers-2-API/wwwroot/Helldivers-2-API.json index 030568c..1dcdd45 100644 --- a/src/Helldivers-2-API/wwwroot/Helldivers-2-API.json +++ b/src/Helldivers-2-API/wwwroot/Helldivers-2-API.json @@ -857,12 +857,12 @@ }, "health": { "type": "integer", - "description": "The current health of the planet.", + "description": "The current health of the event.", "format": "int64" }, "maxHealth": { "type": "integer", - "description": "The current maximum health of the planet event.", + "description": "The current maximum health of the event.", "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 6198143..0d6a728 100644 --- a/src/Helldivers-2-API/wwwroot/Helldivers-2-API_arrowhead.json +++ b/src/Helldivers-2-API/wwwroot/Helldivers-2-API_arrowhead.json @@ -376,12 +376,12 @@ }, "health": { "type": "integer", - "description": "The current health of the planet.", + "description": "The current health of the event.", "format": "int64" }, "maxHealth": { "type": "integer", - "description": "The current maximum health of the planet event.", + "description": "The current maximum health of the event.", "format": "int64" }, "startTime": { diff --git a/src/Helldivers-2-Core/Mapping/V1/WarMapper.cs b/src/Helldivers-2-Core/Mapping/V1/WarMapper.cs index f6998f8..8bf576e 100644 --- a/src/Helldivers-2-Core/Mapping/V1/WarMapper.cs +++ b/src/Helldivers-2-Core/Mapping/V1/WarMapper.cs @@ -1,4 +1,5 @@ -using Helldivers.Models.ArrowHead; +using Helldivers.Models; +using Helldivers.Models.ArrowHead; using Helldivers.Models.V1; namespace Helldivers.Core.Mapping.V1; @@ -18,7 +19,7 @@ public War MapToV1(WarInfo info, WarStatus status, WarSummary summary, List