Use same types as BSG for properties
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user