summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-05-11 17:46:02 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-05-11 17:46:02 +0000
commit9d980263608070842314af7778385d1821ac6b34 (patch)
tree49e86f0daffeaf1ff29c63f0ccfd53046b33bb1b /src
parent854bd10ed8d13fb5726f2ace998bf83908d1dad8 (diff)
downloadhercules-9d980263608070842314af7778385d1821ac6b34.tar.gz
hercules-9d980263608070842314af7778385d1821ac6b34.tar.bz2
hercules-9d980263608070842314af7778385d1821ac6b34.tar.xz
hercules-9d980263608070842314af7778385d1821ac6b34.zip
Fixed Slow Grace decreasing aspd 10x less than it should (bugreport:2480).
It was a mistake in r12923 where I didn't realize aspd_rate uses a scale of 1000, not 100. This also fixes Slow Grace not factoring in the Dance Lessons bonus (also 10x less than it should be). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13755 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/map/status.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 8cb891169..6e4394751 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -3941,6 +3941,8 @@ static unsigned short status_calc_speed(struct block_list *bl, struct status_cha
return (short)cap_value(speed,10,USHRT_MAX);
}
+/// Calculates an object's ASPD modifier (alters the base amotion value).
+/// Note that the scale of aspd_rate is 1000 = 100%.
static short status_calc_aspd_rate(struct block_list *bl, struct status_change *sc, int aspd_rate)
{
int i;
@@ -4021,7 +4023,7 @@ static short status_calc_aspd_rate(struct block_list *bl, struct status_change *
sc->data[i=SC_ASPDPOTION0])
aspd_rate -= sc->data[i]->val2;
if(sc->data[SC_DONTFORGETME])
- aspd_rate += sc->data[SC_DONTFORGETME]->val2;
+ aspd_rate += 10 * sc->data[SC_DONTFORGETME]->val2;
if(sc->data[SC_LONGING])
aspd_rate += sc->data[SC_LONGING]->val2;
if(sc->data[SC_STEELBODY])