Skip to content

Commit

Permalink
Add Deoxys and Castform's weather forms. (#2488)
Browse files Browse the repository at this point in the history
* add castform forms
  • Loading branch information
123FLO321 authored and sebastienvercammen committed Mar 4, 2018
1 parent 3c4d785 commit 82be905
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions static/js/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const audio = new Audio('static/sounds/ding.mp3')
const cryFileTypes = ['wav', 'mp3']

const genderType = ['♂', '♀', '⚲']
const unownForm = ['unset', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '!', '?']
const forms = ['unset', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '!', '?', '👤', '☀️', '☔️', '⛄️', '👤', '⚔️', '🛡️', '⚡️']
const pokemonWithImages = [
2, 3, 5, 6, 8, 9, 11, 28, 31, 34, 38, 59, 62, 65, 68, 71, 73, 76, 82, 87, 89, 91, 94, 103, 105, 110, 112, 123, 124, 125, 126, 129, 131, 134, 135, 136, 137, 139, 143, 144, 145, 146, 150, 153, 156, 159, 160, 184, 221, 243, 244, 245, 248, 249, 250, 302, 303, 306, 320, 333, 359, 361, 382, 383, 384
]
Expand Down Expand Up @@ -575,8 +575,8 @@ function pokemonLabel(item) {
var contentstring = ''
var formString = ''

if (id === 201 && form !== null && form > 0) {
formString += `(${unownForm[item['form']]})`
if (form !== null && form > 0 && forms.length > form) {
formString += `(${forms[item['form']]})`
}

contentstring += `
Expand Down

0 comments on commit 82be905

Please sign in to comment.