分别试了电刑和黑人射线。
电刑由每疗程4hit变为3hit,黑人射线由每疗程6hit变为5hit。
所以可以确定是25%次数降低。(根据数据挖掘,准确的数字是1.5秒改为1.1秒)
下面是详细的DPS影响:
下降很微弱,4f下8秒平均dps仅下降13%。可见阿三的意图完全没有达到,数学是语文老师教的。
顺便测了蛇,255%和攻速加成依然存在。
老规矩,附上程序源码:
#include "stdafx.h"
#include
#include
#include
using namespace std;
int main()
{
srand(time(NULL));
cout.precision(3);
int seconds = 8;
int frames = seconds * 60;
int N = 100000;
int last_time = 66;
for (int speed = 20; speed > 1; speed--) {
vector total_dam(seconds);
for (int i = 0; i < N; i++) {
vector dam(seconds);
int hit_time = -1;
for (int f = 0; f < frames; f += speed) {
bool hit = rand() % 100 < 5;
if (hit) {
if (hit_time <= f) {
hit_time = f + last_time;
}
else if (hit_time - last_time < f) {
hit_time += last_time;
}
}
if (f < hit_time) {
dam[f / 60]++;
}
}
for (int j = 0; j < seconds; j++) {
total_dam[j] += dam[j];
}
}
double total = 0;
for (int j = 0; j < seconds; j++) {
total_dam[j] /= N;
total += total_dam[j];
}
int total_hit = frames / speed;
cout << speed << "f," << total / seconds << " / s," << total * 100 / total_hit << "%,";
/*for (int j = 0; j < seconds; j++) {
cout << "," << total_dam[j];
}*/
cout << endl;
}
cin >> seconds;
return 0;
}