summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortoms <toms@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-09-06 09:36:53 +0000
committertoms <toms@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-09-06 09:36:53 +0000
commit5ea47a97effd6c094d9f295eb8100a9d408a9f7d (patch)
treec956d458f184794685761dc4ad48833a09f2f730
parent30899d3e29a02162c8ece5e0fca0fd05fcd10be1 (diff)
downloadhercules-5ea47a97effd6c094d9f295eb8100a9d408a9f7d.tar.gz
hercules-5ea47a97effd6c094d9f295eb8100a9d408a9f7d.tar.bz2
hercules-5ea47a97effd6c094d9f295eb8100a9d408a9f7d.tar.xz
hercules-5ea47a97effd6c094d9f295eb8100a9d408a9f7d.zip
Applied Orn's modification on speed increases/reductions with increase/decrease agi
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8647 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--Changelog-Trunk.txt3
-rw-r--r--src/map/status.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt
index f320851b6..cda34d2b8 100644
--- a/Changelog-Trunk.txt
+++ b/Changelog-Trunk.txt
@@ -3,6 +3,9 @@ Date Added
AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK.
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
+2006/09/06
+ * Applied Orn's modification on speed increases/reductions with increase/
+ decrease agi [Toms]
2006/09/05
* Removed setting mob_show_hp, it's been replaced now by mob_show_info,
which can be used to specify what kind of info should be displayed from a
diff --git a/src/map/status.c b/src/map/status.c
index aa2c591c7..4ec104200 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -3620,7 +3620,7 @@ static unsigned short status_calc_speed(struct block_list *bl, struct status_cha
else if(sc->data[SC_SPEEDUP0].timer!=-1)
speed -= speed * 25/100;
else if(sc->data[SC_INCREASEAGI].timer!=-1)
- speed -= speed * 25/100;
+ speed -= (sc->data[SC_INCREASEAGI].val1 * 5)/2; //[orn]
else if(sc->data[SC_FUSION].timer != -1)
speed -= speed * 25/100;
else if(sc->data[SC_CARTBOOST].timer!=-1)
@@ -3636,7 +3636,7 @@ static unsigned short status_calc_speed(struct block_list *bl, struct status_cha
if(sc->data[SC_DANCING].timer!=-1 && sc->data[SC_DANCING].val3&0xFFFF)
speed += speed*(sc->data[SC_DANCING].val3&0xFFFF)/100;
if(sc->data[SC_DECREASEAGI].timer!=-1)
- speed = speed * 100/75;
+ speed += (sc->data[SC_DECREASEAGI].val1 * 5)/2; //[orn]
if(sc->data[SC_STEELBODY].timer!=-1)
speed = speed * 100/75;
if(sc->data[SC_QUAGMIRE].timer!=-1)