Prototype game engine for Heroes of Might & Magic, featuring a gameplay plot-twist...
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

28 行
1.1KB

  1. -- Copyright (c) 2024 - Ognjen 'xolatile' Milan Robovic
  2. --
  3. -- GNU General Public Licence (version 3 or later)
  4. with core, attribute, skill, resource, deity, material, magic, equipment, unit, construction, chad, world;
  5. package body effect is
  6. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  7. procedure apply (data : in value) is
  8. begin
  9. case data.operation is
  10. when player_add =>
  11. case data.operator is
  12. when attribute_offense => core.increment (world.map.chads (1).attributes (attribute.offense));
  13. when attribute_wisdom => core.increment (world.map.chads (1).attributes (attribute.wisdom));
  14. when attribute_speed => core.increment (world.map.chads (1).attributes (attribute.speed));
  15. when others => null;
  16. end case;
  17. when others => null;
  18. end case;
  19. end apply;
  20. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  21. end effect;