2023-10-15 09:08:31 -04:00
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-- 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 ;
package armour is
------------------------------------------------------------------------------------------
type armour_list is (
2023-10-15 12:56:21 -04:00
iron_helmet , iron_chestplate , iron_gauntlets , iron_greaves , iron_cuisse , iron_fauld , iron_gardbrace , iron_rerebrace
2023-10-15 09:08:31 -04:00
) ;
type armour_mark is mod 72 ;
------------------------------------------------------------------------------------------
2023-10-15 13:35:03 -04:00
type armour_constant_type is new core . constant_type with
2023-10-15 09:08:31 -04:00
record
value : natural := 0 ;
weight : natural := 0 ;
defense_range : natural := 0 ;
end record ;
2023-10-15 13:35:03 -04:00
type armour_variable_type is new core . variable_type with
2023-10-15 09:08:31 -04:00
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 := (
2023-10-15 13:35:03 -04:00
( core . armour , "Iron Helmet " , ' m ' , core . colour . yellow , core . effect . normal , 11 , 31 , 7 ) ,
( core . armour , "Iron Chestplate " , ' M ' , core . colour . yellow , core . effect . bold , 23 , 67 , 11 ) ,
( core . armour , "Iron Gauntlets " , ' i ' , core . colour . yellow , core . effect . normal , 13 , 43 , 7 ) ,
( core . armour , "Iron Greaves " , ' I ' , core . colour . yellow , core . effect . normal , 19 , 73 , 13 ) ,
( core . armour , "Iron Cuisse " , ' Y ' , core . colour . yellow , core . effect . bold , 17 , 53 , 10 ) ,
( core . armour , "Iron Fauld " , '-' , core . colour . yellow , core . effect . normal , 13 , 37 , 3 ) ,
( core . armour , "Iron Gardbrace " , ' v ' , core . colour . yellow , core . effect . normal , 11 , 41 , 8 ) ,
( core . armour , "Iron Rerebrace " , ' V ' , core . colour . yellow , core . effect . normal , 13 , 47 , 7 )
2023-10-15 09:08:31 -04:00
) ;
armour_variable_data : armour_variable_list ;
------------------------------------------------------------------------------------------
end armour ;