gogame-old/constants/constants.go
constants/constants.goRaw
1package constants
2
3import (
4 "github.com/arnaucube/gogame/models"
5)
6
7// game constants
8
9const GALAXYSIZE = 50
10const SOLARSYSTEMSIZE = 15
11
12// MetalMineLevels contains the constants of productivity for each level, sorted from 0 to X levels
13var MetalMineLevels = []int64{
14 0,
15 1,
16 5,
17 10,
18 // TODO this will be same strategy with all the buildings and research
19}
20var CrystalMineLevels = []int64{
21 0,
22 1,
23 5,
24 10,
25}
26var DeuteriumMineLevels = []int64{
27 0,
28 1,
29 5,
30 10,
31}
32var EnergyMineLevels = []int64{
33 0,
34 1,
35 5,
36 10,
37}
38
39// BuildingsNeededResources hold
40// map with all the buildings, that each one is a map with the levels of the buildings with the needed ressources
41var BuildingsNeededResources = map[string]map[int64]models.Resources{
42 "metalplant": map[int64]models.Resources{
43 1: models.Resources{
44 Metal: 50,
45 Crystal: 50,
46 Deuterium: 50,
47 Energy: 50,
48 },
49 2: models.Resources{
50 Metal: 70,
51 Crystal: 70,
52 Deuterium: 70,
53 Energy: 70,
54 },
55 3: models.Resources{
56 Metal: 90,
57 Crystal: 90,
58 Deuterium: 90,
59 Energy: 90,
60 },
61 },
62}