Fix cargo for "non espionageProbeRaids" universes
@@ -2408,6 +2408,9 @@ func (b *OGame) sendFleet(celestialID CelestialID, ships []Quantifiable, speed S
return Fleet{}, fmt.Errorf("not enough deuterium, avail: %d, need: %d", resourcesAvailable.Deuterium, deutConsumption)
}
finalCargo := ParseInt(fleet3Doc.Find("#maxresources").Text())
+ if b.GetServer().Settings.EspionageProbeRaids != 1 {
+ finalCargo += finalShips.EspionageProbe * EspionageProbe.BaseCargoCapacity
+ }
if deutConsumption > finalCargo {
return Fleet{}, fmt.Errorf("not enough cargo capacity, avail: %d, need: %d", finalCargo, deutConsumption)
}
