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:
@@ -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())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user