Browse Source

HeroBonus: move TBonusSubtype from GameConstants.h

Konstantin 2 years ago
parent
commit
48bcfe74f7
2 changed files with 1 additions and 2 deletions
  1. 0 1
      lib/GameConstants.h
  2. 1 1
      lib/bonuses/HeroBonus.h

+ 0 - 1
lib/GameConstants.h

@@ -1339,7 +1339,6 @@ enum class EHealPower : ui8
 
 // Typedef declarations
 using TExpType = si64;
-using TBonusSubtype = si32;
 using TQuantity = si32;
 
 using TRmgTemplateZoneId = int;

+ 1 - 1
lib/bonuses/HeroBonus.h

@@ -9,7 +9,6 @@
  */
 #pragma once
 
-#include "../GameConstants.h"
 #include "../JsonNode.h"
 
 VCMI_LIB_NAMESPACE_BEGIN
@@ -22,6 +21,7 @@ class IPropagator;
 class IUpdater;
 class BonusList;
 
+using TBonusSubtype = int32_t;
 using TBonusListPtr = std::shared_ptr<BonusList>;
 using TConstBonusListPtr = std::shared_ptr<const BonusList>;
 using TLimiterPtr = std::shared_ptr<ILimiter>;