diff --git a/IGP/Pages/BuildCalculator/BuildCalculatorPage.razor b/IGP/Pages/BuildCalculator/BuildCalculatorPage.razor
index f5901fd..22f86c0 100644
--- a/IGP/Pages/BuildCalculator/BuildCalculatorPage.razor
+++ b/IGP/Pages/BuildCalculator/BuildCalculatorPage.razor
@@ -22,7 +22,9 @@
Work In Progress and Not Fully Tested
- Build Calculator hasn't been thoroughly tested. Bugs and inaccurate results assumed.
+ Build Calculator hasn't been thoroughly tested. Bugs and inaccurate results assumed.
+
+ Currently not considering running out of alloy and ether to harvest.
diff --git a/IGP/Pages/BuildCalculator/Parts/BankComponent.razor b/IGP/Pages/BuildCalculator/Parts/BankComponent.razor
index f3946a8..c648969 100644
--- a/IGP/Pages/BuildCalculator/Parts/BankComponent.razor
+++ b/IGP/Pages/BuildCalculator/Parts/BankComponent.razor
@@ -7,14 +7,14 @@
- @BuildOrderService.GetLastRequestInterval() | T @Interval.ToTime(BuildOrderService.GetLastRequestInterval())
+ @(BuildOrderService.GetLastRequestInterval() + 1) | T @Interval.ToTime(BuildOrderService.GetLastRequestInterval() + 1)
- @_economy.Alloy
+ @_economy.Alloy +@_economy.AlloyIncome
- @_economy.Ether
+ @Math.Round(_economy.Ether) +@Math.Round(_economy.EtherIncome)
@@ -77,6 +77,9 @@
{
base.OnInitialized();
BuildOrderService.Subscribe(OnBuildOrderChanged);
+
+
+ _economy = EconomyService.GetEconomy(BuildOrderService.GetLastRequestInterval() + 1);
}
protected override bool ShouldRender()
@@ -102,7 +105,7 @@
void OnBuildOrderChanged()
{
- _economy = EconomyService.GetEconomy(BuildOrderService.GetLastRequestInterval());
+ _economy = EconomyService.GetEconomy(BuildOrderService.GetLastRequestInterval() + 1);
var ordersOverTime = BuildOrderService.GetOrders();
diff --git a/IGP/wwwroot/generated/Variables.json b/IGP/wwwroot/generated/Variables.json
index 4bfccba..99b95bd 100644
--- a/IGP/wwwroot/generated/Variables.json
+++ b/IGP/wwwroot/generated/Variables.json
@@ -1 +1 @@
-[{"Key":"GamePatch","Value":"v0.0.6.9553a"},{"Key":"LastUpdated","Value":"May 02, 2022"}]
\ No newline at end of file
+[{"Key":"GamePatch","Value":"v0.0.6.9553a"},{"Key":"LastUpdated","Value":"May 03, 2022"}]
\ No newline at end of file
diff --git a/Model/Economy/EconomyModel.cs b/Model/Economy/EconomyModel.cs
index b53f488..40095e3 100644
--- a/Model/Economy/EconomyModel.cs
+++ b/Model/Economy/EconomyModel.cs
@@ -7,7 +7,9 @@ public class EconomyModel
{
public int Interval { get; set; } = 0;
public float Alloy { get; set; } = 0;
+ public float AlloyIncome { get; set; } = 0;
public float Ether { get; set; } = 0;
+ public float EtherIncome { get; set; } = 0;
public float Pyre { get; set; } = 0;
public int Supply { get; set; } = 0;
public int WorkerCount { get; set; } = 6;
diff --git a/Services/Immortal/EconomyService.cs b/Services/Immortal/EconomyService.cs
index af9d36f..e869dde 100644
--- a/Services/Immortal/EconomyService.cs
+++ b/Services/Immortal/EconomyService.cs
@@ -173,6 +173,8 @@ public class EconomyService : IEconomyService
{
var usedWorkers = Math.Min(harvester.Slots, freeWorkers);
economyAtSecond.Alloy += harvester.HarvestedPerInterval * usedWorkers;
+ economyAtSecond.AlloyIncome += harvester.HarvestedPerInterval * usedWorkers;
+
freeWorkers -= usedWorkers;
if (usedWorkers < harvester.Slots) workersNeeded += 1;
@@ -181,10 +183,16 @@ public class EconomyService : IEconomyService
if (harvester.RequiresWorker == false)
{
if (harvester.Resource == ResourceType.Ether)
+ {
economyAtSecond.Ether += harvester.HarvestedPerInterval * harvester.Slots;
-
+ economyAtSecond.EtherIncome += harvester.HarvestedPerInterval * harvester.Slots;
+ }
+
if (harvester.Resource == ResourceType.Alloy)
+ {
economyAtSecond.Alloy += harvester.HarvestedPerInterval * harvester.Slots;
+ economyAtSecond.AlloyIncome += harvester.HarvestedPerInterval * harvester.Slots;
+ }
}
}