Skip to content

Commit

Permalink
Add factions data (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
lambstream authored Apr 5, 2024
1 parent ac46f2a commit 9bc8d4b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/Helldivers-2-API/wwwroot/Helldivers-2-API.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
4 changes: 2 additions & 2 deletions src/Helldivers-2-API/wwwroot/Helldivers-2-API_arrowhead.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
5 changes: 3 additions & 2 deletions src/Helldivers-2-Core/Mapping/V1/WarMapper.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Helldivers.Models.ArrowHead;
using Helldivers.Models;
using Helldivers.Models.ArrowHead;
using Helldivers.Models.V1;

namespace Helldivers.Core.Mapping.V1;
Expand All @@ -18,7 +19,7 @@ public War MapToV1(WarInfo info, WarStatus status, WarSummary summary, List<Plan
Ended: DateTime.UnixEpoch.AddSeconds(info.EndDate),
Now: DateTime.UnixEpoch.AddSeconds(status.Time),
ClientVersion: info.MinimumClientVersion,
Factions: [],
Factions: Static.Factions.Values.ToList(),
ImpactMultiplier: status.ImpactMultiplier,
Statistics: statisticsMapper.MapToV1(summary.GalaxyStats, planets)
);
Expand Down

0 comments on commit 9bc8d4b

Please sign in to comment.