summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-14 16:30:14 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-14 16:30:14 +0000
commit12bf6f1349e0e001aaf179322f73ec158b5b4044 (patch)
treeac6d5e3105a28aa90d7c75d2dc3829d45ea64ff8 /src/map/status.c
parentb07e923a07cbb964a93b8f0032a81c75e5058089 (diff)
downloadhercules-12bf6f1349e0e001aaf179322f73ec158b5b4044.tar.gz
hercules-12bf6f1349e0e001aaf179322f73ec158b5b4044.tar.bz2
hercules-12bf6f1349e0e001aaf179322f73ec158b5b4044.tar.xz
hercules-12bf6f1349e0e001aaf179322f73ec158b5b4044.zip
- Increased Run's walk speed bonus to 25->50%
- Modified emergency_call setting to allow for more specific configuration (woe/non-woe, gvg-grounds/non-gvg-grounds, disable from nowarpto maps), see skill.conf for details. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8275 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 83f4aa4aa..fa7de060e 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -308,7 +308,7 @@ void initChangeTables(void) {
add_sc(PF_FOGWALL, SC_FOGWALL);
set_sc(PF_SPIDERWEB, SC_SPIDERWEB, SI_BLANK, SCB_FLEE);
add_sc(WE_BABY, SC_BABY);
- set_sc(TK_RUN, SC_RUN, SI_RUN, SCB_SPEED);
+ set_sc(TK_RUN, SC_RUN, SI_RUN, SCB_SPEED|SCB_DSPD);
set_sc(TK_RUN, SC_SPURT, SI_SPURT, SCB_STR);
set_sc(TK_READYSTORM, SC_READYSTORM, SI_READYSTORM, SCB_NONE);
set_sc(TK_READYDOWN, SC_READYDOWN, SI_READYDOWN, SCB_NONE);
@@ -3420,12 +3420,12 @@ static unsigned short status_calc_speed(struct block_list *bl, struct status_cha
//% increases (they don't stack, with the exception of Speedup1? @.@)
if(sc->data[SC_SPEEDUP1].timer!=-1)
speed -= speed * 50/100;
- if(sc->data[SC_SPEEDUP0].timer!=-1)
+ if(sc->data[SC_RUN].timer!=-1)
+ speed -= speed * 50/100;
+ else if(sc->data[SC_SPEEDUP0].timer!=-1)
speed -= speed * 25/100;
else if(sc->data[SC_INCREASEAGI].timer!=-1)
speed -= speed * 25/100;
- else if(sc->data[SC_RUN].timer!=-1)
- speed -= speed * 25/100;
else if(sc->data[SC_FUSION].timer != -1)
speed -= speed * 25/100;
else if(sc->data[SC_CARTBOOST].timer!=-1)
@@ -3584,8 +3584,11 @@ static unsigned short status_calc_dmotion(struct block_list *bl, struct status_c
if(!sc || !sc->count || map_flag_gvg(bl->m))
return cap_value(dmotion,0,USHRT_MAX);
- if (sc->data[SC_ENDURE].timer!=-1 ||
- sc->data[SC_CONCENTRATION].timer!=-1)
+ if (sc->data[SC_ENDURE].timer!=-1)
+ return 0;
+ if (sc->data[SC_CONCENTRATION].timer!=-1)
+ return 0;
+ if(sc->data[SC_RUN].timer!=-1)
return 0;
return cap_value(dmotion,0,USHRT_MAX);