Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stabresist1a = PBTypes.getEffectiveness(otype1,atype1)
- if atype1!=atype2
- stabresist1b = PBTypes.getEffectiveness(otype1,atype2)
- else
- stabresist1b = 2
- end
- stabresist2a = PBTypes.getEffectiveness(otype2,atype1)
- if atype1!=atype2
- stabresist2b = PBTypes.getEffectiveness(otype2,atype2)
- else
- stabresist2b = 2
- end
- stabresist3a = PBTypes.getEffectiveness(otype3,atype1)
- if atype1!=atype2
- stabresist3b = PBTypes.getEffectiveness(otype3,atype2)
- else
- stabresist3b = 2
- end
- stabresist4a = PBTypes.getEffectiveness(otype4,atype1)
- if atype1!=atype2
- stabresist4b = PBTypes.getEffectiveness(otype4,atype2)
- else
- stabresist4b = 2
- end
- if stabresist1a*stabresist1b<4 || stabresist2a*stabresist2b<4
- monscore+=40
- if otype1==otype2
- monscore+=30
- else
- if stabresist1a*stabresist1b<4 && stabresist2a*stabresist2b<4
- monscore+=60
- end
- end
- end
- if stabresist3a*stabresist3b<4 || stabresist4a*stabresist4b<4
- monscore+=40
- if otype3==otype4
- monscore+=30
- else
- if stabresist3a*stabresist3b<4 && stabresist4a*stabresist4b<4
- monscore+=60
- end
- end
- end
- PBDebug.log(sprintf("Defensive: %d",monscore)) if $INTERNAL
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement