62 lines
3.7 KiB
Ada
62 lines
3.7 KiB
Ada
|
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||
|
-- Copyright (c) 2023 - Ognjen 'xolatile' Milan Robovic
|
||
|
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||
|
-- 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
|
||
|
-- 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
|
||
|
-- implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||
|
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||
|
-- 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, but realized that I keep my folders messy... Since it's bothersome to find my old Ada projects and share them here, I decided that the most easy thing to do is to
|
||
|
-- write a new program in Ada, a tiny game. Work in progress, it's messy and ugly for now...
|
||
|
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||
|
|
||
|
with core;
|
||
|
use core;
|
||
|
|
||
|
package armour is
|
||
|
|
||
|
------------------------------------------------------------------------------------------
|
||
|
|
||
|
type armour_list is (
|
||
|
IRON_HELMET, IRON_CHESTPLATE, IRON_GAUNTLETS, IRON_GREAVES, IRON_CUISSE, IRON_FAULD, IRON_GARDBRACE, IRON_REREBRACE
|
||
|
);
|
||
|
|
||
|
type armour_mark is mod 72;
|
||
|
|
||
|
------------------------------------------------------------------------------------------
|
||
|
|
||
|
type armour_constant_type is new entity_constant_type with
|
||
|
record
|
||
|
value : natural := 0;
|
||
|
weight : natural := 0;
|
||
|
defense_range : natural := 0;
|
||
|
end record;
|
||
|
|
||
|
type armour_variable_type is new entity_variable_type with
|
||
|
record
|
||
|
enchantment : natural := 0;
|
||
|
condition : natural := 0;
|
||
|
end record;
|
||
|
|
||
|
type armour_constant_list is array (armour_list) of armour_constant_type;
|
||
|
type armour_variable_list is array (armour_mark) of armour_variable_type;
|
||
|
|
||
|
------------------------------------------------------------------------------------------
|
||
|
|
||
|
armour_constant_data : constant armour_constant_list := (
|
||
|
(ENTITY_ARMOUR, "Iron Helmet ", 'm', COLOUR_YELLOW, EFFECT_NORMAL, 11, 31, 7),
|
||
|
(ENTITY_ARMOUR, "Iron Chestplate ", 'M', COLOUR_YELLOW, EFFECT_BOLD, 23, 67, 11),
|
||
|
(ENTITY_ARMOUR, "Iron Gauntlets ", 'i', COLOUR_YELLOW, EFFECT_NORMAL, 13, 43, 7),
|
||
|
(ENTITY_ARMOUR, "Iron Greaves ", 'I', COLOUR_YELLOW, EFFECT_NORMAL, 19, 73, 13),
|
||
|
(ENTITY_ARMOUR, "Iron Cuisse ", 'Y', COLOUR_YELLOW, EFFECT_BOLD, 17, 53, 10),
|
||
|
(ENTITY_ARMOUR, "Iron Fauld ", '-', COLOUR_YELLOW, EFFECT_NORMAL, 13, 37, 3),
|
||
|
(ENTITY_ARMOUR, "Iron Gardbrace ", 'v', COLOUR_YELLOW, EFFECT_NORMAL, 11, 41, 8),
|
||
|
(ENTITY_ARMOUR, "Iron Rerebrace ", 'V', COLOUR_YELLOW, EFFECT_NORMAL, 13, 47, 7)
|
||
|
);
|
||
|
|
||
|
armour_variable_data : armour_variable_list;
|
||
|
|
||
|
------------------------------------------------------------------------------------------
|
||
|
|
||
|
end armour;
|