1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-21 00:19:29 +02:00

MetaIdentifier now uses std::variant internally

This commit is contained in:
Ivan Savenko
2023-10-14 18:13:59 +03:00
parent b394158dc9
commit 80e6485965
61 changed files with 487 additions and 421 deletions

View File

@ -20,7 +20,6 @@
#include "CCreatureHandler.h"
#include "CGeneralTextHandler.h"
#include "spells/CSpellHandler.h"
#include "bonuses/BonusSubtypes.h"
template class std::vector<VCMI_LIB_WRAP_NAMESPACE(CBonusType)>;
@ -169,10 +168,10 @@ ImagePath CBonusTypeHandler::bonusToGraphics(const std::shared_ptr<Bonus> & bonu
}
case BonusType::GENERAL_DAMAGE_REDUCTION:
{
if (bonus->subtype == BonusSubtypes::damageTypeMelee)
if (bonus->subtype == BonusSubtypeID::damageTypeMelee)
fileName = "DamageReductionMelee.bmp";
if (bonus->subtype == BonusSubtypes::damageTypeRanged)
if (bonus->subtype == BonusSubtypeID::damageTypeRanged)
fileName = "DamageReductionRanged.bmp";
break;