summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
authorPhilipp Sehmisch <tmw@crushnet.org>2006-11-04 23:56:30 +0000
committerPhilipp Sehmisch <tmw@crushnet.org>2006-11-04 23:56:30 +0000
commitf7716b5c9946462b885223cd89d9aea97372de0c (patch)
tree8a16ad410029228a804e7e3d076f44bdd7b05e82 /src/being.cpp
parent205decb772ed62df6a16a06d7a75b71aaba46af1 (diff)
downloadmana-client-f7716b5c9946462b885223cd89d9aea97372de0c.tar.gz
mana-client-f7716b5c9946462b885223cd89d9aea97372de0c.tar.bz2
mana-client-f7716b5c9946462b885223cd89d9aea97372de0c.tar.xz
mana-client-f7716b5c9946462b885223cd89d9aea97372de0c.zip
added scythe as a permanent weapon.
When you want to test it: either spawn an item with the id 623 or uncomment the lines 439-441 in being.cpp to use the sharp knive as scythe.
Diffstat (limited to 'src/being.cpp')
-rw-r--r--src/being.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/being.cpp b/src/being.cpp
index dd0554cc..bf85b6e5 100644
--- a/src/being.cpp
+++ b/src/being.cpp
@@ -180,6 +180,9 @@ Being::setAction(Uint8 action)
else {
switch (getWeapon())
{
+ case 3:
+ currentAction = ACTION_ATTACK;
+ break;
case 2:
currentAction = ACTION_ATTACK_BOW;
break;
@@ -414,19 +417,28 @@ Being::getType() const
void
Being::setWeaponById(Uint16 weapon)
{
+ //TODO: Use an external file to map weapon IDs to weapon types
switch (weapon)
{
case 529: // iron arrows
case 1199: // arrows
break;
+ case 623: //scythe
+ setWeapon(3);
+ break;
+
case 1200: // bow
case 530: // short bow
case 545: // forest bow
setWeapon(2);
break;
- case 521: // sharp knife
+ case 521: // sharp knive
+ /* UNCOMMENT TO TEST SHARP KNIVE AS SCYTHE
+ * setWeapon(3)
+ * break;
+ */
case 522: // dagger
case 536: // short sword
case 1201: // knife