Prototype game engine for Heroes of Might & Magic, featuring a gameplay plot-twist...
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.

49 lines
2.2KB

  1. -- Copyright (c) 2024 - Ognjen 'xolatile' Milan Robovic
  2. --
  3. -- GNU General Public Licence (version 3 or later)
  4. with core;
  5. package attribute is
  6. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  7. type enumeration is (
  8. offense, defense, wisdom, stamina, speed, reach
  9. );
  10. ------------------------------------------------------------------------------------------
  11. type information is record
  12. name : core.short_string;
  13. base : natural;
  14. text : core.long_string;
  15. end record;
  16. type points is array (enumeration) of natural;
  17. ------------------------------------------------------------------------------------------
  18. count : constant natural := enumeration'pos (enumeration'last) + 1;
  19. trait : constant array (enumeration) of information := (
  20. ("Offense ", 0, "Offense attribute determines your damage modifier when attacking. "),
  21. ("Defense ", 0, "D-FENS attribute determines how much damage your reflect and receive. "),
  22. ("Wisdom ", 0, "Wisdom attribute determines how much mana your chad has. "),
  23. ("Stamina ", 0, "Stamina attribute determines how fast you recover from being wounded. "),
  24. ("Speed ", 0, "Speed attribute determines how far you can walk per turn. "),
  25. ("Reach ", 0, "Reach attribute determines your range modifier when shooting or casting.")
  26. );
  27. ------------------------------------------------------------------------------------------
  28. procedure configure;
  29. procedure draw_points (data : in points := (others => 0);
  30. x : in integer := 0;
  31. y : in integer := 0);
  32. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  33. end attribute;