Experimental minimal terminal rogue-like game in Ada programming language. I used to write a lot of Ada programs some time ago, then went in full C and assembly mode, and came back to Ada...
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

148 Zeilen
17KB

  1. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  2. -- Copyright (c) 2023 - Ognjen 'xolatile' Milan Robovic
  3. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  4. -- Xabina is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either
  5. -- version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the
  6. -- implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
  7. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  8. with core;
  9. package game is
  10. ------------------------------------------------------------------------------------------
  11. type trait_list is (
  12. trait_strength, trait_perception, trait_edurance, trait_charisma, trait_intelligence, trait_agility, trait_luck, trait_autism
  13. );
  14. type skill_list is (
  15. -- combat skills.
  16. skill_blades, skill_axes, skill_maces, skill_polearms, skill_shields, skill_bows, skill_crossbows, skill_hands,
  17. skill_onehanded, skill_twohanded, skill_precision, skill_thrust, skill_athletics, skill_equitation, skill_tactics, skill_skirmish,
  18. -- magic skills.
  19. skill_fire_magic, skill_water_magic, skill_earth_magic, skill_wind_magic, skill_nature_magic, skill_venom_magic, skill_shadow_magic, skill_bone_magic,
  20. skill_rune_magic, skill_puppet_magic, skill_summon_magic, skill_insect_magic, skill_ritual_magic, skill_rot_magic, skill_tabboo_magic, skill_abyss_magic,
  21. -- trait skills.
  22. skill_wisdom, skill_patience, skill_religion, skill_speech, skill_reflection, skill_refraction, skill_authority, skill_deception,
  23. skill_life_force, skill_mana_force, skill_regeneration, skill_restoration, skill_spellcraft, skill_protection, skill_synthesis, skill_evocation,
  24. -- knowledge skills.
  25. skill_medicine, skill_mercantile, skill_education, skill_navigation, skill_conjuration, skill_alteration, skill_enchanement, skill_teleportation,
  26. skill_astronomy, skill_occultism, skill_mysticism, skill_survival, skill_evasion, skill_stealth, skill_detection, skill_identification,
  27. -- work skills.
  28. skill_blacksmith, skill_whitesmith, skill_light_craft, skill_heavy_craft, skill_light_works, skill_heavy_works, skill_leather, skill_construction,
  29. skill_weapons, skill_armours, skill_engineer, skill_alchemy, skill_ritual, skill_experience, skill_necromancy, skill_reincarnation
  30. );
  31. type title_list is (
  32. title_hero, title_demon_lord, title_dragon_slayer,title_goblin_slayer
  33. );
  34. ------------------------------------------------------------------------------------------
  35. trait_info : constant array (trait_list) of core.description := (
  36. " ",
  37. " ",
  38. " ",
  39. " ",
  40. " ",
  41. " ",
  42. " ",
  43. " "
  44. );
  45. -- Trying out descriptions, this adds nothing to gameplay really, might even remove this shit, for now it's bad and unaligned...
  46. skill_info : constant array (skill_list) of core.description := (
  47. "Blades: Master the art of wielding sharp-edged weapons like swords and daggers to deliver swift and precise strikes. ",
  48. "Axes: Become adept at swinging heavy battle axes and hatchets, crushing your enemies with sheer brute force. ",
  49. "Maces: Hone your skill with blunt weapons like maces and hammers, shattering bones and armor with powerful blows. ",
  50. "Polearms: Command long-reaching weapons like spears and halberds, keeping your foes at bay with deadly thrusts and sweeps. ",
  51. "Shields: Learn to effectively block and parry incoming attacks using different types of shields, ensuring your defense remains intact. ",
  52. "Bows: Master the art of archery, using bows to launch arrows with deadly accuracy from a distance. ",
  53. "Crossbows: Handle crossbows, powerful ranged weapons that can deliver devastating bolts to penetrate even the toughest armor. ",
  54. "Hands: Refine your unarmed combat skills, unleashing a flurry of punches, kicks, and grapples to overpower your opponents. ",
  55. "One-handed: Develop proficiency in wielding one-handed weapons, granting you versatility in combat with a free hand for defense or utility. ",
  56. "Two-handed: Embrace the raw power of massive two-handed weapons like greatswords and battle axes, obliterating foes with mighty strikes. ",
  57. "Precision: Cultivate your precision, increasing your chances of landing critical hits and striking vital points for maximum damage. ",
  58. "Thrust: Focus on the art of thrusting attacks, gaining the ability to pierce armor and penetrate deep into your adversaries' defenses. ",
  59. "Athletics: Strengthen your physical prowess, enhancing your speed, stamina, and agility for swift maneuvers and resilience in combat. ",
  60. "Equitation: Master the art of horse riding, enabling you to swiftly navigate the battlefield and engage enemies from mounted advantage. ",
  61. "Tactics: Develop strategic thinking and decision-making skills, enabling you to plan your actions and exploit your enemies' weaknesses. ",
  62. "Skirmish: Become adept in hit-and-run tactics, excelling in quick engagements where mobility, agility, and surprise are key to victory. ",
  63. "Fire Magic: Harness the power of flames, incinerating foes and wreaking havoc with infernal spells, but beware not to harm yourself. ",
  64. "Water Magic: Manipulate the currents of water and create it from the void, casting torrents and freezing enemies with chilling precision. ",
  65. "Earth Magic: Command the strength of the earth, crushing adversaries with seismic shocks and sturdy defenses. ",
  66. "Wind Magic: Control the swift breeze, unleashing gusts and tearing through enemies with razor-sharp projectiles or increase your speed. ",
  67. "Nature Magic: Channel the essence of the natural world, nurturing allies and summoning creatures of the wilderness. ",
  68. "Venom Magic: Inflict deadly toxins and poisons, weakening enemies and watching them succumb to vile venom, or weaken them and run away. ",
  69. "Shadow Magic: Embrace the darkness, concealing yourself in the shadows and draining life energy with sinister shadow spells. ",
  70. "Bone Magic: Manipulate the skeletal remnants of the deceased, raising undead minions and casting bone-shattering spells or healing ones. ",
  71. "Rune Magic: Inscribe and activate ancient runes, unleashing elemental forces and unraveling unseen and destructive ancient magical barriers. ",
  72. "Puppet Magic: Seize control of minds, bending the will of your enemies and forcing them to do your bidding or create a puppet to do it. ",
  73. "Summon Magic: Conjure ethereal allies and mythical creatures, bolstering your forces and overwhelming your foes. ",
  74. "Insect Magic: Command swarms of insects, inflicting agonizing stings and unleashing plague-like devastation, making allies of former foes. ",
  75. "Ritual Magic: Perform intricate and powerful sacrificial rituals to exchange life force for items, magic, scrolls, gold or power. ",
  76. "Rot Magic: Embrace decay and putrefaction, corroding the flesh of your enemies and spreading pestilence and plague. ",
  77. "Taboo Magic: Seek forbidden arts, delving into dark rituals and wielding forbidden spells with dire consequences, but be very careful. ",
  78. "Abyss Magic: Harness the eldritch forces from the depths of the abyss, unraveling reality and engulfing enemies in chaos. ",
  79. "Wisdom: Acquire profound knowledge and insight to navigate challenges wisely. ",
  80. "Patience: Endure and persevere through trials with calmness and resilience. ",
  81. "Religion: Channel divine power through faith and devotion to overcome obstacles. ",
  82. "Speech: Persuasively communicate thoughts and ideas, influencing others effectively. ",
  83. "Reflection: Engage in self-analysis, learning from experiences for personal growth. ",
  84. "Refraction: Bend and manipulate the flow of energy to alter its course. ",
  85. "Authority: Command respect, possess leadership skills, and wield influence. ",
  86. "Deception: Master the art of trickery and illusion to deceive opponents cunningly. ",
  87. "Life Force: Harness the essence of vitality to sustain and strengthen oneself. ",
  88. "Mana Force: Manipulate and control magical energy for various purposes. ",
  89. "Regeneration: Restore health and vitality gradually and naturally over time. ",
  90. "Restoration: Mend and heal wounds, restoring physical and spiritual well-being. ",
  91. "Spellcraft: Master the intricate art of casting spells with precision and expertise. ",
  92. "Protection: Shield oneself and allies, providing defense against harm and danger. ",
  93. "Synthesis: Combine elements harmoniously, creating powerful and synergistic effects. ",
  94. "Evocation: Summon and command mystical forces, unleashing their power and potential. ",
  95. "Medicine: Heal wounds and cure ailments, preserving health and vitality. ",
  96. "Mercantile: Master the art of trade and negotiation, obtaining valuable resources and goods. ",
  97. "Education: Expand knowledge and gain expertise in various subjects, unlocking new possibilities. ",
  98. "Navigation: Navigate through treacherous terrains, uncovering hidden paths and shortcuts. ",
  99. "Conjuration: Summon and command ethereal beings and objects to aid in battle and exploration. ",
  100. "Alteration: Manipulate and reshape the physical world, bending it to your will. ",
  101. "Enchantment: Infuse objects with magical properties, enhancing their abilities and powers. ",
  102. "Teleportation: Instantly transport yourself across distances, bypassing obstacles and traps. ",
  103. "Astronomy: Study celestial bodies and their movements, unlocking celestial insights and abilities. ",
  104. "Occultism: Harness forbidden knowledge and practices, tapping into dark and mysterious forces. ",
  105. "Mysticism: Connect with spiritual realms, accessing mystical powers and ancient wisdom. ",
  106. "Survival: Thrive in harsh environments, utilizing nature's resources and adapting to challenges. ",
  107. "Evasion: Evade and dodge attacks with exceptional reflexes and agility. ",
  108. "Stealth: Move silently and remain undetected, infiltrating enemy territories with stealth and precision. ",
  109. "Detection: Uncover hidden secrets and traps, perceive hidden objects and enemies. ",
  110. "Identification: Identify and analyze unknown items and artifacts, revealing their true nature and potential. ",
  111. "Blacksmith: Master the art of forging and shaping metals, crafting powerful weapons and armor. ",
  112. "Whitesmith: Refine and enhance crafted items, imbuing them with special properties and bonuses. ",
  113. "Light Craft: Create delicate and intricate objects, such as jewelry and trinkets, with finesse and precision. ",
  114. "Heavy Craft: Construct robust and durable structures, fortifying defenses and creating formidable tools. ",
  115. "Light Works: Skillfully manipulate light and optics, creating illusions and harnessing blinding brilliance. ",
  116. "Heavy Works: Command elemental forces and harness their raw power, shaping them for destruction or creation. ",
  117. "Leather: Tame and work with animal hides, fashioning resilient armor and accessories. ",
  118. "Construction: Design and erect structures, fortresses, and defenses in an efficient and strategic manner. ",
  119. "Weapons: Wield a wide array of lethal weapons, mastering various combat styles and techniques. ",
  120. "Armours: Forge resilient armor and protective gear, shielding against incoming threats and attacks. ",
  121. "Engineer: Innovate and create mechanical wonders, building intricate contraptions and mechanisms. ",
  122. "Alchemy: Transmute and brew potent elixirs and potions, unlocking the power of transformative substances. ",
  123. "Ritual: Perform ancient rituals, invoking otherworldly energies to manipulate reality itself. ",
  124. "Experience: Draw upon accumulated knowledge and insights, gaining wisdom and enhancing abilities. ",
  125. "Necromancy: Command the forces of death and undeath, bending the deceased to your will. ",
  126. "Reincarnation: Manipulate the cycle of life and death, granting second chances and renewed existence. "
  127. );
  128. title_info : constant array (title_list) of core.description := (
  129. " ",
  130. " ",
  131. " ",
  132. " "
  133. );
  134. ------------------------------------------------------------------------------------------
  135. end game;