Parcourir la source

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

ultramage il y a 17 ans
Parent
commit
5dbe0c1b4b
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/map/status.c

+ 1 - 1
src/map/status.c

@@ -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);