summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--src/net/beinghandler.cpp12
2 files changed, 13 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 2c29afae..79a1567f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-10-30 Philipp Sehmisch <tmw@crushnet.org>
+
+ * src/net/beinghandler.cpp: Added particle effect on critical
+ hits.
+
2008-10-30 Dennis Friis <peavey@placid.dk>
* src/net/beinghandler.cpp: Do not set shoe sprite on player move
packet unless supported by eAthena.
diff --git a/src/net/beinghandler.cpp b/src/net/beinghandler.cpp
index 101d1149..fa2b6728 100644
--- a/src/net/beinghandler.cpp
+++ b/src/net/beinghandler.cpp
@@ -235,9 +235,13 @@ void BeingHandler::handleMessage(MessageIn *msg)
switch (type)
{
- case 0x00: // Damage
case 0x0a: // Critical Damage
if (dstBeing) {
+ dstBeing->controlParticle(particleEngine->addEffect(
+ "graphics/particles/crit.particle.xml", 0, 0));
+ }
+ case 0x00: // Damage
+ if (dstBeing) {
dstBeing->takeDamage(param1);
}
if (srcBeing) {
@@ -415,9 +419,9 @@ void BeingHandler::handleMessage(MessageIn *msg)
dstBeing->setSprite(Being::BOTTOMCLOTHES_SPRITE, headBottom);
dstBeing->setSprite(Being::TOPCLOTHES_SPRITE, headMid);
dstBeing->setSprite(Being::HAT_SPRITE, headTop);
- if (shoes > 10) // only if supported by eAthena
- dstBeing->setSprite(Being::SHOE_SPRITE, shoes);
- if (gloves > 10) // only if supported by eAthena
+ dstBeing->setSprite(Being::SHOE_SPRITE, shoes);
+ // Compensation for the unpatched TMW server
+ if (gloves > 10)
dstBeing->setSprite(Being::GLOVES_SPRITE, gloves);
dstBeing->setSprite(Being::CAPE_SPRITE, cape);
dstBeing->setSprite(Being::MISC1_SPRITE, misc1);