From 866dda684f8a3b3191ba573cabc7e9545f88c225 Mon Sep 17 00:00:00 2001 From: xolatile Date: Wed, 13 Mar 2024 19:55:53 -0400 Subject: [PATCH] Added might descriptions... --- source/main.adb | 2 +- source/might.adb | 4 +- source/might.ads | 121 ++++++++++++++++++++++++++++--------------------------- 3 files changed, 64 insertions(+), 63 deletions(-) diff --git a/source/main.adb b/source/main.adb index 8c2a772..81c8fd6 100644 --- a/source/main.adb +++ b/source/main.adb @@ -105,8 +105,8 @@ begin --~unit.stat (unit.spirit, 0, 0, true); --~unit.stat (unit.power_lich, 0, 0, true); -- - --~might.menu (0, 0, true); magic.menu (0, 0, true); + might.menu (0, 0, true); -- ui.draw_text_box (0, core.window_height - 32, core.window_width, 32); end loop gameplay; diff --git a/source/might.adb b/source/might.adb index 30039c1..8fe7dbd 100644 --- a/source/might.adb +++ b/source/might.adb @@ -39,7 +39,7 @@ package body might is procedure icon (index : in codex; x, y : in integer) is begin core.draw (icon_sprite (index), x + 2, y + 2); - ui.draw_overicon ("", x, y); + ui.draw_overicon (trait (index).text, x, y); end icon; ------------------------------------------------------------------------------------------ @@ -48,7 +48,7 @@ package body might is offset : constant integer := 4; begin core.draw (view_sprite (index), x + offset, y + offset); - ui.draw_icon_menu ("", x, y, view_width + 2 * offset, view_height + 2 * offset); + ui.draw_icon_menu (trait (index).text, x, y, view_width + 2 * offset, view_height + 2 * offset); end view; ------------------------------------------------------------------------------------------ diff --git a/source/might.ads b/source/might.ads index 7514c72..36bae82 100644 --- a/source/might.ads +++ b/source/might.ads @@ -44,6 +44,7 @@ package might is kind : school; level : level_limit; evoke : effect.codex; + text : core.long_string; end record; type trait_array is array (codex) of information; @@ -53,66 +54,66 @@ package might is count : constant natural := codex'pos (codex'last) + 1; trait : constant trait_array := ( - ("Cover ", archery, 0, effect.none), - ("Evasive Maneuvers ", archery, 0, effect.none), - ("Focused Fire ", archery, 0, effect.none), - ("Magic Ammunition ", archery, 0, effect.none), - ("Piercing Bolt ", archery, 0, effect.none), - ("Precision ", archery, 0, effect.none), - ("Retreat ", archery, 0, effect.none), - ("Taunt ", archery, 0, effect.none), - ("Charismatic Leader ", defense, 0, effect.none), - ("Counterstrike ", defense, 0, effect.none), - ("Double Counterstrike ", defense, 0, effect.none), - ("Resilience ", defense, 0, effect.none), - ("Revenge ", defense, 0, effect.none), - ("Shield Of The Virtue ", defense, 0, effect.none), - ("Stand Your Ground Mass ", defense, 0, effect.none), - ("Stand Your Ground ", defense, 0, effect.none), - ("Toughness ", defense, 0, effect.none), - ("Banker ", economy, 0, effect.none), - ("Destroyer ", economy, 0, effect.none), - ("Leadership ", economy, 0, effect.none), - ("Lumber ", economy, 0, effect.none), - ("Manager ", economy, 0, effect.none), - ("Merchant ", economy, 0, effect.none), - ("Miner ", economy, 0, effect.none), - ("Plunderer ", economy, 0, effect.none), - ("Snatch ", economy, 0, effect.none), - ("Alchemist ", education, 0, effect.none), - ("Architect ", education, 0, effect.none), - ("Ballistics ", education, 0, effect.none), - ("Chosen One ", education, 0, effect.none), - ("Diplomacy ", education, 0, effect.none), - ("Economist ", education, 0, effect.none), - ("General ", education, 0, effect.none), - ("Mentor ", education, 0, effect.none), - ("Siege Master ", education, 0, effect.none), - ("Explorer ", logistics, 0, effect.none), - ("Navigation ", logistics, 0, effect.none), - ("Observer ", logistics, 0, effect.none), - ("Orientation ", logistics, 0, effect.none), - ("Pathfinder ", logistics, 0, effect.none), - ("Scout ", logistics, 0, effect.none), - ("Spy ", logistics, 0, effect.none), - ("Trust The Plan ", logistics, 0, effect.none), - ("Assailant ", offense, 0, effect.none), - ("Battle March ", offense, 0, effect.none), - ("Cleave ", offense, 0, effect.none), - ("Flawless Attack ", offense, 0, effect.none), - ("Giant Slayer ", offense, 0, effect.none), - ("Heroic Charge ", offense, 0, effect.none), - ("Parry ", offense, 0, effect.none), - ("Pressed Attack ", offense, 0, effect.none), - ("Rampage ", offense, 0, effect.none), - ("Ambush ", tactics, 0, effect.none), - ("Commander ", tactics, 0, effect.none), - ("Crippling Traps ", tactics, 0, effect.none), - ("Diving Attack ", tactics, 0, effect.none), - ("Heroism Mass ", tactics, 0, effect.none), - ("Heroism ", tactics, 0, effect.none), - ("Intimidation ", tactics, 0, effect.none), - ("Reinforcements ", tactics, 0, effect.none) + ("Cover ", archery, 0, effect.none, "Provides temporary protection from enemy attacks. "), + ("Evasive Maneuvers ", archery, 0, effect.none, "Allows the user to dodge and avoid incoming attacks more effectively. "), + ("Focused Fire ", archery, 0, effect.none, "Increases accuracy and damage output towards a single target. "), + ("Magic Ammunition ", archery, 0, effect.none, "Enchants projectiles with magical properties for more effectiveness. "), + ("Piercing Bolt ", archery, 0, effect.none, "Ability to penetrate enemy defenses and deal damage directly. "), + ("Precision ", archery, 0, effect.none, "Enhances accuracy and critical hit chance. "), + ("Retreat ", archery, 0, effect.none, "Allows the user to disengage from combat safely. "), + ("Taunt ", archery, 0, effect.none, "Draws enemy aggression towards the user, redirecting their attacks. "), + ("Charismatic Leader ", defense, 0, effect.none, "Boosts the morale and efficiency of allies in the vicinity. "), + ("Counterstrike ", defense, 0, effect.none, "Automatically retaliates against incoming attacks with a counter-attack."), + ("Double Counterstrike ", defense, 0, effect.none, "Further enhances the counter-attacking ability, allowing for more hits. "), + ("Resilience ", defense, 0, effect.none, "Provides increased resistance to status effects and damage. "), + ("Revenge ", defense, 0, effect.none, "Empowers the user after taking damage, increasing their offense. "), + ("Shield Of The Virtue ", defense, 0, effect.none, "Provides a powerful defensive barrier to protect the user and allies. "), + ("Stand Your Ground Mass ", defense, 0, effect.none, "Grants a defensive buff to multiple allied units within a large radius. "), + ("Stand Your Ground ", defense, 0, effect.none, "Enhances the user's defenses and resilience against incoming attacks. "), + ("Toughness ", defense, 0, effect.none, "Increases overall durability and reduces incoming damage. "), + ("Banker ", economy, 0, effect.none, "Generates additional in-game currency or resources over time. "), + ("Destroyer ", economy, 0, effect.none, "Deals massive damage to enemies or structures. "), + ("Leadership ", economy, 0, effect.none, "Boosts the effectiveness and performance of allied units. "), + ("Lumber ", economy, 0, effect.none, "Increases resource gathering efficiency for wood or similar materials. "), + ("Manager ", economy, 0, effect.none, "Improves resource management and production within the user's faction. "), + ("Merchant ", economy, 0, effect.none, "Enables better trading opportunities and increased profit from commerce."), + ("Miner ", economy, 0, effect.none, "Enhances resource gathering efficiency for minerals or ore. "), + ("Plunderer ", economy, 0, effect.none, "Steals resources or valuable items from enemies upon defeating them. "), + ("Snatch ", economy, 0, effect.none, "Allows the user to quickly grab and steal an item or resource. "), + ("Alchemist ", education, 0, effect.none, "Enables the user to create and utilize powerful potions or poisons. "), + ("Architect ", education, 0, effect.none, "Improves construction speed and efficiency for buildings and structures."), + ("Ballistics ", education, 0, effect.none, "Enhances ranged attacks and projectile-based abilities. "), + ("Chosen One ", education, 0, effect.none, "Empowers the user with random unique and potent abilities. "), + ("Diplomacy ", education, 0, effect.none, "Strengthens diplomatic relations and opportunities with other factions. "), + ("Economist ", education, 0, effect.none, "Boosts resource management and economic prowess within the domain. "), + ("General ", education, 0, effect.none, "Provides strategic advantages and boosts the effectiveness of troops. "), + ("Mentor ", education, 0, effect.none, "Offers guidance to allied units, enhancing their performance. "), + ("Siege Master ", education, 0, effect.none, "Specializes in siege warfare, increasing the range of siege machines. "), + ("Explorer ", logistics, 0, effect.none, "Improves scouting abilities and grants bonuses to discovering. "), + ("Navigation ", logistics, 0, effect.none, "Enhances movement speed or efficiency across different terrains. "), + ("Observer ", logistics, 0, effect.none, "Grants vision over specific areas or units, providing information. "), + ("Orientation ", logistics, 0, effect.none, "Improves unit positioning and formation effectiveness in battle. "), + ("Pathfinder ", logistics, 0, effect.none, "Provides bonuses to traversing difficult terrain or finding paths. "), + ("Scout ", logistics, 0, effect.none, "Excels at reconnaissance and gathering intelligence on enemy movements. "), + ("Spy ", logistics, 0, effect.none, "Infiltrates enemy territory to perform sabotage operations. "), + ("Trust The Plan ", logistics, 0, effect.none, "Grants advantages when following predetermined strategies or tactics. "), + ("Assailant ", offense, 0, effect.none, "Enhances offensive capabilities and increases damage dealt in fighting. "), + ("Battle March ", offense, 0, effect.none, "Boosts movement speed and combat prowess for the troops on the front. "), + ("Cleave ", offense, 0, effect.none, "Allows attacks to hit multiple foes or deal area-of-effect damage. "), + ("Flawless Attack ", offense, 0, effect.none, "Enhances precision and accuracy of attacks, maximizing damage output. "), + ("Giant Slayer ", offense, 0, effect.none, "Provides bonuses and advantages when engaging larger or stronger foes. "), + ("Heroic Charge ", offense, 0, effect.none, "Allows for a powerful and impactful offensive maneuver against enemies. "), + ("Parry ", offense, 0, effect.none, "Enables the user to block or deflect incoming attacks, reducing damage. "), + ("Pressed Attack ", offense, 0, effect.none, "Boosts the intensity and frequency of offensive strikes during combat. "), + ("Rampage ", offense, 0, effect.none, "Triggers a frenzied state, increasing attack power and speed shortly. "), + ("Ambush ", tactics, 0, effect.none, "Enables surprise attacks on enemy units for increased effectiveness. "), + ("Commander ", tactics, 0, effect.none, "Enhances leadership abilities and buffs allied units under the command. "), + ("Crippling Traps ", tactics, 0, effect.none, "Utilizes various traps and devices to hinder or debilitate enemies. "), + ("Diving Attack ", tactics, 0, effect.none, "Initiates a swift and decisive aerial assault from above. "), + ("Heroism Mass ", tactics, 0, effect.none, "Inspires and empowers multiple units simultaneously with a morale boost."), + ("Heroism ", tactics, 0, effect.none, "Bolsters morale and combat effectiveness of individual units. "), + ("Intimidation ", tactics, 0, effect.none, "Strikes fear into enemies, reducing their morale and courage. "), + ("Reinforcements ", tactics, 0, effect.none, "Calls in additional troops or support units to bolster the forces. ") ); ------------------------------------------------------------------------------------------