Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- createHash = (id) ->
- chash = 0
- if teamPoke(id, 0) is 0
- return null
- for slot in [0..5]
- chash += teamPoke(id, slot) * teamPokeAbility(id, slot) * teamPokeLevel(id, slot) * teamPokeItem(id, slot) * teamPokeNature(id, slot) * slot
- for stat in [0..5]
- chash += teamPokeDV(id, slot, stat) * teamPokeEV(id, slot, stat)
- chash *= stat + 1
- for move in [0..3]
- chash += teamPokeMove(id, slot, move)
- chash *= move + 1
- chash *= slot + 1
- chash = chash % 0xAB0498
- return chash
Add Comment
Please, Sign In to add comment