2024-05-19 11:32:19 -04:00
|
|
|
-- Copyright (c) 2024 - Ognjen 'xolatile' Milan Robovic
|
|
|
|
--
|
|
|
|
-- GNU General Public Licence (version 3 or later)
|
|
|
|
|
|
|
|
with core, attribute, skill, resource, deity, material, magic, equipment, unit, construction, chad, world;
|
|
|
|
|
|
|
|
package body effect is
|
|
|
|
|
|
|
|
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
procedure apply (data : in value) is
|
|
|
|
begin
|
|
|
|
case data.operation is
|
|
|
|
when player_add =>
|
|
|
|
case data.operator is
|
2024-05-19 13:29:28 -04:00
|
|
|
when attribute_offense => core.increment (world.map.chads (1).attributes (attribute.offense));
|
|
|
|
when attribute_wisdom => core.increment (world.map.chads (1).attributes (attribute.wisdom));
|
|
|
|
when attribute_speed => core.increment (world.map.chads (1).attributes (attribute.speed));
|
2024-05-19 11:32:19 -04:00
|
|
|
when others => null;
|
|
|
|
end case;
|
|
|
|
when others => null;
|
|
|
|
end case;
|
|
|
|
end apply;
|
|
|
|
|
|
|
|
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
end effect;
|