You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
1.1 KiB

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