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.

61 linhas
3.6KB

  1. -- Copyright (c) 2024 - Ognjen 'xolatile' Milan Robovic
  2. --
  3. -- GNU General Public Licence (version 3 or later)
  4. with core;
  5. package skill is
  6. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  7. type enumeration is (
  8. alchemy, archery, architecture, athletics, diplomacy, estates,
  9. exploration, leadership, logistics, medicine, mercantile, mysticism,
  10. necromancy, resistance, skirmish, sorcery, tactics, thaumaturgy
  11. );
  12. ------------------------------------------------------------------------------------------
  13. type information is record
  14. name : core.short_string;
  15. base : natural;
  16. text : core.long_string;
  17. end record;
  18. type points is array (enumeration) of natural;
  19. ------------------------------------------------------------------------------------------
  20. count : constant natural := enumeration'pos (enumeration'last) + 1;
  21. trait : constant array (enumeration) of information := (
  22. ("Alchemy ", 0, "Alchemy skill determines effectiveness of your vials and potions. "),
  23. ("Archery ", 0, "Archery skill determines effectiveness and range or your archers. "),
  24. ("Architecture ", 0, "Architecture decreases time spent on building constructions. "),
  25. ("Athletics ", 0, "Athletics increases movement speed of all your units, since they train. "),
  26. ("Diplomacy ", 0, "Diplomacy helps you to avoid starting a battle you can't win. "),
  27. ("Estates ", 0, "Estates makes you the ultimate crypto-bro, establishing a blockchain. "),
  28. ("Exploration ", 0, "Exploration is quite self-explanatory... "),
  29. ("Leadership ", 0, "Leadership is the default skill for any true chad, like God intended. "),
  30. ("Logistics ", 0, "Logistics is a nightmare in real life, but this is only a game. "),
  31. ("Medicine ", 0, "Medicine skill makes you swallow pills like a kid in a drugstore. "),
  32. ("Mercantile ", 0, "Mercantile is the skill of any true-born nosy person, otherwise useless."),
  33. ("Mysticism ", 0, "Mysticism allows you to have 60 cats, drink wine and talk weird. "),
  34. ("Necromancy ", 0, "Necromancy lets you not to waste the bones after every battle. "),
  35. ("Resistence ", 0, "Resistence skill increases defense points of all your units slightly. "),
  36. ("Skirmish ", 0, "Skirmish makes your units go berserk when they have little health left. "),
  37. ("Sorcery ", 0, "Sorcery skill is appropriately named useless skill to have in real life."),
  38. ("Tactics ", 0, "Tactics is the opposite of skirmish, master it and lose in every battle."),
  39. ("Thaumaturgy ", 0, "Thaumaturgy lets you do nothing, and hope that the best will happen. ")
  40. );
  41. ------------------------------------------------------------------------------------------
  42. procedure configure;
  43. procedure draw_points (data : in points; x, y : in integer);
  44. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  45. end skill;