2009-11-26, 07:27 AM
Chances are the code looks something like this:
This means, logically, that the most one can gain from attack speed (without booster) is 75% of the delay of the Normal(6) skill. So 6000 would go to 4500, and 300 would go to 225.
So... using this system.
Delay of 6000; No booster
15 weapon speed = 9360
14 = 9000
13 = 8610
12 = 8250
11 = 7860
10 = 7500
9 = 7110
8 = 6750
7 = 6360
6 = 6000
5 = 5610
4 = 5250
3 = 4860
2 = 4500
Code:
#include <stdio.h>
#define MAX_BOOSTER 16
#define IS_DOUBLE_STAB 0
#define NORMAL_SPEED 6
int main()
{
int boosterLevel;
int weaponSpeed;
int calcSpeed;
int delay;
int numerator;
int denominator;
int trueDelay;
//Set up
boosterLevel = -2;
weaponSpeed = 15;
delay = 4000;
//Calculate actual weapon speed
calcSpeed = boosterLevel + weaponSpeed;
if(IS_DOUBLE_STAB == 1)
calcSpeed -= 2;
if(calcSpeed < 2)
calcSpeed = 2;
calcSpeed = NORMAL_SPEED - calcSpeed;
//Calculate the reduction in delay
numerator = MAX_BOOSTER - calcSpeed;
denominator = MAX_BOOSTER;
trueDelay = (numerator * delay) / denominator;
trueDelay = (trueDelay / 30) * 30;
printf("True delay amount: %d\n", trueDelay);
return 0;
}This means, logically, that the most one can gain from attack speed (without booster) is 75% of the delay of the Normal(6) skill. So 6000 would go to 4500, and 300 would go to 225.
So... using this system.
Delay of 6000; No booster
15 weapon speed = 9360
14 = 9000
13 = 8610
12 = 8250
11 = 7860
10 = 7500
9 = 7110
8 = 6750
7 = 6360
6 = 6000
5 = 5610
4 = 5250
3 = 4860
2 = 4500
