Guest User

Untitled

a guest
Jul 16th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.46 KB | None | 0 0
  1. ap_ratio = (0:0.1:6);
  2. max_hp = (0:0.5:4000);
  3.  
  4. [x,y] = meshgrid(ap_ratio,max_hp);
  5.  
  6. dcap_AP = 252;
  7. dcap_dmg = dcap_AP .* x;
  8.  
  9. blasting_AP = 40;
  10.  
  11. dfg_AP = 114;
  12. active = (0.3+0.00035*dfg_AP).*y;
  13. dfg_APdmg = dfg_AP.*x;
  14. dfg_dmg = dfg_APdmg + active;
  15.  
  16. difference = dfg_dmg - dcap_dmg;
  17.  
  18.  
  19. figure;
  20. contour(ap_ratio,max_hp,difference,1000);
  21. xlabel('Total AP Ratio');
  22. ylabel('Maximum HP');
  23.  
  24. title('Deathfire Grasp vs. Rabadon’s Deathcap');
  25.  
  26. colorbar;
Add Comment
Please, Sign In to add comment