Prototype game engine for Heroes of Might & Magic, featuring a gameplay plot-twist...
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

36 rindas
1.1KB

  1. -- Copyright (c) 2024 - Ognjen 'xolatile' Milan Robovic
  2. --
  3. -- GNU General Public Licence (version 3 or later)
  4. package effect is
  5. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  6. type enumeration is (
  7. idle,
  8. modify_attribute,
  9. modify_skill,
  10. modify_resource,
  11. modify_material
  12. );
  13. ------------------------------------------------------------------------------------------
  14. type information is record
  15. kind : enumeration;
  16. modifier : integer;
  17. amount : integer;
  18. permanent : boolean;
  19. duration : natural;
  20. end record;
  21. none : constant information := (idle, 0, 0, false, 0);
  22. ------------------------------------------------------------------------------------------
  23. procedure apply (data : in information);
  24. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  25. end effect;