summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-08-03 16:43:44 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-08-03 16:43:44 +0000
commitc3e9dbdb69f61ae3fbb682e00fabb680c73a8f00 (patch)
tree587305e26e80e8acf59d261eff17bafa4f484d10 /src
parent8b332024d2f21cffdab22f31cc9016cde7fc75e5 (diff)
downloadhercules-c3e9dbdb69f61ae3fbb682e00fabb680c73a8f00.tar.gz
hercules-c3e9dbdb69f61ae3fbb682e00fabb680c73a8f00.tar.bz2
hercules-c3e9dbdb69f61ae3fbb682e00fabb680c73a8f00.tar.xz
hercules-c3e9dbdb69f61ae3fbb682e00fabb680c73a8f00.zip
Re-implemented SC_WALKSPEED (used in npc scripting) according to official sources (followup to r13037).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13039 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/map/status.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 19fa38cf8..623fc3597 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -3781,6 +3781,8 @@ static unsigned short status_calc_speed(struct block_list *bl, struct status_cha
speed = 200;
if( sc->data[SC_DEFENDER] )
speed = max(speed, 200);
+ if( sc->data[SC_WALKSPEED] ) // ChangeSpeed
+ speed = speed * sc->data[SC_WALKSPEED]->val1;
}
return (short)cap_value(speed,10,USHRT_MAX);