Prototype game engine for Heroes of Might & Magic, featuring a gameplay plot-twist...
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

71 строка
2.9KB

  1. -- Copyright (c) 2024 - Ognjen 'xolatile' Milan Robovic
  2. --
  3. -- GNU General Public Licence (version 3 or later)
  4. with core;
  5. use core;
  6. package material is
  7. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  8. type enumeration is (
  9. sulphur, mercury, mint, cinnamon, apple, peach,
  10. pear, banana, orange, plum, cherry, lemon,
  11. potato, wheat, carrot, cucumber, onion, garlic,
  12. eggplant, tomato, meat, fish_meat, skull, animal_skull,
  13. bone, rib_cage, animal_skin, animal_fur
  14. );
  15. ------------------------------------------------------------------------------------------
  16. type definition is record
  17. name : core.unstring;
  18. cost : natural;
  19. end record;
  20. type points is array (enumeration) of core.point;
  21. ------------------------------------------------------------------------------------------
  22. count : constant natural := enumeration'pos (enumeration'last) + 1;
  23. default : constant points := (others => (1, 12));
  24. description : constant array (enumeration) of definition := (
  25. sulphur => (+("Sulphur"), 11),
  26. mercury => (+("Mercury"), 13),
  27. mint => (+("Mint"), 3),
  28. cinnamon => (+("Cinnamon"), 5),
  29. apple => (+("Apple"), 2),
  30. peach => (+("Peach"), 2),
  31. pear => (+("Pear"), 2),
  32. banana => (+("Banana"), 3),
  33. orange => (+("Orange"), 3),
  34. plum => (+("Plum"), 3),
  35. cherry => (+("Cherry"), 3),
  36. lemon => (+("Lemon"), 2),
  37. potato => (+("Potato"), 1),
  38. wheat => (+("Wheat"), 1),
  39. carrot => (+("Carrot"), 2),
  40. cucumber => (+("Cucumber"), 3),
  41. onion => (+("Onion"), 2),
  42. garlic => (+("Garlic"), 2),
  43. eggplant => (+("Eggplant"), 3),
  44. tomato => (+("Tomato"), 2),
  45. meat => (+("Meat"), 3),
  46. fish_meat => (+("Fish Meat"), 2),
  47. skull => (+("Skull"), 1),
  48. animal_skull => (+("Animal Skull"), 1),
  49. bone => (+("Bone"), 1),
  50. rib_cage => (+("Rib Cage"), 1),
  51. animal_skin => (+("Animal Skin"), 5),
  52. animal_fur => (+("Animal Fur"), 7)
  53. );
  54. icon : array (enumeration) of core.sprite;
  55. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  56. end material;