diff options
author | Chuck Miller <shadowmil@gmail.com> | 2009-07-03 22:54:09 -0400 |
---|---|---|
committer | Chuck Miller <shadowmil@gmail.com> | 2009-07-03 22:54:09 -0400 |
commit | c8772d145ea5db993a0d9ebc78f55b977dab1973 (patch) | |
tree | 0817c3a21692f7b7c06917e196b042639181bcbd /src/game-server/item.cpp | |
parent | 16c8bad4bd1fd32cae60d15e55468d1a2be82d6e (diff) | |
download | manaserv-c8772d145ea5db993a0d9ebc78f55b977dab1973.tar.gz manaserv-c8772d145ea5db993a0d9ebc78f55b977dab1973.tar.bz2 manaserv-c8772d145ea5db993a0d9ebc78f55b977dab1973.tar.xz manaserv-c8772d145ea5db993a0d9ebc78f55b977dab1973.zip |
Makes Skills non hard coded
It should be noted that Jax still needs to update the client
Level calulation seems broken now too
Diffstat (limited to 'src/game-server/item.cpp')
-rw-r--r-- | src/game-server/item.cpp | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/game-server/item.cpp b/src/game-server/item.cpp index 817c81ec..e0ea58ca 100644 --- a/src/game-server/item.cpp +++ b/src/game-server/item.cpp @@ -29,29 +29,6 @@ #include "game-server/being.hpp" #include "scripting/script.hpp" -WeaponType weaponTypeFromString (const std::string &name) -{ - static std::map<const std::string, WeaponType> table; - - if (table.empty()) - { - table["knife"] = WPNTYPE_KNIFE; - table["sword"] = WPNTYPE_SWORD; - table["polearm"] = WPNTYPE_POLEARM; - table["staff"] = WPNTYPE_STAFF; - table["whip"] = WPNTYPE_WHIP; - table["bow"] = WPNTYPE_BOW; - table["shooting"] = WPNTYPE_SHOOTING; - table["mace"] = WPNTYPE_MACE; - table["axe"] = WPNTYPE_AXE; - table["thrown"] = WPNTYPE_THROWN; - } - - std::map<const std::string, WeaponType>::iterator val = table.find(name); - - return val == table.end() ? WPNTYPE_NONE : (*val).second; -} - ItemType itemTypeFromString (const std::string &name) { static std::map<const std::string, ItemType> table; |