This commit is contained in:
2026-06-04 12:32:44 -04:00
parent 7c00c14d9e
commit 814f3a3858
3 changed files with 4 additions and 2 deletions
@@ -8,6 +8,7 @@
var requirements = entity.Requirements(); var requirements = entity.Requirements();
var vanguardAdded = entity.VanguardAdded(); var vanguardAdded = entity.VanguardAdded();
if (vanguardAdded == null) continue;
var replaced = EntityData.Get()[vanguardAdded.ReplaceId]; var replaced = EntityData.Get()[vanguardAdded.ReplaceId];
var immortal = EntityData.Get()[vanguardAdded.ImmortalId]; var immortal = EntityData.Get()[vanguardAdded.ImmortalId];
+2 -1
View File
@@ -282,7 +282,8 @@ public class BuildOrderService : IBuildOrderService
{ {
return (from ordersAtTime in _buildOrder.StartedOrders return (from ordersAtTime in _buildOrder.StartedOrders
from orders in ordersAtTime.Value from orders in ordersAtTime.Value
where ordersAtTime.Key + (orders.Production() == null ? 0 : orders.Production().BuildTime) <= interval let production = orders.Production()
where ordersAtTime.Key + (production?.BuildTime ?? 0) <= interval
select orders).ToList(); select orders).ToList();
} }
+1 -1
View File
@@ -45,7 +45,7 @@ public class StorageService : IStorageService
public T GetValue<T>(string forKey) public T GetValue<T>(string forKey)
{ {
return _localStorageService.GetItem<T>(forKey); return _localStorageService.GetItem<T>(forKey)!;
} }
public void SetValue<T>(string key, T value) public void SetValue<T>(string key, T value)