//没登陆

欢迎您来到凯恩之角,奈非天!

帖子:68

符文:2

31#
学习了,好贴,2。5攻速,50暴击入门。
发表于 2012-10-16 21:52:45 |只看该作者 来自:上海

帖子:1425

符文:2952

32#
本帖最后由 2626 于 2012-10-16 22:02 编辑

我用MATLAB写了个程序,

假设:

用冰环、狂风笼罩、三连爆对付丹丹这样的大型、固定、单个目标。

输入:

武器攻速、攻速加成、暴击率、击中生命恢复和暴击回秘能

计算:

每秒生命恢复、每秒秘能消耗、每秒秘能恢复和每秒减CD的平均秒数

发表于 2012-10-16 22:01:03 |只看该作者 来自:英国
下载:冰法计算器NY改进版
更新档 2.0.1:临界质量已经从游戏中移除。

帖子:6

符文:0

33#
感谢楼主,虽然没完全看懂,不过还是值得研究的!
发表于 2012-10-16 23:00:49 |只看该作者 来自:上海

帖子:1177

符文:60

34#
2626 发表于 2012-10-16 09:01
我用MATLAB写了个程序,

假设:

贴个代码呗,我也去跑跑
发表于 2012-10-17 01:16:30 |只看该作者 来自:美国
[armory]http://us.battle.net/d3/en/profile/decablo-1693/hero/5053093[/armory]

帖子:182

符文:4

35#
支持lz,等105了再慢慢研究呗,不过效率很低的说。
发表于 2012-10-17 02:03:39 |只看该作者 来自:浙江
[armory]http://us.battle.net/d3/en/profile/herrywangxr-1264/hero/55597311[/armory]

帖子:1425

符文:2952

36#
本帖最后由 2626 于 2012-10-17 04:50 编辑
Decablo 发表于 2012-10-17 01:16
贴个代码呗,我也去跑跑

应要求上MATLAB代码:
  1. % Default
  2. weapon_attack_speed_default = 1.40;
  3. attack_speed_increased_by_default = 0.34;
  4. crit_hit_chance_default = 0.55;
  5. life_on_hit_default = 679;
  6. ap_on_crit_default = 20;

  7. % User override
  8. disp('----- Input -----');
  9. weapon_attack_speed = input(['Weapon Attack Speed (Default: ' num2str(weapon_attack_speed_default) '): ' ]);
  10. if isempty(weapon_attack_speed)
  11.     weapon_attack_speed = weapon_attack_speed_default;
  12. end
  13. attack_speed_increased_by = input(['Attack Speed Increased by (Default: ' num2str(attack_speed_increased_by_default) '): ' ]);
  14. if isempty(attack_speed_increased_by)
  15.     attack_speed_increased_by = attack_speed_increased_by_default;
  16. end
  17. crit_hit_chance = input(['Critical Hit Chance (Default: ' num2str(crit_hit_chance_default) '): ' ]);
  18. if isempty(crit_hit_chance)
  19.     crit_hit_chance = crit_hit_chance_default;
  20. end
  21. life_on_hit = input(['Life on Hit (Default: ' num2str(life_on_hit_default) '): ' ]);
  22. if isempty(life_on_hit)
  23.     life_on_hit = life_on_hit_default;
  24. end
  25. ap_on_crit = input(['AP on Crit (Default: ' num2str(ap_on_crit_default) '): ' ]);
  26. if isempty(ap_on_crit)
  27.     ap_on_crit = ap_on_crit_default;
  28. end

  29. % Constants
  30. energy_twister_ap_cost = 35;
  31. energy_twister_proc_coeff = 0.125;
  32. explosive_blast_cool_down = 6;
  33. explosive_blast_ap_cost = 20;
  34. lookup_table = [0.71, 9;
  35. 0.7455, 9;
  36. 0.7526, 10;
  37. 0.8262, 10;
  38. 0.8424, 11;
  39. 0.918, 12;
  40. 1, 12;
  41. 1.0044, 13;
  42. 1.071, 13;
  43. 1.0716, 14;
  44. 1.15, 14;
  45. 1.16, 15;
  46. 1.25, 15;
  47. 1.26, 16;
  48. 1.3, 16;
  49. 1.308, 17;
  50. 1.352, 17;
  51. 1.365, 18;
  52. 1.5, 18;
  53. 1.508, 19;
  54. 1.575, 19;
  55. 1.582, 20;
  56. 1.666, 20;
  57. 1.683, 22;
  58. 1.7556, 22;
  59. 1.766, 23;
  60. 1.8603, 23;
  61. 1.8779, 24;
  62. 1.998, 24;
  63. 2.0007, 26;
  64. 2.1411, 26;
  65. 2.1587, 28;
  66. 2.301, 28;
  67. 2.31, 30;
  68. 2.4957, 30;
  69. 2.508, 33;
  70. 2.7258, 33;
  71. 2.7378, 36;
  72. 2.9913, 36;
  73. 3.003, 40;
  74. 3.3276, 40;
  75. 3.3453, 45;
  76. 3.3807, 45];

  77. % Calculation
  78. num_attacks_per_sec = weapon_attack_speed * (1+attack_speed_increased_by);
  79. crit_hit_chance_per_tick = crit_hit_chance * energy_twister_proc_coeff;
  80. attacks_per_sec_break_point_idx = find(num_attacks_per_sec<lookup_table(:,1), 1, 'first') - 1;
  81. num_ticks_per_twister_over_six_sec = lookup_table(attacks_per_sec_break_point_idx, 2);
  82. total_num_ticks_per_sec = num_ticks_per_twister_over_six_sec * num_attacks_per_sec;
  83. life_regen_per_sec = total_num_ticks_per_sec * energy_twister_proc_coeff * life_on_hit;
  84. ap_regen_per_sec = total_num_ticks_per_sec * energy_twister_proc_coeff * ap_on_crit * crit_hit_chance;
  85. avg_cd_reduction_in_one_sec = total_num_ticks_per_sec * crit_hit_chance_per_tick;
  86. num_explosive_blasts_per_sec = avg_cd_reduction_in_one_sec / explosive_blast_cool_down;
  87. ap_consumption_per_sec = energy_twister_ap_cost * num_attacks_per_sec + num_explosive_blasts_per_sec * explosive_blast_ap_cost;

  88. % Results display
  89. disp('----- Results -----');
  90. disp(['Life Regen Per Sec (by LoH): ' num2str(life_regen_per_sec)]);
  91. disp(['AP Consumption Per Sec: ' num2str(ap_consumption_per_sec)]);
  92. disp(['AP Regen Per Sec: ' num2str(ap_regen_per_sec)]);
  93. disp(['Avg. CD Reduction in 1 Sec: ' num2str(avg_cd_reduction_in_one_sec) ' s']);
复制代码
可以修改最开头的默认参数值,这样就不用每次都全部手动输入了(只需按回车即可)。

随手写的,欢迎拍砖、扩充。本来想写个GUI的,但还是多花点时间练级、打宝吧。
发表于 2012-10-17 04:41:13 |只看该作者 来自:英国
下载:冰法计算器NY改进版
更新档 2.0.1:临界质量已经从游戏中移除。

帖子:1177

符文:60

37#
2626 发表于 2012-10-16 15:41
应要求上MATLAB代码:可以修改最开头的默认参数值,这样就不用每次都手动输入了。

随手写的,欢迎拍砖 ...

多谢!明天去实验室跑下试试哈哈
发表于 2012-10-17 04:49:29 |只看该作者 来自:美国
[armory]http://us.battle.net/d3/en/profile/decablo-1693/hero/5053093[/armory]

帖子:1425

符文:2952

38#
本帖最后由 2626 于 2012-10-17 05:08 编辑
Decablo 发表于 2012-10-17 04:49
多谢!明天去实验室跑下试试哈哈

谢谢你提供的模型!期待你的反馈。

计算结果会跟你的表格有出入,因为考虑了三连爆的秘能消耗。同时,除了从攻速到tick数量的映射(lookup_table)之外,其余计算使用了精确的攻速值(而非lookup_table中的攻速值)。

发表于 2012-10-17 04:54:09 |只看该作者 来自:英国
下载:冰法计算器NY改进版
更新档 2.0.1:临界质量已经从游戏中移除。

帖子:308

符文:3

39#
实践证明计算很有效,关注。
发表于 2012-10-22 07:41:18 来自凯恩之角App |只看该作者 来自:上海

帖子:218

符文:4

40#
Decablo 发表于 2012-10-14 03:06
另外,你可以考虑用娜塔亚的鞋子和戒指,对暴击的加成很高

能考虑娜塔亚别的部分么。。。
发表于 2012-10-22 09:09:38 |只看该作者 来自:上海

帖子:4751

符文:48

41#
皮蛋稻兜 发表于 2012-10-22 09:09
能考虑娜塔亚别的部分么。。。

那就只有戒指和头了
感觉娜塔亚还是不太划算,还有就是暴击的收益在过了50之后,貌似并不是很好了,没必要为此损失大量主属性
发表于 2012-10-22 10:11:28 |只看该作者 来自:广东
[armory]http://us.battle.net/d3/en/profile/silenceyun-1370/hero/16972029[/armory]

帖子:218

符文:4

42#
寂静 发表于 2012-10-22 10:11
那就只有戒指和头了
感觉娜塔亚还是不太划算,还有就是暴击的收益在过了50之后,貌似并不是很好了,没必 ...

我现在还是打打P3 P2难度 小黑人扫扫比较好 如果换朵仗的话 没吸血 有吸血没爆伤 尴尬啊
发表于 2012-10-22 11:05:07 |只看该作者 来自:上海

帖子:4751

符文:48

43#
皮蛋稻兜 发表于 2012-10-22 11:05
我现在还是打打P3 P2难度 小黑人扫扫比较好 如果换朵仗的话 没吸血 有吸血没爆伤 尴尬啊

没朵也能上2.5攻速,看我签名的装备,我差一件暴击拉库尼
但是没朵没疯狂想上2.5攻速,那就比登天还难了,11%速的黄杖子,还带暴伤、孔、吸血、暴回的,我表示我想多了。。。
发表于 2012-10-22 13:18:51 |只看该作者 来自:广东
[armory]http://us.battle.net/d3/en/profile/silenceyun-1370/hero/16972029[/armory]

帖子:488

符文:10

44#
这些数据真心很实用,目前105虽然能打,但是追求永无止境,又要开始一轮新的配装。。。
发表于 2012-10-22 14:49:55 |只看该作者 来自:浙江
[armory]http://cn.battle.net/d3/en/profile/xiaoyuer-5602/hero/15297649[/armory][armory]http://tw.battle.net/d3/zh/profile/xiaoyuer-3673/hero/45807685[/armory]

帖子:387

符文:5

45#
这个必须顶顶顶
发表于 2012-10-22 17:03:35 |只看该作者 来自:广东
[armory]http://tw.battle.net/d3/zh/profile/Yuki-3706/hero/36125929[/armory]
您需要登录后才可以回帖 登录 | 注册网易通行证