Fixed bugs

This commit is contained in:
6d486f49
2025-11-07 18:22:21 -05:00
parent 8ce9084ffb
commit fe1a583da9
8 changed files with 31 additions and 34 deletions
@@ -224,21 +224,21 @@ else
var economyAtSecond = economyOverTime[interval];
var alloyWorkerHarvesters = from harvester in economyAtSecond.HarvestPoints
where harvester.Harvest() != null
where harvester.Harvest().RequiresWorker
where harvester.Harvest().Resource == ResourceType.Alloy
where harvester.Harvester() != null
where harvester.Harvester().RequiresWorker
where harvester.Harvester().Resource == ResourceType.Alloy
select harvester;
var alloyAutomaticHarvesters = from harvester in economyAtSecond.HarvestPoints
where harvester.Harvest() != null
where harvester.Harvest().RequiresWorker == false
where harvester.Harvest().Resource == ResourceType.Alloy
where harvester.Harvester() != null
where harvester.Harvester().RequiresWorker == false
where harvester.Harvester().Resource == ResourceType.Alloy
select harvester;
var etherAutomaticHarvesters = from harvester in economyAtSecond.HarvestPoints
where harvester.Harvest() != null
where harvester.Harvest().RequiresWorker == false
where harvester.Harvest().Resource == ResourceType.Ether
where harvester.Harvester() != null
where harvester.Harvester().RequiresWorker == false
where harvester.Harvester().Resource == ResourceType.Ether
select harvester;
float autoAlloy = 0;
@@ -250,7 +250,7 @@ else
foreach (var alloyAutoHarvester in alloyAutomaticHarvesters)
{
autoAlloy += alloyAutoHarvester.Harvest().Slots * alloyAutoHarvester.Harvest().HarvestedPerInterval;
autoAlloy += alloyAutoHarvester.Harvester().Slots * alloyAutoHarvester.Harvester().HarvestedPerInterval;
var production = alloyAutoHarvester.Production();
if (production != null)
{
@@ -260,7 +260,7 @@ else
foreach (var alloyWorkerHarvester in alloyWorkerHarvesters)
{
workerSlots += alloyWorkerHarvester.Harvest().Slots;
workerSlots += alloyWorkerHarvester.Harvester().Slots;
var production = alloyWorkerHarvester.Production();
if (production != null)
{
@@ -270,7 +270,7 @@ else
foreach (var etherWorkerHarvester in etherAutomaticHarvesters)
{
autoEther += etherWorkerHarvester.Harvest().Slots * etherWorkerHarvester.Harvest().HarvestedPerInterval;
autoEther += etherWorkerHarvester.Harvester().Slots * etherWorkerHarvester.Harvester().HarvestedPerInterval;
var production = etherWorkerHarvester.Production();
if (production != null)
{
@@ -132,15 +132,15 @@
var economyAtSecond = economyOverTime[interval];
var alloyWorkerHarvesters = from harvester in economyAtSecond.HarvestPoints
where harvester.Harvest() != null
where harvester.Harvest().RequiresWorker
where harvester.Harvest().Resource == ResourceType.Alloy
where harvester.Harvester() != null
where harvester.Harvester().RequiresWorker
where harvester.Harvester().Resource == ResourceType.Alloy
select harvester;
var alloyAutomaticHarvesters = from harvester in economyAtSecond.HarvestPoints
where harvester.Harvest() != null
where harvester.Harvest().RequiresWorker == false
where harvester.Harvest().Resource == ResourceType.Alloy
where harvester.Harvester() != null
where harvester.Harvester().RequiresWorker == false
where harvester.Harvester().Resource == ResourceType.Alloy
select harvester;
@@ -152,7 +152,7 @@
foreach (var alloyAutoHarvester in alloyAutomaticHarvesters)
{
autoAlloy += alloyAutoHarvester.Harvest().Slots * alloyAutoHarvester.Harvest().HarvestedPerInterval;
autoAlloy += alloyAutoHarvester.Harvester().Slots * alloyAutoHarvester.Harvester().HarvestedPerInterval;
var production = alloyAutoHarvester.Production();
if (production != null)
{
@@ -162,7 +162,7 @@
foreach (var alloyWorkerHarvester in alloyWorkerHarvesters)
{
workerSlots += alloyWorkerHarvester.Harvest().Slots;
workerSlots += alloyWorkerHarvester.Harvester().Slots;
var production = alloyWorkerHarvester.Production();
if (production != null)
{