Skip to content

Commit

Permalink
feat: SUpport crown tundra DLC
Browse files Browse the repository at this point in the history
  • Loading branch information
potato4d committed Nov 21, 2020
1 parent df1f7bd commit 9f743a0
Show file tree
Hide file tree
Showing 7 changed files with 423 additions and 279 deletions.
File renamed without changes.
1 change: 1 addition & 0 deletions .cli/__002_addframe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ async function run() {

for (let index = 0; index < fileList.length; index++) {
const fileName = fileList[index]
console.log(fileName)
const icon = await Jimp.read(`./.data/sprites/${fileName}`)
const frame = new Jimp(70, 58, '#f5f5f5')
frame.blit(icon, 0, 0).write(`./.data/framed/${fileName}`)
Expand Down
4 changes: 2 additions & 2 deletions src/analyzer/compare.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ const ImagePHash = require('@jimp/core/es/modules/phash')

type Result = { width: number; height: number; slug: string; distance: number }

const CHUNKS = 8
const PROCESS_PER_CHUNK = 155
const CHUNKS = 10
const PROCESS_PER_CHUNK = 125
const FOREACH_BASE = new Array(CHUNKS).fill(0)
const workers: Worker[] = []

Expand Down
91 changes: 84 additions & 7 deletions src/analyzer/config/dex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1393,20 +1393,41 @@ export const dex: Pokemon[] = [
name_jpn: 'カビゴン',
slug: 'snorlax',
},
{
idx: 144,
dex: 144,
name_eng: 'Articuno',
name_jpn: 'フリーザー',
slug: 'articuno-galar',
},
{
idx: 144,
dex: 144,
name_eng: 'Articuno',
name_jpn: 'フリーザー',
slug: 'articuno',
},
{
idx: 145,
dex: 145,
name_eng: 'Zapdos',
name_jpn: 'サンダー',
slug: 'zapdos-galar',
},
{
idx: 145,
dex: 145,
name_eng: 'Zapdos',
name_jpn: 'サンダー',
slug: 'zapdos',
},
{
idx: 146,
dex: 146,
name_eng: 'Moltres',
name_jpn: 'ファイヤー',
slug: 'moltres-galar',
},
{
idx: 146,
dex: 146,
Expand Down Expand Up @@ -1785,6 +1806,13 @@ export const dex: Pokemon[] = [
name_jpn: 'ヤミカラス',
slug: 'murkrow',
},
{
idx: 199,
dex: 199,
name_eng: 'Slowking',
name_jpn: 'ヤドキング',
slug: 'slowking-galar',
},
{
idx: 199,
dex: 199,
Expand Down Expand Up @@ -2331,6 +2359,13 @@ export const dex: Pokemon[] = [
name_jpn: 'バンギラス',
slug: 'tyranitar',
},
{
idx: 249,
dex: 249,
name_eng: 'Lugia',
name_jpn: 'ルギア',
slug: 'lugia-shadow',
},
{
idx: 249,
dex: 249,
Expand Down Expand Up @@ -5614,13 +5649,6 @@ export const dex: Pokemon[] = [
name_jpn: 'メロエッタ',
slug: 'meloetta',
},
{
idx: 649,
dex: 649,
name_eng: 'Genesect',
name_jpn: 'ゲノセクト',
slug: 'genesect-standard',
},
{
idx: 649,
dex: 649,
Expand Down Expand Up @@ -8687,4 +8715,53 @@ export const dex: Pokemon[] = [
name_jpn: 'ザルード',
slug: 'zarude',
},
{
idx: 894,
dex: 894,
name_eng: 'Regieleki',
name_jpn: 'レジエレキ',
slug: 'regieleki',
},
{
idx: 895,
dex: 895,
name_eng: 'Regidrago',
name_jpn: 'レジドラゴ',
slug: 'regidrago',
},
{
idx: 896,
dex: 896,
name_eng: 'Glastrier',
name_jpn: 'ブリザポス',
slug: 'glastrier',
},
{
idx: 897,
dex: 897,
name_eng: 'Spectrier',
name_jpn: 'レイスポス',
slug: 'spectrier',
},
{
idx: 898,
dex: 898,
name_eng: 'Calyrex',
name_jpn: 'バドレックス',
slug: 'calyrex-shadow-rider',
},
{
idx: 898,
dex: 898,
name_eng: 'Calyrex',
name_jpn: 'バドレックス',
slug: 'calyrex-ice-rider',
},
{
idx: 898,
dex: 898,
name_eng: 'Calyrex',
name_jpn: 'バドレックス',
slug: 'calyrex',
},
]
Loading

0 comments on commit 9f743a0

Please sign in to comment.