Prototype game engine for Heroes of Might & Magic, featuring a gameplay plot-twist...
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

36 řádky
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;