Prototype game engine for Heroes of Might & Magic, featuring a gameplay plot-twist...
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

47 lignes
2.0KB

  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 attribute is
  7. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  8. type enumeration is (
  9. offense, defense, wisdom, stamina, speed, reach
  10. );
  11. ------------------------------------------------------------------------------------------
  12. type definition is record
  13. base : core.point;
  14. name : core.unstring;
  15. text : core.unstring;
  16. end record;
  17. type points is array (enumeration) of core.point;
  18. type bonus is array (enumeration) of natural;
  19. ------------------------------------------------------------------------------------------
  20. count : constant natural := enumeration'pos (enumeration'last) + 1;
  21. default : constant points := (others => (1, 12));
  22. description : constant array (enumeration) of definition := (
  23. offense => ((1, 12), +("Offense"), +("Offense attribute determines your damage modifier when attacking.")),
  24. defense => ((1, 12), +("Defense"), +("D-FENS attribute determines how much damage your reflect and receive.")),
  25. wisdom => ((1, 12), +("Wisdom"), +("Wisdom attribute determines how much mana your chad has.")),
  26. stamina => ((1, 12), +("Stamina"), +("Stamina attribute determines how fast you recover from being wounded.")),
  27. speed => ((1, 12), +("Speed"), +("Speed attribute determines how far you can walk per turn.")),
  28. reach => ((1, 12), +("Reach"), +("Reach attribute determines your range modifier when shooting or casting."))
  29. );
  30. icon : array (enumeration) of core.sprite;
  31. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  32. end attribute;