1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Added some missing functionality for configurable object

This commit is contained in:
Ivan Savenko
2023-01-22 02:08:58 +02:00
parent 83bb70cd8a
commit 9f3f9cc563
5 changed files with 35 additions and 22 deletions

View File

@@ -85,6 +85,10 @@ public:
/// mana given to/taken from hero, fixed value
si32 manaDiff;
/// if giving mana points puts hero above mana pool, any overflow will be multiplied by specified percentage
si32 manaOverflowFactor;
/// fixed value, in form of percentage from max
si32 manaPercentage;
@@ -137,6 +141,7 @@ public:
h & gainedExp;
h & gainedLevels;
h & manaDiff;
h & manaOverflowFactor;
h & movePoints;
h & primary;
h & secondary;