summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorVicious <Vicious@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-03-09 18:39:57 +0000
committerVicious <Vicious@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-03-09 18:39:57 +0000
commit3241a51ac2689e7ffa63e01bf9e81ec08d0b0187 (patch)
treebe24c64ed17cb01a6a1153b3f2b629195cd1487b /src/map/status.c
parenta81d4e79c7aa5b519047ee4ee1d59f5ecf27083f (diff)
downloadhercules-3241a51ac2689e7ffa63e01bf9e81ec08d0b0187.tar.gz
hercules-3241a51ac2689e7ffa63e01bf9e81ec08d0b0187.tar.bz2
hercules-3241a51ac2689e7ffa63e01bf9e81ec08d0b0187.tar.xz
hercules-3241a51ac2689e7ffa63e01bf9e81ec08d0b0187.zip
more ninja/gs update
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5535 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 2d8080811..1142f6810 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -281,10 +281,10 @@ void initChangeTables(void) {
//Until they're at right position - gs_set_sc- [Vicious] / some of these don't seem to have a status icon adequate [blackhole89]
set_sc(GS_MADNESSCANCEL, SC_MADNESSCANCEL, SI_MADNESSCANCEL);
set_sc(GS_ADJUSTMENT, SC_ADJUSTMENT, SI_ADJUSTMENT);
- set_sc(GS_INCREASING, SC_INCREASING, SI_BLANK);
+ set_sc(GS_INCREASING, SC_INCREASING, SI_ACCURACY);
set_sc(GS_GATLINGFEVER, SC_GATLINGFEVER, SI_GATLINGFEVER);
set_sc(NJ_TATAMIGAESHI, SC_TATAMIGAESHI, SI_BLANK);
- set_sc(NJ_UTSUSEMI, SC_UTSUSEMI, SI_BLANK);
+ set_sc(NJ_UTSUSEMI, SC_UTSUSEMI, SI_MAEMI);
set_sc(NJ_KAENSIN, SC_KAENSIN, SI_BLANK);
set_sc(NJ_SUITON, SC_SUITON, SI_BLANK);
set_sc(NJ_NEN, SC_NEN, SI_NEN);
@@ -1721,6 +1721,9 @@ int status_calc_agi(struct block_list *bl, int agi)
agi -= 2 + sc->data[SC_DECREASEAGI].val1;
if(sc->data[SC_QUAGMIRE].timer!=-1)
agi -= sc->data[SC_QUAGMIRE].val1*(bl->type==BL_PC?5:10);
+ int class = status_get_class(bl);
+ if(sc->data[SC_SUITON].timer!=-1 || class != JOB_NINJA)
+ agi -= (((sc->data[SC_SUITON].val1 - 1) / 3) + 1) * 3;
}
return agi;
@@ -1992,7 +1995,7 @@ int status_calc_flee(struct block_list *bl, int flee)
if(sc->data[SC_ADJUSTMENT].timer!=-1)
flee += 30;
if(sc->data[SC_GATLINGFEVER].timer!=-1)
- flee -= sc->data[SC_GATLINGFEVER].val2*5;
+ flee -= sc->data[SC_GATLINGFEVER].val1*5;
}
if (bl->type == BL_PC && map_flag_gvg(bl->m)) //GVG grounds flee penalty, placed here because it's "like" a status change. [Skotlex]
@@ -2230,7 +2233,7 @@ int status_calc_aspd_rate(struct block_list *bl, int aspd_rate)
if(sc->data[SC_MADNESSCANCEL].timer!=-1)
aspd_rate -= 20;
if(sc->data[SC_GATLINGFEVER].timer!=-1)
- aspd_rate -= sc->data[SC_GATLINGFEVER].val2*2;
+ aspd_rate -= sc->data[SC_GATLINGFEVER].val1*2;
}
return aspd_rate;
@@ -3854,6 +3857,9 @@ int status_change_start(struct block_list *bl,int type,int rate,int val1,int val
calc_flag = 1;
val3 = val1*3;
break;
+ case SC_SUITON:
+ calc_flag = 1;
+ break;
case SC_SPEARSQUICKEN: /* スピアクイッケン */
calc_flag = 1;
@@ -4449,7 +4455,6 @@ int status_change_start(struct block_list *bl,int type,int rate,int val1,int val
calc_flag = 1;
break;
case SC_UTSUSEMI:
- case SC_SUITON:
case SC_NEN:
break;