Prototype game engine for Heroes of Might & Magic, featuring a gameplay plot-twist...
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

46 linhas
1.8KB

  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 operation_index is (
  7. idle,
  8. player_add,
  9. player_subtract,
  10. player_multiply,
  11. player_divide,
  12. player_increment,
  13. player_decrement
  14. );
  15. type operator_index is (
  16. attribute_offense, attribute_defense, attribute_wisdom, attribute_stamina, attribute_speed, attribute_reach,
  17. skill_alchemy, skill_archery, skill_architecture, skill_athletics, skill_diplomacy, skill_estates,
  18. skill_exploration, skill_leadership, skill_logistics, skill_medicine, skill_mercantile, skill_mysticism,
  19. skill_necromancy, skill_resistance, skill_skirmish, skill_sorcery, skill_tactics, skill_thaumaturgy,
  20. resource_gold, resource_wood, resource_stone, resource_metal, resource_leather, resource_gem
  21. );
  22. ------------------------------------------------------------------------------------------
  23. type value is record
  24. operation : operation_index;
  25. operator : operator_index;
  26. modifier : integer;
  27. permanent : boolean;
  28. duration : natural;
  29. end record;
  30. none : value;
  31. ------------------------------------------------------------------------------------------
  32. procedure apply (data : in value);
  33. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  34. end effect;