Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1.  
  2. stabresist1a = PBTypes.getEffectiveness(otype1,atype1)
  3. if atype1!=atype2
  4. stabresist1b = PBTypes.getEffectiveness(otype1,atype2)
  5. else
  6. stabresist1b = 2
  7. end
  8. stabresist2a = PBTypes.getEffectiveness(otype2,atype1)
  9. if atype1!=atype2
  10. stabresist2b = PBTypes.getEffectiveness(otype2,atype2)
  11. else
  12. stabresist2b = 2
  13. end
  14. stabresist3a = PBTypes.getEffectiveness(otype3,atype1)
  15. if atype1!=atype2
  16. stabresist3b = PBTypes.getEffectiveness(otype3,atype2)
  17. else
  18. stabresist3b = 2
  19. end
  20. stabresist4a = PBTypes.getEffectiveness(otype4,atype1)
  21. if atype1!=atype2
  22. stabresist4b = PBTypes.getEffectiveness(otype4,atype2)
  23. else
  24. stabresist4b = 2
  25. end
  26. if stabresist1a*stabresist1b<4 || stabresist2a*stabresist2b<4
  27. monscore+=40
  28. if otype1==otype2
  29. monscore+=30
  30. else
  31. if stabresist1a*stabresist1b<4 && stabresist2a*stabresist2b<4
  32. monscore+=60
  33. end
  34. end
  35. end
  36. if stabresist3a*stabresist3b<4 || stabresist4a*stabresist4b<4
  37. monscore+=40
  38. if otype3==otype4
  39. monscore+=30
  40. else
  41. if stabresist3a*stabresist3b<4 && stabresist4a*stabresist4b<4
  42. monscore+=60
  43. end
  44. end
  45. end
  46. PBDebug.log(sprintf("Defensive: %d",monscore)) if $INTERNAL
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement