Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 82be905

Browse files
123FLO321sebastienvercammen
authored andcommitted
Add Deoxys and Castform's weather forms. (#2488)
* add castform forms
1 parent 3c4d785 commit 82be905

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

static/js/map.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ const audio = new Audio('static/sounds/ding.mp3')
7878
const cryFileTypes = ['wav', 'mp3']
7979

8080
const genderType = ['♂', '♀', '⚲']
81-
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', '!', '?']
81+
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', '!', '?', '👤', '☀️', '☔️', '⛄️', '👤', '⚔️', '🛡️', '⚡️']
8282
const pokemonWithImages = [
8383
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
8484
]
@@ -575,8 +575,8 @@ function pokemonLabel(item) {
575575
var contentstring = ''
576576
var formString = ''
577577

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

582582
contentstring += `

0 commit comments

Comments
 (0)