xhads/source/attribute.ads

45 lines
2.0 KiB
Ada
Raw Normal View History

-- Copyright (c) 2024 - Ognjen 'xolatile' Milan Robovic
--
-- GNU General Public Licence (version 3 or later)
2024-02-15 21:03:09 -05:00
with core;
package attribute is
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
type enumeration is (
offense, defense, wisdom, stamina, speed, reach
2024-02-15 21:03:09 -05:00
);
------------------------------------------------------------------------------------------
type information is record
2024-02-15 21:03:09 -05:00
name : core.short_string;
base : natural;
text : core.long_string;
2024-02-15 21:03:09 -05:00
end record;
type points is array (enumeration) of natural;
2024-02-15 21:03:09 -05:00
------------------------------------------------------------------------------------------
count : constant natural := enumeration'pos (enumeration'last) + 1;
trait : constant array (enumeration) of information := (
2024-05-06 14:44:15 -04:00
("Offense ", 0, "Offense attribute determines your damage modifier when attacking. "),
("Defense ", 0, "D-FENS attribute determines how much damage your reflect and receive. "),
("Wisdom ", 0, "Wisdom attribute determines how much mana your chad has. "),
("Stamina ", 0, "Stamina attribute determines how fast you recover from being wounded. "),
("Speed ", 0, "Speed attribute determines how far you can walk per turn. "),
("Reach ", 0, "Reach attribute determines your range modifier when shooting or casting.")
2024-02-15 21:03:09 -05:00
);
------------------------------------------------------------------------------------------
procedure configure;
2024-02-15 21:03:09 -05:00
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
end attribute;