2024-04-25 00:27:13 -04:00
|
|
|
-- Copyright (c) 2024 - Ognjen 'xolatile' Milan Robovic
|
|
|
|
--
|
|
|
|
-- GNU General Public Licence (version 3 or later)
|
|
|
|
|
2024-02-15 21:03:09 -05:00
|
|
|
package effect is
|
|
|
|
|
|
|
|
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
2024-05-19 10:33:58 -04:00
|
|
|
type operation_index is (
|
|
|
|
idle,
|
2024-05-19 11:32:19 -04:00
|
|
|
player_add,
|
|
|
|
player_subtract,
|
|
|
|
player_multiply,
|
|
|
|
player_divide,
|
|
|
|
player_increment,
|
|
|
|
player_decrement
|
2024-02-15 21:03:09 -05:00
|
|
|
);
|
|
|
|
|
2024-05-19 10:33:58 -04:00
|
|
|
type operator_index is (
|
2024-05-19 11:32:19 -04:00
|
|
|
attribute_offense, attribute_defense, attribute_wisdom, attribute_stamina, attribute_speed, attribute_reach,
|
|
|
|
skill_alchemy, skill_archery, skill_architecture, skill_athletics, skill_diplomacy, skill_estates,
|
|
|
|
skill_exploration, skill_leadership, skill_logistics, skill_medicine, skill_mercantile, skill_mysticism,
|
|
|
|
skill_necromancy, skill_resistance, skill_skirmish, skill_sorcery, skill_tactics, skill_thaumaturgy,
|
|
|
|
resource_gold, resource_wood, resource_stone, resource_metal, resource_leather, resource_gem
|
2024-05-19 10:33:58 -04:00
|
|
|
);
|
2024-02-15 21:03:09 -05:00
|
|
|
|
|
|
|
------------------------------------------------------------------------------------------
|
|
|
|
|
2024-05-19 10:33:58 -04:00
|
|
|
type value is record
|
|
|
|
operation : operation_index;
|
|
|
|
operator : operator_index;
|
|
|
|
modifier : integer;
|
|
|
|
permanent : boolean;
|
|
|
|
duration : natural;
|
|
|
|
end record;
|
2024-02-19 16:20:38 -05:00
|
|
|
|
2024-05-19 10:33:58 -04:00
|
|
|
none : value;
|
2024-02-15 21:03:09 -05:00
|
|
|
|
|
|
|
------------------------------------------------------------------------------------------
|
|
|
|
|
2024-05-19 11:32:19 -04:00
|
|
|
procedure apply (data : in value);
|
2024-02-15 21:03:09 -05:00
|
|
|
|
|
|
|
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
end effect;
|