Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ap_ratio = (0.1:0.05:2.5);
- mr = (0:5:400);
- [apr,emr] = meshgrid(ap_ratio,mr);
- base_spell = 250;
- lvl = 13;
- ap_from_runes = 24;
- ap_from_masteries = 4+lvl;
- ap_bonus = 1.05; %percent
- mpen_from_runes = 8.5;
- mpen_from_masteries = 0.9; %percent
- doranx2_ap = 15*2;
- sorc_boots_mpen = 20;
- base_mpen = mpen_from_runes + sorc_boots_mpen;
- abyssal_ap = 70;
- abyssal_mr = 57;
- abyssal_mpen = 20;
- blasting_wand = 40;
- dcap_ap = 140;
- dcap_ap_bonus = 1.3; %percent
- base_abyssal_ap = ap_from_runes + ap_from_masteries + doranx2_ap + abyssal_ap + blasting_wand;
- total_abyssal_ap = base_abyssal_ap * ap_bonus;
- %enemy_mr_abyssal = (emr-base_abyssal_mpen)*(mpen_from_masteries);
- emr2 = emr - abyssal_mpen;
- for i=1:size(emr,1)
- for j=1:size(emr,2)
- if emr2(i,j) < 0
- enemy_mr_abyssal(i,j) = emr2(i,j)
- else
- enemy_mr_abyssal(i,j) = (emr2(i,j) - base_mpen)*(mpen_from_masteries);
- if enemy_mr_abyssal(i,j) < 0
- enemy_mr_abyssal(i,j) = 0;
- end
- end
- end
- end
- dmg_reduc_abyssal = 100./(100+enemy_mr_abyssal);
- abyssal_spell_dmg = (base_spell+apr*total_abyssal_ap).*dmg_reduc_abyssal;
- base_dcap_ap = ap_from_runes + ap_from_masteries + doranx2_ap + dcap_ap;
- total_dcap_ap = base_dcap_ap * ap_bonus * dcap_ap_bonus;
- for i=1:size(emr,1)
- for j=1:size(emr,2)
- enemy_mr_dcap(i,j) = (emr(i,j) - base_mpen)*(mpen_from_masteries);
- if enemy_mr_dcap(i,j) < 0
- enemy_mr_dcap(i,j) = 0;
- end
- end
- end
- dmg_reduc_dcap = 100./(100+enemy_mr_dcap);
- dcap_spell_dmg = (base_spell+apr*total_dcap_ap).*dmg_reduc_dcap;
- diff = (dcap_spell_dmg - abyssal_spell_dmg)./abyssal_spell_dmg;
- size(apr)
- size(emr)
- size(diff)
- figure;
- contour(apr,emr,abyssal_spell_dmg,2000);
- xlabel('AP Ratio');
- ylabel('Enemy MR');
- hold on;
- title('Abyssal');
- % zlabel('HP After Bonuses');
- colorbar;
- hold off;
- figure;
- contour(apr,emr,dcap_spell_dmg,2000);
- xlabel('AP Ratio');
- ylabel('Enemy MR');
- hold on;
- title('DCap');
- % zlabel('HP After Bonuses');
- colorbar;
- hold off;
- figure;
- contour(apr,emr,diff,2000);
- xlabel('AP Ratio');
- ylabel('Enemy MR');
- hold on;
- title('Abyssal vs. DCap');
- % zlabel('HP After Bonuses');
- colorbar;
Add Comment
Please, Sign In to add comment