Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
alaingilbert committed Sep 3, 2018
1 parent 6eda515 commit 8569e51
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions ogame.go
Original file line number Diff line number Diff line change
Expand Up @@ -1464,40 +1464,40 @@ func calcFuel(ships ShipsInfos, dist int, speed float64) (fuel int) {
fuel += tmpFn(LightFighter.FuelConsumption) * ships.LightFighter
}
if ships.HeavyFighter > 0 {
fuel += tmpFn(HeavyFighter.FuelConsumption) * ships.LightFighter
fuel += tmpFn(HeavyFighter.FuelConsumption) * ships.HeavyFighter
}
if ships.Cruiser > 0 {
fuel += tmpFn(Cruiser.FuelConsumption) * ships.LightFighter
fuel += tmpFn(Cruiser.FuelConsumption) * ships.Cruiser
}
if ships.Battleship > 0 {
fuel += tmpFn(Battleship.FuelConsumption) * ships.LightFighter
fuel += tmpFn(Battleship.FuelConsumption) * ships.Battleship
}
if ships.Battlecruiser > 0 {
fuel += tmpFn(Battlecruiser.FuelConsumption) * ships.LightFighter
fuel += tmpFn(Battlecruiser.FuelConsumption) * ships.Battlecruiser
}
if ships.Bomber > 0 {
fuel += tmpFn(Bomber.FuelConsumption) * ships.LightFighter
fuel += tmpFn(Bomber.FuelConsumption) * ships.Bomber
}
if ships.Destroyer > 0 {
fuel += tmpFn(Destroyer.FuelConsumption) * ships.LightFighter
fuel += tmpFn(Destroyer.FuelConsumption) * ships.Destroyer
}
if ships.Deathstar > 0 {
fuel += tmpFn(Deathstar.FuelConsumption) * ships.LightFighter
fuel += tmpFn(Deathstar.FuelConsumption) * ships.Deathstar
}
if ships.SmallCargo > 0 {
fuel += tmpFn(SmallCargo.FuelConsumption) * ships.LightFighter
fuel += tmpFn(SmallCargo.FuelConsumption) * ships.SmallCargo
}
if ships.LargeCargo > 0 {
fuel += tmpFn(LargeCargo.FuelConsumption) * ships.LightFighter
fuel += tmpFn(LargeCargo.FuelConsumption) * ships.LargeCargo
}
if ships.ColonyShip > 0 {
fuel += tmpFn(ColonyShip.FuelConsumption) * ships.LightFighter
fuel += tmpFn(ColonyShip.FuelConsumption) * ships.ColonyShip
}
if ships.Recycler > 0 {
fuel += tmpFn(Recycler.FuelConsumption) * ships.LightFighter
fuel += tmpFn(Recycler.FuelConsumption) * ships.Recycler
}
if ships.EspionageProbe > 0 {
fuel += tmpFn(EspionageProbe.FuelConsumption) * ships.LightFighter
fuel += tmpFn(EspionageProbe.FuelConsumption) * ships.EspionageProbe
}
return
}
Expand Down

0 comments on commit 8569e51

Please sign in to comment.