diff options
author | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-03-17 02:05:52 +0100 |
---|---|---|
committer | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-03-17 02:05:52 +0100 |
commit | 45c3f943b42423dbe162bfac4a57cad013ba0630 (patch) | |
tree | 0bb0caaa15af42f1d2c3bc14061202aacf9bee6d /src/net/manaserv/gamehandler.cpp | |
parent | fe153c7b2598262281477882a2ef82400b24f5b5 (diff) | |
download | mana-45c3f943b42423dbe162bfac4a57cad013ba0630.tar.gz mana-45c3f943b42423dbe162bfac4a57cad013ba0630.tar.bz2 mana-45c3f943b42423dbe162bfac4a57cad013ba0630.tar.xz mana-45c3f943b42423dbe162bfac4a57cad013ba0630.zip |
Simplified the get/setAttackRange() functions as requested.
The attack range is still hardcoded for Manaserv as long
as generic equipment handling hasn't been implemented.
Diffstat (limited to 'src/net/manaserv/gamehandler.cpp')
-rw-r--r-- | src/net/manaserv/gamehandler.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net/manaserv/gamehandler.cpp b/src/net/manaserv/gamehandler.cpp index 040a5e6c..63f84fd1 100644 --- a/src/net/manaserv/gamehandler.cpp +++ b/src/net/manaserv/gamehandler.cpp @@ -141,7 +141,8 @@ void GameHandler::gameLoading() chatHandler->connect(); // Attack range from item DB - player_node->setAttackRange(-1); + // TODO: Deharcode it through equipment handling + player_node->setAttackRange(48); } } // namespace ManaServ |