diff options
Diffstat (limited to 'src/resources')
-rw-r--r-- | src/resources/spriteaction.h | 4 | ||||
-rw-r--r-- | src/resources/spritedef.cpp | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/resources/spriteaction.h b/src/resources/spriteaction.h index 61967f155..b39c1e96d 100644 --- a/src/resources/spriteaction.h +++ b/src/resources/spriteaction.h @@ -44,6 +44,7 @@ namespace SpriteAction static const std::string MOVE("walk"); static const std::string ATTACK("attack"); static const std::string SPAWN("spawn"); + static const std::string CAST("cast"); static const std::string FLY("fly"); static const std::string SWIM("swim"); @@ -57,6 +58,9 @@ namespace SpriteAction static const std::string ATTACKSKY("attacksky"); static const std::string ATTACKWATER("attackwater"); static const std::string ATTACKRIDE("attackride"); + static const std::string CASTSKY("castsky"); + static const std::string CASTWATER("castwater"); + static const std::string CASTRIDE("castride"); static const std::string SPAWNSKY("spawnsky"); static const std::string SPAWNWATER("spawnwater"); static const std::string SPAWNRIDE("spawnride"); diff --git a/src/resources/spritedef.cpp b/src/resources/spritedef.cpp index 9930f58b9..8626a9e6e 100644 --- a/src/resources/spritedef.cpp +++ b/src/resources/spritedef.cpp @@ -157,6 +157,7 @@ void SpriteDef::substituteActions() substituteAction(SpriteAction::STAND, SpriteAction::DEFAULT); substituteAction(SpriteAction::MOVE, SpriteAction::STAND); substituteAction(SpriteAction::ATTACK, SpriteAction::STAND); + substituteAction(SpriteAction::CAST, SpriteAction::ATTACK); substituteAction(SpriteAction::SIT, SpriteAction::STAND); substituteAction(SpriteAction::SITTOP, SpriteAction::SIT); substituteAction(SpriteAction::DEAD, SpriteAction::STAND); @@ -173,6 +174,9 @@ void SpriteDef::substituteActions() substituteAction(SpriteAction::ATTACKSKY, SpriteAction::ATTACK); substituteAction(SpriteAction::ATTACKWATER, SpriteAction::ATTACK); substituteAction(SpriteAction::ATTACKRIDE, SpriteAction::ATTACK); + substituteAction(SpriteAction::CASTSKY, SpriteAction::CAST); + substituteAction(SpriteAction::CASTWATER, SpriteAction::CAST); + substituteAction(SpriteAction::CASTRIDE, SpriteAction::CAST); substituteAction(SpriteAction::SPAWNSKY, SpriteAction::SPAWN); substituteAction(SpriteAction::SPAWNWATER, SpriteAction::SPAWN); substituteAction(SpriteAction::SPAWNRIDE, SpriteAction::SPAWN); |