mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-06 09:09:40 +02:00
vcmi: remove TFaction
This is a huge change and will break save compatibility
This commit is contained in:
@@ -340,7 +340,7 @@ int32_t CSpell::getLevelPower(const int32_t skillLevel) const
|
||||
return getLevelInfo(skillLevel).power;
|
||||
}
|
||||
|
||||
si32 CSpell::getProbability(const TFaction factionId) const
|
||||
si32 CSpell::getProbability(const FactionID & factionId) const
|
||||
{
|
||||
if(!vstd::contains(probabilities,factionId))
|
||||
{
|
||||
@@ -722,7 +722,7 @@ CSpell * CSpellHandler::loadFromJson(const std::string & scope, const JsonNode &
|
||||
|
||||
VLC->modh->identifiers.requestIdentifier(node.second.meta, "faction", node.first, [=](si32 factionID)
|
||||
{
|
||||
spell->probabilities[factionID] = chance;
|
||||
spell->probabilities[FactionID(factionID)] = chance;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user