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

Merge pull request #5819 from Laserlicht/battle_anim

Using attack sprite
This commit is contained in:
Ivan Savenko
2025-06-30 11:56:54 +03:00
committed by GitHub
22 changed files with 365 additions and 5 deletions

View File

@@ -902,6 +902,8 @@ void CCreatureHandler::loadJsonAnimation(CCreature * cre, const JsonNode & graph
void CCreatureHandler::loadCreatureJson(CCreature * creature, const JsonNode & config) const
{
creature->animDefName = AnimationPath::fromJson(config["graphics"]["animation"]);
creature->mapAttackFromLeft = ImagePath::fromJson(config["graphics"]["mapAttackFromLeft"]);
creature->mapAttackFromRight = ImagePath::fromJson(config["graphics"]["mapAttackFromRight"]);
for(const auto & ability : config["abilities"].Struct())
{