mirror of
https://github.com/arnaucube/gogame.git
synced 2026-02-07 03:26:39 +01:00
add energy consumption by mines
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user