add energy consumption by mines

This commit is contained in:
arnaucube
2019-06-19 22:54:33 +02:00
parent 6226d47791
commit 7fddfa16c4
2 changed files with 32 additions and 4 deletions

View File

@@ -59,6 +59,25 @@ func FusionGrowth(ilvl int64, ilvlTech int64, idelta int64) int64 {
return int64(r)
}
func MetalMineEnergyConsumption(ilvl int64) int64 {
lvl := float64(ilvl)
// 10 * lvl * 1.1^lvl
c := 10 * lvl * math.Pow(1.1, lvl)
return int64(c)
}
func CrystalMineEnergyConsumption(ilvl int64) int64 {
lvl := float64(ilvl)
// 10 * lvl * 1.1^lvl
c := 10 * lvl * math.Pow(1.1, lvl)
return int64(c)
}
func DeuteriumMineEnergyConsumption(ilvl int64) int64 {
lvl := float64(ilvl)
// 20 * lvl * 1.1^lvl
c := 10 * lvl * math.Pow(1.1, lvl)
return int64(c)
}
// https://ogame.fandom.com/wiki/Buildings
// https://ogame.fandom.com/wiki/Metal_Mine