Guest User

Untitled

a guest
May 13th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. createHash = (id) ->
  2.     chash = 0
  3.     if teamPoke(id, 0) is 0
  4.         return null
  5.     for slot in [0..5]
  6.         chash += teamPoke(id, slot) * teamPokeAbility(id, slot) * teamPokeLevel(id, slot) * teamPokeItem(id, slot) * teamPokeNature(id, slot) * slot
  7.         for stat in [0..5]
  8.             chash += teamPokeDV(id, slot, stat) * teamPokeEV(id, slot, stat)
  9.             chash *= stat + 1
  10.         for move in [0..3]
  11.             chash += teamPokeMove(id, slot, move)
  12.             chash *= move + 1
  13.         chash *= slot + 1
  14.         chash = chash % 0xAB0498
  15.     return chash
Add Comment
Please, Sign In to add comment