Use same types as BSG for properties

This commit is contained in:
Chomp
2025-03-08 09:05:30 +00:00
parent b4adc130e6
commit 5cfa59f615
3 changed files with 4 additions and 4 deletions
@@ -141,7 +141,7 @@ public class HideoutController(
var timestamp = _timeUtil.GetTimeStamp();
profileHideoutArea.CompleteTime = Math.Round((double) (timestamp - ctime));
profileHideoutArea.CompleteTime = (int)Math.Round(timestamp - ctime.Value);
profileHideoutArea.Constructing = true;
}
}
@@ -236,7 +236,7 @@ public class InventoryController(
var desiredArea = pmcData.Hideout.Areas.FirstOrDefault(area => area.Type == hideoutAreaType);
if (desiredArea is not null)
{
desiredArea.Level = newValue;
desiredArea.Level = (int?)newValue;
}
break;
@@ -1841,7 +1841,7 @@ public record BotHideoutArea
}
[JsonPropertyName("level")]
public double? Level
public int? Level
{
get;
set;
@@ -1865,7 +1865,7 @@ public record BotHideoutArea
/// Must be integer
/// </summary>
[JsonPropertyName("completeTime")]
public double? CompleteTime
public int? CompleteTime
{
get;
set;