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

UI now shows spell range from config

This commit is contained in:
Ivan Savenko
2025-07-10 17:27:27 +03:00
parent 79f3126c63
commit 5ada2d19e1
16 changed files with 44 additions and 40 deletions

View File

@@ -536,12 +536,6 @@ CSpell::TargetInfo::TargetInfo(const CSpell * spell, const int level, spells::Mo
clearAffected = levelInfo.clearAffected;
}
bool DLL_LINKAGE isInScreenRange(const int3 & center, const int3 & pos)
{
int3 diff = pos - center;
return diff.x >= -9 && diff.x <= 9 && diff.y >= -8 && diff.y <= 8;
}
///CSpellHandler
std::vector<JsonNode> CSpellHandler::loadLegacyData()
{