Really implemented SC_WALKSPEED (instead of copy-pasting old code) (followup to r13039)
- the modifier is now a percentual value - a higher modifier now means faster speed, not slower git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13059 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
d6228b8460
commit
5dbe0c1b4b
@ -3787,7 +3787,7 @@ static unsigned short status_calc_speed(struct block_list *bl, struct status_cha
|
||||
if( sc->data[SC_DEFENDER] )
|
||||
speed = max(speed, 200);
|
||||
if( sc->data[SC_WALKSPEED] ) // ChangeSpeed
|
||||
speed = speed * sc->data[SC_WALKSPEED]->val1;
|
||||
speed = speed * 100 / sc->data[SC_WALKSPEED]->val1;
|
||||
}
|
||||
|
||||
return (short)cap_value(speed,10,USHRT_MAX);
|
||||
|
Loading…
x
Reference in New Issue
Block a user